radeonsi: move sampler descriptors from IB to memory
authorMarek Olšák <marek.olsak@amd.com>
Wed, 18 Jun 2014 00:46:49 +0000 (02:46 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 17 Jul 2014 23:58:59 +0000 (01:58 +0200)
commitdd46841bc9685b48c972ebe5f5cf92770cf025fd
tree271fad13df6b5cc05ba96cab0ac78349de18cdd9
parent2a7b57ad4269e7267922ff695a57b9a2ce413a06
radeonsi: move sampler descriptors from IB to memory

Sampler descriptors are now represented by si_descriptors.
This also adds support for fine-grained sampler state updates and
the border color update is now isolated in a separate function.

Border colors have been broken if texturing from multiple shader stages is
used. This patch doesn't change that.

BTW, blitting already makes use of fine-grained state updates.
u_blitter uses 2 textures at most, so we only have to save 2.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_blit.c
src/gallium/drivers/radeonsi/si_descriptors.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state.h