r600g: Only update DB_SHADER_CONTROL once in r600_pipe_shader_ps().
authorMathias Fröhlich <Mathias.Froehlich@web.de>
Sun, 27 Feb 2011 06:11:27 +0000 (07:11 +0100)
committerHenri Verbeet <hverbeet@gmail.com>
Sun, 13 Mar 2011 16:25:16 +0000 (17:25 +0100)
commit0a6f09a76a416b8672e149c520aa5bef33174223
tree57fa7fac32945ab2757ac48e658f6c81425329dd
parent629bc76b75c6e35ecbbb7a6716b5f25f13ef34e6
r600g: Only update DB_SHADER_CONTROL once in r600_pipe_shader_ps().

Avoid setting the same gpu register several times in a r600_pipe_state.
Compute the final value of the register and set that one time. This avoids
some overhead in r600_context_pipe_state_set().

Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
src/gallium/drivers/r600/r600_shader.c