summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_blit.c
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/auxiliary/util/u_blit.c
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/auxiliary/util/u_blit.c')
-rw-r--r--src/gallium/auxiliary/util/u_blit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_blit.c b/src/gallium/auxiliary/util/u_blit.c
index e9ee4ea760f..97fa99ec65d 100644
--- a/src/gallium/auxiliary/util/u_blit.c
+++ b/src/gallium/auxiliary/util/u_blit.c
@@ -134,7 +134,8 @@ util_create_blit(struct pipe_context *pipe, struct cso_context *cso)
/* fragment shader */
ctx->fs[TGSI_WRITEMASK_XYZW] =
- util_make_fragment_tex_shader(pipe, TGSI_TEXTURE_2D);
+ util_make_fragment_tex_shader(pipe, TGSI_TEXTURE_2D,
+ TGSI_INTERPOLATE_LINEAR);
ctx->vbuf = NULL;
/* init vertex data that doesn't change */
@@ -474,6 +475,7 @@ util_blit_pixels_writemask(struct blit_state *ctx,
if (ctx->fs[writemask] == NULL)
ctx->fs[writemask] =
util_make_fragment_tex_shader_writemask(pipe, TGSI_TEXTURE_2D,
+ TGSI_INTERPOLATE_LINEAR,
writemask);
/* shaders */