mesa/st: add support for EXT_texture_swizzle.
authorDave Airlie <airlied@redhat.com>
Tue, 27 Apr 2010 11:06:44 +0000 (21:06 +1000)
committerDave Airlie <airlied@redhat.com>
Sat, 5 Jun 2010 06:53:43 +0000 (16:53 +1000)
commit42ebe3dfd9b0803913e0d932909ca5872d937c20
tree068455a7a71c343f7bfed217d9418d60123fed71
parentf855e16afa086edfc2f03360a27f66c955a6c208
mesa/st: add support for EXT_texture_swizzle.

This passes on r300g, the only bit I'm not really sure about is the handling
of the sampler_view in st_atom_texture.c, I unreference it there if the swizzle
value changes and I also have to create a new set of functions to create a new
one since the u_sampler.c ones don't handle swizzle so much.

adds r300g + softpipe enables, I think other drivers could pass easily enough.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/softpipe/sp_screen.c
src/gallium/include/pipe/p_defines.h
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_extensions.c