summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-11-14 06:52:06 +1000
committerEmil Velikov <[email protected]>2018-02-05 19:06:02 +0000
commit15ef35052c0df90b4dc54bd1e1f4005227311442 (patch)
tree7e24b3b52c0a4a1779121b1c8567e46740fe33ee /src
parent1c688263234e28113f8b879d9f91bc0243bcd0c5 (diff)
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 <[email protected]> Tested-by: Gurchetan Singh <[email protected]> Signed-off-by: Dave Airlie <[email protected]> (cherry picked from commit 49c61d8b841538e09b8c2b2d2f409147fd7b549a)
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/virgl/virgl_tgsi.c1
1 files changed, 0 insertions, 1 deletions
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;
}