From: Dave Airlie Date: Mon, 13 Nov 2017 20:52:06 +0000 (+1000) Subject: virgl: also remove dimension on indirect. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49c61d8b841538e09b8c2b2d2f409147fd7b549a;p=mesa.git virgl: also remove dimension on indirect. This fixes some dEQP tests that generated bad shaders. Fixes: b6f6ead19 (virgl: drop const dimensions on first block.) Reviewed-by: Gurchetan Singh Tested-by: Gurchetan Singh Signed-off-by: Dave Airlie --- diff --git a/src/gallium/drivers/virgl/virgl_tgsi.c b/src/gallium/drivers/virgl/virgl_tgsi.c index aa483ade5df..ca0591322da 100644 --- a/src/gallium/drivers/virgl/virgl_tgsi.c +++ b/src/gallium/drivers/virgl/virgl_tgsi.c @@ -76,7 +76,6 @@ virgl_tgsi_transform_instruction(struct tgsi_transform_context *ctx, for (unsigned i = 0; i < inst->Instruction.NumSrcRegs; i++) { if (inst->Src[i].Register.File == TGSI_FILE_CONSTANT && inst->Src[i].Register.Dimension && - !inst->Src[i].Register.Indirect && inst->Src[i].Dimension.Index == 0) inst->Src[i].Register.Dimension = 0; }