r600g: use an enabled list to track enabled blocks.
authorDave Airlie <airlied@redhat.com>
Thu, 2 Jun 2011 23:59:12 +0000 (09:59 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 6 Jun 2011 23:33:53 +0000 (09:33 +1000)
commit63184bc8b278ba82f5462798b323774c67a019e6
treebf88ff0822e0b0ead6cddbb4f86c9ad1fdbb724f
parentf356bb74de7ab9ad1085a0fc2f16c1dae4ff171e
r600g: use an enabled list to track enabled blocks.

At the end of flushing we were scanning over 450 blocks
with generally about 50 enabled. This reduces the scanning
to just the list of enabled blocks.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600.h
src/gallium/winsys/r600/drm/evergreen_hw_context.c
src/gallium/winsys/r600/drm/r600_hw_context.c
src/gallium/winsys/r600/drm/r600_priv.h