summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-04-07 12:23:11 +0200
committerNicolai Hähnle <[email protected]>2017-04-08 00:44:52 +0200
commitc05cf9cf1b6b9d42655243ffc6295e60581ecbc5 (patch)
treec98033a4f75ce941c68a51911676dd8abb66651a /src
parent07b5b5cfd476fe968b9de3782653b56fec5c5a88 (diff)
util: fix swizzle of INSTANCEID system value
radeonsi added stricter checking for correct swizzles in debug builds. Reported-by: Michel Dänzer <[email protected]> Fixes: 4cf29427770f ("radeonsi: support 64-bit system values") Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_simple_shaders.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_simple_shaders.c b/src/gallium/auxiliary/util/u_simple_shaders.c
index 7342b3d33e6..613ec4ab98f 100644
--- a/src/gallium/auxiliary/util/u_simple_shaders.c
+++ b/src/gallium/auxiliary/util/u_simple_shaders.c
@@ -119,7 +119,7 @@ void *util_make_layered_clear_vertex_shader(struct pipe_context *pipe)
"MOV OUT[0], IN[0]\n"
"MOV OUT[1], IN[1]\n"
- "MOV OUT[2], SV[0]\n"
+ "MOV OUT[2].x, SV[0].xxxx\n"
"END\n";
struct tgsi_token tokens[1000];
struct pipe_shader_state state;