diff options
author | Brian Paul <brianp@vmware.com> | 2010-06-02 18:13:00 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-06-03 08:54:15 -0600 |
commit | d18fb4822bc71944867b66e6de966e4e55bbe574 (patch) | |
tree | be3896de2fd0ed8120b741c951b186b4acfc70e5 /src/gallium/auxiliary/util/u_simple_shaders.h | |
parent | 35d75e49308fb839ed12b50e0ad2b0f9cce1bb99 (diff) |
gallium: add interpolation parameter to simple shader functions
This lets us specify linear interpolation instead of perspective
interpolation for blit operations. Might be a bit faster.
Diffstat (limited to 'src/gallium/auxiliary/util/u_simple_shaders.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_simple_shaders.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_simple_shaders.h b/src/gallium/auxiliary/util/u_simple_shaders.h index 6e760942e2..4aa34bc475 100644 --- a/src/gallium/auxiliary/util/u_simple_shaders.h +++ b/src/gallium/auxiliary/util/u_simple_shaders.h @@ -52,15 +52,18 @@ util_make_vertex_passthrough_shader(struct pipe_context *pipe, extern void * util_make_fragment_tex_shader_writemask(struct pipe_context *pipe, unsigned tex_target, + unsigned interp_mode, unsigned writemask); extern void * -util_make_fragment_tex_shader(struct pipe_context *pipe, unsigned tex_target); +util_make_fragment_tex_shader(struct pipe_context *pipe, unsigned tex_target, + unsigned interp_mode); extern void * util_make_fragment_tex_shader_writedepth(struct pipe_context *pipe, - unsigned tex_target); + unsigned tex_target, + unsigned interp_mode); extern void * |