From 655fe281556679669699052f37412a6243771619 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 4 Apr 2010 08:59:09 +0200 Subject: r300g: add conditional rendering --- src/gallium/drivers/r300/r300_render.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gallium/drivers/r300/r300_render.c') 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; } -- cgit v1.2.3