projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5399c6d
)
r300g: enable conditional rendering also for SWTCL
author
Marek Olšák
<maraeo@gmail.com>
Sun, 4 Apr 2010 07:58:40 +0000
(09:58 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Mon, 5 Apr 2010 05:09:45 +0000
(07:09 +0200)
src/gallium/drivers/r300/r300_render.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_render.c
b/src/gallium/drivers/r300/r300_render.c
index 7898329771efd58fd44778926a15a6ae974f979f..bba9ef251eebe59a7a8e93447fbc09cf2941d361 100644
(file)
--- 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;
}