summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/r600.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-01-31 16:03:29 +1000
committerDave Airlie <airlied@redhat.com>2011-01-31 16:14:03 +1000
commitdf8089df90de3e720fec46d6118b15094e94ccd7 (patch)
tree797f4d48d568a4b5cc4edb503280d89e421cbd98 /src/gallium/drivers/r600/r600.h
parent2f7c876ff5af86c78c0f3debfbdc2a56c7b4d1fe (diff)
r600g: fix occlusion query results.
Like on some r5xx, there are multiple DB backends on the r600, we need to add up the query results from each of these to get the final correct value. So far I'm not 100% sure how to calculate the num_db, value setting it to 4 should be harmless enough until we do. This fixes occulsion_query piglit test on my rv740. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium/drivers/r600/r600.h')
-rw-r--r--src/gallium/drivers/r600/r600.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h
index b8888bede2..15cfb7f0c4 100644
--- a/src/gallium/drivers/r600/r600.h
+++ b/src/gallium/drivers/r600/r600.h
@@ -250,6 +250,7 @@ struct r600_context {
struct list_head query_list;
unsigned num_query_running;
struct list_head fenced_bo;
+ unsigned num_db; /* for OQ */
};
struct r600_draw {