projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f45b7c5
)
freedreno/ir3: disallow immediate addr/offset for ldg/ldg.a
author
Danylo Piliaiev
<dpiliaiev@igalia.com>
Fri, 8 Oct 2021 15:30:11 +0000
(18:30 +0300)
committer
Marge Bot
<eric+marge@anholt.net>
Thu, 21 Oct 2021 18:59:57 +0000
(18:59 +0000)
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13300>
src/freedreno/ir3/ir3.c
patch
|
blob
|
history
diff --git
a/src/freedreno/ir3/ir3.c
b/src/freedreno/ir3/ir3.c
index
e575082
..
1b5908c
100644
(file)
--- a/
src/freedreno/ir3/ir3.c
+++ b/
src/freedreno/ir3/ir3.c
@@
-953,6
+953,12
@@
ir3_valid_flags(struct ir3_instruction *instr, unsigned n, unsigned flags)
if (instr->opc == OPC_STG_A && (n == 4))
return false;
+ if (instr->opc == OPC_LDG && (n == 0))
+ return false;
+
+ if (instr->opc == OPC_LDG_A && (n < 2))
+ return false;
+
/* as with atomics, these cat6 instrs can only have an immediate
* for SSBO/IBO slot argument
*/