OSDN Git Service

r600g: always clear query memory
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 7 Jun 2011 20:44:40 +0000 (16:44 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Tue, 7 Jun 2011 20:44:40 +0000 (16:44 -0400)
commit7c1d4781920e34ad5419b4c5cf9d54ae14938844
treec9e1e10a72daf28634a896b9097a0c671ebe76f9
parentd7111353bd52fa54ae6c0defd6d1c4a86fbfb3b3
r600g: always clear query memory

According to the hw documentation, the driver needs to:
- allocate 128 bits for each possible DB
- clear the 128 bits for each possible DB
- write 1 to bits 127 and 63 for upper DBs that don't
exist on a particular asic

Previously we were only doing these steps if the
asic had less than the max possible DBs.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
src/gallium/winsys/r600/drm/r600_hw_context.c