PixelShaderGen: Store early_ztest as part of shader uid.

This commit is contained in:
NeoBrainX 2013-06-29 23:00:57 +02:00
parent f524312fd1
commit 99301bd158
2 changed files with 2 additions and 0 deletions

View File

@ -585,6 +585,7 @@ static void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_TYPE Api
uid_data.ztex_op = bpmem.ztex2.op; uid_data.ztex_op = bpmem.ztex2.op;
uid_data.per_pixel_depth = per_pixel_depth; uid_data.per_pixel_depth = per_pixel_depth;
uid_data.fast_depth_calc = g_ActiveConfig.bFastDepthCalc; 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; 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 // Note: z-textures are not written to depth buffer if early depth test is used

View File

@ -112,6 +112,7 @@ struct pixel_shader_uid_data
u32 fast_depth_calc : 1; u32 fast_depth_calc : 1;
u32 per_pixel_depth : 1; u32 per_pixel_depth : 1;
u32 early_ztest : 1;
u32 xfregs_numTexGen_numTexGens : 4; u32 xfregs_numTexGen_numTexGens : 4;