mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 14:30:22 +01:00
asahi: Vectorize background colour load
No point to scalarizing this, the background can handle the vector load fine
since bfa7ec0aa0 ("agx: Don't scalarize preambles in NIR").
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21327>
This commit is contained in:
parent
affa8a9fb2
commit
888492ecd3
1 changed files with 1 additions and 8 deletions
|
|
@ -61,14 +61,7 @@ build_background_op(nir_builder *b, enum agx_meta_op op, unsigned rt,
|
|||
} else {
|
||||
assert(op == AGX_META_OP_CLEAR);
|
||||
|
||||
nir_ssa_def *comp[] = {
|
||||
nir_load_preamble(b, 1, 32, (rt * 8) + 0),
|
||||
nir_load_preamble(b, 1, 32, (rt * 8) + 2),
|
||||
nir_load_preamble(b, 1, 32, (rt * 8) + 4),
|
||||
nir_load_preamble(b, 1, 32, (rt * 8) + 6),
|
||||
};
|
||||
|
||||
return nir_vec(b, comp, nr);
|
||||
return nir_load_preamble(b, nr, 32, rt * 8);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue