mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
freedreno/ir3: disable conversion folding on a4xx
Experiments suggest that e.g. add.u r0.y, hr0.x, hr0.y will result in the summed value in both the high and low words of r0.y. This only happens with odd registers, not even ones (r0.x works fine). Seen in the bit_count lowering (which turns out to be unnecessary, but this is still a larger problem). Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15251>
This commit is contained in:
parent
4684425150
commit
0277f491ae
1 changed files with 3 additions and 1 deletions
|
|
@ -4545,7 +4545,9 @@ ir3_compile_shader_nir(struct ir3_compiler *compiler,
|
|||
do {
|
||||
progress = false;
|
||||
|
||||
progress |= IR3_PASS(ir, ir3_cf);
|
||||
/* the folding doesn't seem to work reliably on a4xx */
|
||||
if (ctx->compiler->gen != 4)
|
||||
progress |= IR3_PASS(ir, ir3_cf);
|
||||
progress |= IR3_PASS(ir, ir3_cp, so);
|
||||
progress |= IR3_PASS(ir, ir3_cse);
|
||||
progress |= IR3_PASS(ir, ir3_dce, so);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue