summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorNeoBrainX <NeoBrainX@gmail.com>2013-06-29 23:00:57 +0200
committerNeoBrainX <NeoBrainX@gmail.com>2013-06-29 23:01:42 +0200
commit99301bd158a90d93dc7fb74e50118b1517a40ed3 (patch)
treeed17bed7bb0d211d03eed533b91f42ec421d05cc /Source/Core/VideoCommon
parentf524312fd17e62cbc761bb01953c67763fc9242b (diff)
PixelShaderGen: Store early_ztest as part of shader uid.
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/Src/PixelShaderGen.cpp1
-rw-r--r--Source/Core/VideoCommon/Src/PixelShaderGen.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
index dd284ced7d..ad8cc4d7c5 100644
--- a/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/Src/PixelShaderGen.cpp
@@ -585,6 +585,7 @@ static void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_TYPE Api
uid_data.ztex_op = bpmem.ztex2.op;
uid_data.per_pixel_depth = per_pixel_depth;
uid_data.fast_depth_calc = g_ActiveConfig.bFastDepthCalc;
+ uid_data.early_ztest = bpmem.zcontrol.early_ztest;
uid_data.fog_fsel = bpmem.fog.c_proj_fsel.fsel;
// Note: z-textures are not written to depth buffer if early depth test is used
diff --git a/Source/Core/VideoCommon/Src/PixelShaderGen.h b/Source/Core/VideoCommon/Src/PixelShaderGen.h
index 150a69902e..21004323f9 100644
--- a/Source/Core/VideoCommon/Src/PixelShaderGen.h
+++ b/Source/Core/VideoCommon/Src/PixelShaderGen.h
@@ -112,6 +112,7 @@ struct pixel_shader_uid_data
u32 fast_depth_calc : 1;
u32 per_pixel_depth : 1;
+ u32 early_ztest : 1;
u32 xfregs_numTexGen_numTexGens : 4;