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.
This commit is contained in:
Brian Paul
2010-06-02 18:13:00 -06:00
parent 35d75e4930
commit d18fb4822b
6 changed files with 58 additions and 48 deletions

View File

@@ -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 *