r600g: rework state emission of vertex buffers
authorMarek Olšák <maraeo@gmail.com>
Fri, 30 Mar 2012 21:52:45 +0000 (23:52 +0200)
committerMarek Olšák <maraeo@gmail.com>
Wed, 4 Apr 2012 11:09:47 +0000 (13:09 +0200)
commitc76462b45f1e3a0aa2ee7971191e30e8a5f52015
tree889c38d40f20a2d89712e5d70e8ca6260f6227d1
parent5c03d1fa0fbe130153a2e4c937f684c680ca20b2
r600g: rework state emission of vertex buffers

This reduces a little of CPU overhead.
The idea is to translate pipe vertex buffers directly into the CS
and not using any intermediate representations.

Framerate in Torcs:
  before: 32.2
  after:  34.6

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/evergreen_hw_context.c
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600.h
src/gallium/drivers/r600/r600_hw_context.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_state_common.c