i965: Use 64-bit writes for occlusion queries.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 7 Aug 2012 17:17:04 +0000 (10:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 8 Aug 2012 16:24:23 +0000 (09:24 -0700)
commite45a9ce474c3562f16c8a773260752d77a4fed5c
tree26e5212fdb70d62d02cd1d09b0f7392a26fa2908
parent20c09b82d0520843f1c168adaf9bd5d17a572085
i965: Use 64-bit writes for occlusion queries.

The hardware seems to use the length of the PIPE_CONTROL command to
indicate whether the write is 64-bits or 32-bits.  Which makes sense
for immediate writes.

Daniel discovered this by writing a pattern into the query object bo
and noticing that the high 32-bits were left intact, even on those
pipe control writes that seemingly worked.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_queryobj.c