mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 15:10:10 +01:00
radeonsi: fix export count
Fixes: 17acff01a0 ("radeonsi: skip vs output optimizations for some outputs")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2877
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4871>
This commit is contained in:
parent
af55bdd05d
commit
7e7bb38bd8
1 changed files with 7 additions and 9 deletions
|
|
@ -3125,9 +3125,6 @@ void ac_optimize_vs_outputs(struct ac_llvm_context *ctx,
|
|||
|
||||
target -= V_008DFC_SQ_EXP_PARAM;
|
||||
|
||||
if ((1u << target) & skip_output_mask)
|
||||
continue;
|
||||
|
||||
/* Parse the instruction. */
|
||||
memset(&exp, 0, sizeof(exp));
|
||||
exp.offset = target;
|
||||
|
|
@ -3151,12 +3148,13 @@ void ac_optimize_vs_outputs(struct ac_llvm_context *ctx,
|
|||
}
|
||||
|
||||
/* Eliminate constant and duplicated PARAM exports. */
|
||||
if (ac_eliminate_const_output(vs_output_param_offset,
|
||||
num_outputs, &exp) ||
|
||||
ac_eliminate_duplicated_output(ctx,
|
||||
vs_output_param_offset,
|
||||
num_outputs, &exports,
|
||||
&exp)) {
|
||||
if (!((1u << target) & skip_output_mask) &&
|
||||
(ac_eliminate_const_output(vs_output_param_offset,
|
||||
num_outputs, &exp) ||
|
||||
ac_eliminate_duplicated_output(ctx,
|
||||
vs_output_param_offset,
|
||||
num_outputs, &exports,
|
||||
&exp))) {
|
||||
removed_any = true;
|
||||
} else {
|
||||
exports.exp[exports.num++] = exp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue