From acf118155da5a296a43bcbaccda530737829c670 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Mon, 20 Feb 2023 17:49:10 +0000 Subject: [PATCH] Submit an execution on invalidate{Sampler,TextureHeader}Cache accesses --- app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp | 8 ++++++++ app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.h | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp b/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp index 791b7adf..fb492b0c 100644 --- a/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp +++ b/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp @@ -384,6 +384,14 @@ namespace skyline::soc::gm20b::engine::maxwell3d { registers.raw[0xD00] = 1; }) + ENGINE_CASE(invalidateSamplerCacheAll, { + channelCtx.executor.Submit(); + }) + + ENGINE_CASE(invalidateTextureHeaderCacheAll, { + channelCtx.executor.Submit(); + }) + // Begin a batch constant buffer update, this case will never be reached if a batch update is currently active #define LOAD_CONSTANT_BUFFER_CALLBACKS(z, index, data_) \ ENGINE_STRUCT_ARRAY_CASE(loadConstantBuffer, data, index, { \ diff --git a/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.h b/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.h index c07a0ab8..0814c2fe 100644 --- a/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.h +++ b/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.h @@ -182,8 +182,8 @@ namespace skyline::soc::gm20b::engine::maxwell3d { Register<0x458, std::array> vertexAttributes; - Register<0x484, u32> invalidateSamplerCacheAll; - Register<0x485, u32> invalidateTextureHeaderCacheAll; + Register<0x483, u32> invalidateSamplerCacheAll; + Register<0x484, u32> invalidateTextureHeaderCacheAll; struct DrawVertexArrayBeginEndInstance { u16 startIndex;