Mesa (main): ir3: Use source in ir3_output_conv_src_type()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Oct 6 13:48:18 UTC 2021
Module: Mesa
Branch: main
Commit: 0209311c6e8aaed075f6f519706122087e6c33eb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0209311c6e8aaed075f6f519706122087e6c33eb
Author: Connor Abbott <cwabbott0 at gmail.com>
Date: Wed Oct 6 12:55:23 2021 +0200
ir3: Use source in ir3_output_conv_src_type()
This was incorrectly converted when splitting the regs array. Noticed by
inspection.
Fixes: d3e08327cf8 ("ir3/core: Switch to srcs/dsts arrays")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13220>
---
src/freedreno/ir3/ir3.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/freedreno/ir3/ir3.h b/src/freedreno/ir3/ir3.h
index b767fa14f0b..722c4d874a6 100644
--- a/src/freedreno/ir3/ir3.h
+++ b/src/freedreno/ir3/ir3.h
@@ -1443,7 +1443,7 @@ ir3_output_conv_src_type(struct ir3_instruction *instr, type_t base_type)
return TYPE_F32;
default:
- return (instr->dsts[1]->flags & IR3_REG_HALF) ? half_type(base_type)
+ return (instr->srcs[0]->flags & IR3_REG_HALF) ? half_type(base_type)
: full_type(base_type);
}
}
More information about the mesa-commit
mailing list