summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_render.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-05-29 06:12:22 +0200
committerMarek Olšák <[email protected]>2011-05-29 16:17:11 +0200
commit76056510bcd35b6b5607b572c0c0ff47b5c5e7e2 (patch)
treeddbcdd942f333de81752bbb0d9d77b281318251e /src/gallium/drivers/r300/r300_render.c
parentaae56150f5d59d45e13a4033b20f0ccf20a3319c (diff)
r300g: clear can be killed by render condition
Fixes piglit: - NV_conditional_render/clear
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-rw-r--r--src/gallium/drivers/r300/r300_render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index 429b85545f7..b24e7faa644 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -1200,6 +1200,9 @@ static void r300_blitter_draw_rectangle(struct blitter_context *blitter,
const float zeros[4] = {0, 0, 0, 0};
CS_LOCALS(r300);
+ if (r300->skip_rendering)
+ return;
+
r300->context.set_vertex_buffers(&r300->context, 0, NULL);
if (type == UTIL_BLITTER_ATTRIB_TEXCOORD)