mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-12 13:58:31 +02:00
agx: fix lowering uniforms with abs/neg
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28483>
This commit is contained in:
parent
17e05c2f21
commit
51eba1c38e
1 changed files with 5 additions and 2 deletions
|
|
@ -62,8 +62,11 @@ agx_lower_uniform_sources(agx_context *ctx)
|
|||
agx_builder b = agx_init_builder(ctx, agx_before_instr(I));
|
||||
|
||||
agx_foreach_src(I, s) {
|
||||
if (should_lower(I->op, I->src[s], s))
|
||||
I->src[s] = agx_mov(&b, I->src[s]);
|
||||
if (should_lower(I->op, I->src[s], s)) {
|
||||
agx_index idx = I->src[s];
|
||||
idx.abs = idx.neg = false;
|
||||
agx_replace_src(I, s, agx_mov(&b, idx));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue