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:
Daniel Schürmann 2023-03-14 11:24:34 +01:00 committed by Marge Bot
parent 10fc12fd17
commit 8c68aba678

View file

@ -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));
}