r600g: don't use dynamic state allocation for states
authorJerome Glisse <jglisse@redhat.com>
Wed, 4 Aug 2010 21:37:59 +0000 (17:37 -0400)
committerJerome Glisse <jglisse@redhat.com>
Thu, 5 Aug 2010 19:41:35 +0000 (15:41 -0400)
commit9c949d4a4dd43b7889e13bdf683bcf211f049ced
tree0059712f64b8121af96f025eeab3e6a1950df5b3
parent0633c2e68312c292607d6af22d94d67d2d141600
r600g: don't use dynamic state allocation for states

Simplify state handly by avoiding state allocation.
Next step is to allocate once for all context packet
buffer and then avoid rebuilding pm4 packet each time
(through use of combined crc) this would also avoid
number of memcpy.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
12 files changed:
src/gallium/drivers/r600/r600_context.c
src/gallium/drivers/r600/r600_context.h
src/gallium/drivers/r600/r600_draw.c
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/radeon.h
src/gallium/targets/dri-r600/Makefile
src/gallium/winsys/r600/drm/radeon.c
src/gallium/winsys/r600/drm/radeon_ctx.c
src/gallium/winsys/r600/drm/radeon_draw.c
src/gallium/winsys/r600/drm/radeon_priv.h
src/gallium/winsys/r600/drm/radeon_state.c