diff options
author | Dave Airlie <airlied@redhat.com> | 2011-01-31 16:03:29 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-01-31 16:14:03 +1000 |
commit | df8089df90de3e720fec46d6118b15094e94ccd7 (patch) | |
tree | 797f4d48d568a4b5cc4edb503280d89e421cbd98 /src/gallium/drivers/r600/r600.h | |
parent | 2f7c876ff5af86c78c0f3debfbdc2a56c7b4d1fe (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h index b8888bede20..15cfb7f0c46 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 { |