summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/trivial
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-06-10 20:02:55 -0400
committerRob Clark <[email protected]>2015-06-21 07:52:16 -0400
commit93379748f7e4f5ab22040cdb7a4cccdcfb7954c1 (patch)
tree3f8298343396b903ccba73b0b270d0e091ee6d21 /src/gallium/tests/trivial
parente53699298640df7d7659a8ce88b68e43918b600c (diff)
util/blitter (and friends): generate appropriate SVIEW decls
Some hardware needs to know the sampler type. Update the blit related shaders to include SVIEW decl. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/tests/trivial')
-rw-r--r--src/gallium/tests/trivial/quad-tex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/tests/trivial/quad-tex.c b/src/gallium/tests/trivial/quad-tex.c
index abecedbd594..daae577ec4b 100644
--- a/src/gallium/tests/trivial/quad-tex.c
+++ b/src/gallium/tests/trivial/quad-tex.c
@@ -270,7 +270,9 @@ static void init_prog(struct program *p)
}
/* fragment shader */
- p->fs = util_make_fragment_tex_shader(p->pipe, TGSI_TEXTURE_2D, TGSI_INTERPOLATE_LINEAR);
+ p->fs = util_make_fragment_tex_shader(p->pipe, TGSI_TEXTURE_2D,
+ TGSI_INTERPOLATE_LINEAR,
+ TGSI_RETURN_TYPE_FLOAT);
}
static void close_prog(struct program *p)