radeonsi: Maintain cache of pixel shader variants according to contxt state.
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 23 Aug 2012 15:10:37 +0000 (17:10 +0200)
committerMichel Dänzer <michel@daenzer.net>
Mon, 27 Aug 2012 09:51:41 +0000 (11:51 +0200)
commitd1e40b3d40b2e90ad4f275565f1ae27fe6f964cc
tree41a93fa06f09fad3ba0ae3071a4997c58c0406e6
parent84fdda280f4361add3802476ce9a30ac1c0b4c69
radeonsi: Maintain cache of pixel shader variants according to contxt state.

Mostly inspired by r600g commit 4acf71f01ea1edb253cd38cc059d4af1a2a40bf4
('r600g: cache shader variants instead of rebuilding v3').

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeonsi/radeonsi_pipe.h
src/gallium/drivers/radeonsi/radeonsi_shader.c
src/gallium/drivers/radeonsi/radeonsi_shader.h
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state.h
src/gallium/drivers/radeonsi/si_state_draw.c