diff options
author | Brian Paul <[email protected]> | 2010-06-02 18:13:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-06-03 08:54:15 -0600 |
commit | d18fb4822bc71944867b66e6de966e4e55bbe574 (patch) | |
tree | be3896de2fd0ed8120b741c951b186b4acfc70e5 /src/gallium/state_trackers/vega/renderer.c | |
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/state_trackers/vega/renderer.c')
-rw-r--r-- | src/gallium/state_trackers/vega/renderer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vega/renderer.c b/src/gallium/state_trackers/vega/renderer.c index fe0f166e885..c40ea8675e5 100644 --- a/src/gallium/state_trackers/vega/renderer.c +++ b/src/gallium/state_trackers/vega/renderer.c @@ -59,7 +59,8 @@ static void setup_shaders(struct renderer *ctx) { struct pipe_context *pipe = ctx->pipe; /* fragment shader */ - ctx->fs = util_make_fragment_tex_shader(pipe, TGSI_TEXTURE_2D); + ctx->fs = util_make_fragment_tex_shader(pipe, TGSI_TEXTURE_2D, + TGSI_INTERPOLATE_LINEAR); } static struct pipe_resource * |