summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorMiklós Máté <[email protected]>2017-10-15 19:46:03 +0200
committerMarek Olšák <[email protected]>2017-10-18 19:36:53 +0200
commitf37af5ec8d351fe20e74b05059bea12236220e02 (patch)
treec218457db3ba290726b03c6342597753d6641c35 /src/mesa/state_tracker
parent8c9e7c9638278687297fbc6ba4344771d61f721e (diff)
st/mesa: set dimension for constants in ATI_fragment_shader
This fixes an assertion failure introduced by 30a2f0dfd46de. Fixes: 30a2f0dfd46 ("radeonsi: add an assertion that only Signed-off-by: Miklós Máté <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_atifs_to_tgsi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_atifs_to_tgsi.c b/src/mesa/state_tracker/st_atifs_to_tgsi.c
index 2a171b5a847..25ccf707350 100644
--- a/src/mesa/state_tracker/st_atifs_to_tgsi.c
+++ b/src/mesa/state_tracker/st_atifs_to_tgsi.c
@@ -637,6 +637,10 @@ set_src(struct tgsi_full_instruction *inst, unsigned i, unsigned file, unsigned
inst->Src[i].Register.SwizzleY = y;
inst->Src[i].Register.SwizzleZ = z;
inst->Src[i].Register.SwizzleW = w;
+ if (file == TGSI_FILE_CONSTANT) {
+ inst->Src[i].Register.Dimension = 1;
+ inst->Src[i].Dimension.Index = 0;
+ }
}
#define SET_SRC(inst, i, file, index, x, y, z, w) \