Mesa (master): r300g: enable conditional rendering also for SWTCL

Marek Olšák mareko at kemper.freedesktop.org
Mon Apr 5 05:10:13 UTC 2010


Module: Mesa
Branch: master
Commit: 0179c5a95b604105ead8d642e8313740adc2a686
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0179c5a95b604105ead8d642e8313740adc2a686

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sun Apr  4 09:58:40 2010 +0200

r300g: enable conditional rendering also for SWTCL

---

 src/gallium/drivers/r300/r300_render.c |    8 ++++++++
 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 7898329..bba9ef2 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;
     }




More information about the mesa-commit mailing list