r600g: work out range/block etc at state build time.
authorDave Airlie <airlied@redhat.com>
Thu, 2 Jun 2011 04:57:13 +0000 (14:57 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Jun 2011 04:59:29 +0000 (14:59 +1000)
commit4423c79ddf6853d1d4594afda3e1262c1b9af4f5
treec708d3df8dd6369ddd4fc3623050e3b7fd41f042
parent42502b6f03230b828121f60143190c39bc5c8dda
r600g: work out range/block etc at state build time.

This moves the overhead of working out the range/block to state build time,
it also allows the compiler to use constants for a lot of things instead
of working them out each time.

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