r600g: fix texture array filtering
authorMarek Olšák <maraeo@gmail.com>
Fri, 2 Sep 2011 05:35:48 +0000 (07:35 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 10 Sep 2011 06:53:29 +0000 (08:53 +0200)
commitc4519c3aec37f5cb3db8fe7e8ead13ae04e792b5
tree364ef162d7c0f89b9733cc684bce277b23e2079c
parent9edd0b5ddf406ef089edebd12999ff2a26774ca3
r600g: fix texture array filtering

This fixes piglit/fbo-generatemipmap-array.

It looks like SQ_TEX_SAMPLER_WORD0_0.TEX_ARRAY_OVERRIDE should be set
for array textures in order to disable filtering between slices,
which adds a dependency between sampler views and sampler states.

This patch reworks sampler state updates such that they are postponed until
draw time. TEX_ARRAY_OVERRIDE is updated according to bound sampler views.

This also consolidates setting the texture state between vertex and
pixel shaders.
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_state_common.c