diff options
author | Marek Olšák <maraeo@gmail.com> | 2009-12-12 06:34:29 +0100 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-12-15 17:59:50 +0000 |
commit | dff4c9ed559ae025d1d8fe7b9d1cea5a973c2225 (patch) | |
tree | 510b4c7df0c3f12caa26c80d9db84e90da2595f9 /src/gallium/auxiliary/util/u_gen_mipmap.c | |
parent | 3a15c48ecedb985e2cecaaa9061ff579092069f1 (diff) |
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.
Diffstat (limited to 'src/gallium/auxiliary/util/u_gen_mipmap.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_gen_mipmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c index 83263d9fe6..1728e661cd 100644 --- a/src/gallium/auxiliary/util/u_gen_mipmap.c +++ b/src/gallium/auxiliary/util/u_gen_mipmap.c @@ -1317,7 +1317,7 @@ util_create_gen_mipmap(struct pipe_context *pipe, } /* fragment shader */ - ctx->fs = util_make_fragment_tex_shader(pipe); + ctx->fs = util_make_fragment_tex_shader(pipe, TGSI_TEXTURE_2D); /* vertex data that doesn't change */ for (i = 0; i < 4; i++) { |