mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 10:00:36 +01:00
r300: disable ZTOP only when occlusion queries are used
This commit is contained in:
parent
30e9c753b8
commit
fd97f2f8b8
1 changed files with 3 additions and 1 deletions
|
|
@ -462,7 +462,7 @@ static GLboolean current_fragment_program_writes_depth(GLcontext* ctx)
|
|||
static void r300SetEarlyZState(GLcontext * ctx)
|
||||
{
|
||||
r300ContextPtr r300 = R300_CONTEXT(ctx);
|
||||
GLuint topZ = R300_ZTOP_DISABLE;
|
||||
GLuint topZ = R300_ZTOP_ENABLE;
|
||||
GLuint w_fmt, fgdepthsrc;
|
||||
|
||||
if (ctx->Color.AlphaEnabled && ctx->Color.AlphaFunc != GL_ALWAYS)
|
||||
|
|
@ -471,6 +471,8 @@ static void r300SetEarlyZState(GLcontext * ctx)
|
|||
topZ = R300_ZTOP_DISABLE;
|
||||
else if (ctx->FragmentProgram._Current && ctx->FragmentProgram._Current->UsesKill)
|
||||
topZ = R300_ZTOP_DISABLE;
|
||||
else if (r300->query.current)
|
||||
topZ = R300_ZTOP_DISABLE;
|
||||
|
||||
if (topZ != r300->hw.zstencil_format.cmd[2]) {
|
||||
/* Note: This completely reemits the stencil format.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue