r300g: enable conditional rendering also for SWTCL
authorMarek Olšák <maraeo@gmail.com>
Sun, 4 Apr 2010 07:58:40 +0000 (09:58 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 5 Apr 2010 05:09:45 +0000 (07:09 +0200)
src/gallium/drivers/r300/r300_render.c

index 7898329771efd58fd44778926a15a6ae974f979f..bba9ef251eebe59a7a8e93447fbc09cf2941d361 100644 (file)
@@ -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;
     }