summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_scene.h
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2013-06-27 18:54:10 +0200
committerRoland Scheidegger <[email protected]>2013-06-27 19:06:40 +0200
commit59b8689d3706fbb739d9b15943907ae67f35de95 (patch)
treea66d7b1d99e093e0f010a29bc6b8c4abf8ccae45 /src/gallium/drivers/llvmpipe/lp_scene.h
parentf12e5518106155fb2f17ee5e8db40eebafa23b5d (diff)
llvmpipe: fix a bug in opaque optimization
If there are queries active the opaque optimization reseting the bin needs to be disabled. (Not really tested since the bug was discovered by code inspection not an actual test failure.) Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_scene.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_scene.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_scene.h b/src/gallium/drivers/llvmpipe/lp_scene.h
index 59cce7d18f4..5501d4079be 100644
--- a/src/gallium/drivers/llvmpipe/lp_scene.h
+++ b/src/gallium/drivers/llvmpipe/lp_scene.h
@@ -132,6 +132,8 @@ struct lp_scene {
/* The queries still active at end of scene */
struct llvmpipe_query *active_queries[LP_MAX_ACTIVE_BINNED_QUERIES];
unsigned num_active_queries;
+ /* If queries were either active or there were begin/end query commands */
+ boolean had_queries;
/* Framebuffer mappings - valid only between begin_rasterization()
* and end_rasterization().