OSDN Git Service

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:43:48 +0000 (15:43 -0400)
commit7d8a04643f068fc88a1f1e119820c3c33cf6098e
tree290e90861611ff8fdcd47e4489b4cd13c9ce33b5
parent3065bae50872367c9e9c263963f406e4c337d555
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