mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 19:10:14 +01:00
aco: split ps_epilog args before exporting them
This avoids some unnecessary copies from extracting from the input vectors. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22267>
This commit is contained in:
parent
10fc12fd17
commit
8c68aba678
1 changed files with 1 additions and 0 deletions
|
|
@ -12187,6 +12187,7 @@ select_ps_epilog(Program* program, const struct aco_ps_epilog_info* einfo, ac_sh
|
|||
out.enable_mrt_output_nan_fixup = (einfo->enable_mrt_output_nan_fixup >> i) & 1;
|
||||
|
||||
Temp inputs = get_arg(&ctx, einfo->inputs[i]);
|
||||
emit_split_vector(&ctx, inputs, 4);
|
||||
for (unsigned c = 0; c < 4; ++c) {
|
||||
out.values[c] = Operand(emit_extract_vector(&ctx, inputs, c, v1));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue