r600g: fix queries and predication
authorVadim Girlin <vadimgirlin@gmail.com>
Fri, 15 Jul 2011 03:22:20 +0000 (07:22 +0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Jul 2011 19:42:46 +0000 (15:42 -0400)
commitef29bfee031cdab3dbb0f9a79828c4b0d0405991
treeac65f3f819533dc1c1f4e7d7b4321db40d0340ce
parentcfec000e7514342fd51859906e173ba2d474a55c
r600g: fix queries and predication

Use all zpass data for predication instead of the last block only.
Use query buffer as a ring instead of reusing the same area
for each new BeginQuery. All query buffer offsets are in bytes
to simplify offsets math.
src/gallium/drivers/r600/r600.h
src/gallium/drivers/r600/r600_query.c
src/gallium/winsys/r600/drm/r600_hw_context.c
src/gallium/winsys/r600/drm/r600d.h