Turn off depth raster if SIMD not available

This commit is contained in:
Henrik Rydgård
2025-01-28 10:53:18 +01:00
parent acd5b24924
commit 9caf37d28f
2 changed files with 7 additions and 2 deletions
+4
View File
@@ -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);
}
+3 -2
View File
@@ -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),