From df8089df90de3e720fec46d6118b15094e94ccd7 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 31 Jan 2011 16:03:29 +1000 Subject: 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 --- src/gallium/drivers/r600/r600.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/r600/r600.h') 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 { -- cgit v1.2.3