summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_render.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-04-04 08:59:09 +0200
committerMarek Olšák <[email protected]>2010-04-04 08:59:09 +0200
commit655fe281556679669699052f37412a6243771619 (patch)
tree06ff15ce6393e04db3db18974242edb82bdaa1b0 /src/gallium/drivers/r300/r300_render.c
parent116c99768e2c43ff7b41159dafc65e698cde9a62 (diff)
r300g: add conditional rendering
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-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 1fb7eac2b34..7898329771e 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -427,6 +427,10 @@ void r300_draw_range_elements(struct pipe_context* pipe,
#endif
unsigned short_count;
+ if (r300->skip_rendering) {
+ return;
+ }
+
if (!u_trim_pipe_prim(mode, &count)) {
return;
}
@@ -503,6 +507,10 @@ void r300_draw_arrays(struct pipe_context* pipe, unsigned mode,
#endif
unsigned short_count;
+ if (r300->skip_rendering) {
+ return;
+ }
+
if (!u_trim_pipe_prim(mode, &count)) {
return;
}