r600g: fix occlusion query results.
authorDave Airlie <airlied@redhat.com>
Mon, 31 Jan 2011 06:03:29 +0000 (16:03 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 31 Jan 2011 06:14:03 +0000 (16:14 +1000)
commitdf8089df90de3e720fec46d6118b15094e94ccd7
tree797f4d48d568a4b5cc4edb503280d89e421cbd98
parent2f7c876ff5af86c78c0f3debfbdc2a56c7b4d1fe
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>
src/gallium/drivers/r600/r600.h
src/gallium/winsys/r600/drm/r600_hw_context.c