util: add new fragment shaders to simple_shaders
authorMarek Olšák <maraeo@gmail.com>
Sat, 12 Dec 2009 05:34:29 +0000 (06:34 +0100)
committerKeith Whitwell <keithw@vmware.com>
Tue, 15 Dec 2009 17:59:50 +0000 (17:59 +0000)
commitdff4c9ed559ae025d1d8fe7b9d1cea5a973c2225
tree510b4c7df0c3f12caa26c80d9db84e90da2595f9
parent3a15c48ecedb985e2cecaaa9061ff579092069f1
util: add new fragment shaders to simple_shaders

New shaders:
* Fragment shader which writes depth sampled from a texture
* Fragment shader which copies COLOR[0] to multiple render targets

Additional improvements:
* The fragment 'tex' shaders now take a sampler type (TGSI_TEXTURE_*)
  so that they can sample from any type of texture, not only from a 2D one.
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_gen_mipmap.c
src/gallium/auxiliary/util/u_simple_shaders.c
src/gallium/auxiliary/util/u_simple_shaders.h