summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-04-04 09:58:40 +0200
committerMarek Olšák <[email protected]>2010-04-05 07:09:45 +0200
commit0179c5a95b604105ead8d642e8313740adc2a686 (patch)
tree6078411a4f3cfc8e852ea7d68ef6bcc57b11b0fc /src/gallium/drivers/r300
parent5399c6dfa19421c5766c7a3f91c37ab5ea26c139 (diff)
r300g: enable conditional rendering also for SWTCL
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_render.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index 7898329771e..bba9ef251ee 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -564,6 +564,10 @@ void r300_swtcl_draw_arrays(struct pipe_context* pipe,
struct r300_context* r300 = r300_context(pipe);
int i;
+ if (r300->skip_rendering) {
+ return;
+ }
+
if (!u_trim_pipe_prim(mode, &count)) {
return;
}
@@ -599,6 +603,10 @@ void r300_swtcl_draw_range_elements(struct pipe_context* pipe,
int i;
void* indices;
+ if (r300->skip_rendering) {
+ return;
+ }
+
if (!u_trim_pipe_prim(mode, &count)) {
return;
}