summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-07-28 11:04:35 +1000
committerEmil Velikov <[email protected]>2017-07-31 10:23:09 +0100
commitf9e563597d670083145359f393d31ce69a19ab9b (patch)
treee710760b941ed8fa9dfd1985e2f5a5952f458dd5 /src
parent5b61ba4432ec272b74d9eb1b16d18e6a43879b3a (diff)
virgl: drop precise modifier.
The host doesn't understand this yet, so drop it for now. Fixes: virgl regressions. Fixes: af22adee4f (tgsi: add precise flag to tgsi_instruction) Signed-off-by: Dave Airlie <[email protected]> (cherry picked from commit 554aa094406f3f5a935c4adbe77569cc9beb4312)
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/virgl/virgl_tgsi.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_tgsi.c b/src/gallium/drivers/virgl/virgl_tgsi.c
index 4a2271f24f4..7ad1cbdb886 100644
--- a/src/gallium/drivers/virgl/virgl_tgsi.c
+++ b/src/gallium/drivers/virgl/virgl_tgsi.c
@@ -48,6 +48,15 @@ virgl_tgsi_transform_property(struct tgsi_transform_context *ctx,
}
}
+static void
+virgl_tgsi_transform_instruction(struct tgsi_transform_context *ctx,
+ struct tgsi_full_instruction *inst)
+{
+ if (inst->Instruction.Precise)
+ inst->Instruction.Precise = 0;
+ ctx->emit_instruction(ctx, inst);
+}
+
struct tgsi_token *virgl_tgsi_transform(const struct tgsi_token *tokens_in)
{
@@ -61,6 +70,7 @@ struct tgsi_token *virgl_tgsi_transform(const struct tgsi_token *tokens_in)
memset(&transform, 0, sizeof(transform));
transform.base.transform_property = virgl_tgsi_transform_property;
+ transform.base.transform_instruction = virgl_tgsi_transform_instruction;
tgsi_transform_shader(tokens_in, new_tokens, newLen, &transform.base);
return new_tokens;