r600g: avoid dynamic allocation of states
authorJerome Glisse <jglisse@redhat.com>
Mon, 30 Aug 2010 21:56:59 +0000 (17:56 -0400)
committerJerome Glisse <jglisse@redhat.com>
Wed, 1 Sep 2010 17:16:23 +0000 (13:16 -0400)
commit66e4cb1cd5a55402606a09417349d2be8b009e89
treeb9c4e20211fbfc1a979667598f141116f4a5cebd
parent15ce70252c5357081a61f3494261c7e343174301
r600g: avoid dynamic allocation of states

Make state statically allocated, this kills a bunch of code
and avoid intensive use of malloc/free. There is still a lot
of useless duplicate function wrapping that can be kill. This
doesn't improve yet performance, needs to avoid memcpy states
in radeon_ctx_set_draw and to avoid rebuilding vs_resources,
dsa, scissor, cb_cntl, ... states at each draw command.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
17 files changed:
src/gallium/drivers/r600/r600_blit.c
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_query.c
src/gallium/drivers/r600/r600_resource.h
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_texture.c
src/gallium/drivers/r600/radeon.h
src/gallium/targets/dri-r600/Makefile
src/gallium/winsys/r600/drm/r600_state.c
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