Mesa (master): pan/mdg: fix src_type in instructions that need a implicit zero
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jul 30 23:13:18 UTC 2020
Module: Mesa
Branch: master
Commit: b1b0ce04b3edef92f5a69ea9b8e0453348104757
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b1b0ce04b3edef92f5a69ea9b8e0453348104757
Author: Italo Nicola <italonicola at collabora.com>
Date: Fri Jul 10 14:51:52 2020 +0000
pan/mdg: fix src_type in instructions that need a implicit zero
We were incorrectly assuming uint32 for src_type[1] regardless of
src_type[0].
Signed-off-by: Italo Nicola <italonicola at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5933>
---
src/panfrost/midgard/midgard_compile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index 0a249d57f3d..44db10463d5 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -1266,7 +1266,7 @@ emit_alu(compiler_context *ctx, nir_alu_instr *instr)
/* Lots of instructions need a 0 plonked in */
ins.has_inline_constant = false;
ins.src[1] = SSA_FIXED_REGISTER(REGISTER_CONSTANT);
- ins.src_types[1] = nir_type_uint32;
+ ins.src_types[1] = ins.src_types[0];
ins.has_constants = true;
ins.constants.u32[0] = 0;
More information about the mesa-commit
mailing list