mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Turn off depth raster if SIMD not available
This commit is contained in:
@@ -56,6 +56,7 @@ DrawEngineCommon::DrawEngineCommon() : decoderMap_(32) {
|
||||
decIndex_ = (u16 *)AllocateMemoryPages(DECODED_INDEX_BUFFER_SIZE, MEM_PROT_READ | MEM_PROT_WRITE);
|
||||
indexGen.Setup(decIndex_);
|
||||
|
||||
#if PPSSPP_ARCH(SSE2) || PPSSPP_ARCH(ARM_NEON)
|
||||
switch ((DepthRasterMode)g_Config.iDepthRasterMode) {
|
||||
case DepthRasterMode::DEFAULT:
|
||||
case DepthRasterMode::LOW_QUALITY:
|
||||
@@ -67,6 +68,9 @@ DrawEngineCommon::DrawEngineCommon() : decoderMap_(32) {
|
||||
case DepthRasterMode::OFF:
|
||||
useDepthRaster_ = false;
|
||||
}
|
||||
#else
|
||||
useDepthRaster_ = false;
|
||||
#endif
|
||||
if (useDepthRaster_) {
|
||||
depthDraws_.reserve(256);
|
||||
}
|
||||
|
||||
@@ -466,7 +466,7 @@ bool TestVFPUSinCos() {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TestMatrixTranspose() {
|
||||
bool TestVFPUMatrixTranspose() {
|
||||
MatrixSize sz = M_4x4;
|
||||
int matrix = 0; // M000
|
||||
u8 cols[4];
|
||||
@@ -489,6 +489,7 @@ bool TestMatrixTranspose() {
|
||||
return true;
|
||||
}
|
||||
|
||||
// TODO: Hook this up again!
|
||||
void TestGetMatrix(int matrix, MatrixSize sz) {
|
||||
INFO_LOG(Log::System, "Testing matrix %s", GetMatrixNotation(matrix, sz).c_str());
|
||||
u8 fullMatrix[16];
|
||||
@@ -1182,7 +1183,7 @@ TestItem availableTests[] = {
|
||||
TEST_ITEM(Parsers),
|
||||
TEST_ITEM(IRPassSimplify),
|
||||
TEST_ITEM(Jit),
|
||||
TEST_ITEM(MatrixTranspose),
|
||||
TEST_ITEM(VFPUMatrixTranspose),
|
||||
TEST_ITEM(ParseLBN),
|
||||
TEST_ITEM(QuickTexHash),
|
||||
TEST_ITEM(CLZ),
|
||||
|
||||
Reference in New Issue
Block a user