This fixes an assertion failure introduced by
30a2f0dfd46de.
Fixes: 30a2f0dfd46 ("radeonsi: add an assertion that only
Signed-off-by: Miklós Máté <mtmkls@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
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) \