From c48f2acd04fc9d7bddb7073ff745401af7cac815 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Sun, 6 Oct 2013 13:23:23 +0200 Subject: [PATCH] imask stuff --- Source/Core/VideoCommon/Src/PixelShaderGen.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp index 84410bc643..5e4a963e2f 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp @@ -529,6 +529,14 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T } } + for (u32 i = 0; i < 8; ++i) + { + if (indmask & (1 << i)) + { + // used for indirect stage, so initialize the thing... + } + } + // indirect texture map lookup int nIndirectStagesUsed = 0; if (bpmem.genMode.numindstages > 0) @@ -900,6 +908,7 @@ static inline void WriteStage(T& out, pixel_shader_uid_data& uid_data, int n, AP int texmap = bpmem.tevorders[n/2].getTexMap(n&1); uid_data.SetTevindrefTexmap(i, texmap); + // TODO: Check for imask here... if imask&(1<