Skip to content

Instantly share code, notes, and snippets.

@rygorous
Created February 20, 2013 21:34
Embed
What would you like to do?
// Dasher: refine check to allow stencil only early Z/stencil
if (((prcs->ControlDWORD & CONTROL_DWORD_INTERPOLATED_USED_FOR_Z) || !prcs->DepthState.ZEnable) &&
- !(pCompiled->MiscState.AlphaToCoverageEnable ||
- pCompiled->MiscState.AlphaTestEnable ||
- OMSHADER_COMPILEDOBJ_I::PSKillsPixel(prcs->pShader)))
+ !((prcs->DepthState.ZWrite || prcs->StencilState.FrontFace.StencilEnable || prcs->StencilState.BackFace.StencilEnable) &&
+ (pCompiled->MiscState.AlphaTestEnable ||
+ pCompiled->MiscState.AlphaToCoverageEnable ||
+ OMSHADER_COMPILEDOBJ_I::PSKillsPixel(prcs->pShader))))
{
prcs->bRPhaseEarlyZActive = OM_TRUE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment