summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-06-02 18:13:00 -0600
committerBrian Paul <[email protected]>2010-06-03 08:54:15 -0600
commitd18fb4822bc71944867b66e6de966e4e55bbe574 (patch)
treebe3896de2fd0ed8120b741c951b186b4acfc70e5 /src/gallium/state_trackers
parent35d75e49308fb839ed12b50e0ad2b0f9cce1bb99 (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')
-rw-r--r--src/gallium/state_trackers/vega/renderer.c3
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 *