summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_state.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-10-14 18:05:14 +1000
committerDave Airlie <airlied@redhat.com>2009-10-14 18:05:14 +1000
commitce5cba040c34a1a70186c29a5055e9be3c85a54a (patch)
treedd292fa00e3f59abe3d9acf76e9866c0c93e9acf /src/gallium/drivers/r300/r300_state.c
parent51d1cf55da6f8b8a215814589a189b6e5e537fe5 (diff)
r300g: add one more ZTOP disable bit.
Still missing the frag uses kill support, hopefully nha can point that out.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r--src/gallium/drivers/r300/r300_state.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index d8533ac168..95e2943baa 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -252,9 +252,11 @@ static void*
dsa->z_buffer_top = R300_ZTOP_ENABLE;
/* XXX TODO: add frag prog rules for ztop disable */
+ if (r300_fragment_shader_writes_depth(r300->fs))
+ dsa->z_buffer_top = R300_ZTOP_DISABLE;
if (state->alpha.enabled && state->alpha.func != PIPE_FUNC_ALWAYS)
dsa->z_buffer_top = R300_ZTOP_DISABLE;
- if (!is_empty_list(&r300->query_list))
+ if (r300->query_current)
dsa->z_buffer_top = R300_ZTOP_DISABLE;
return (void*)dsa;