mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-15 11:40:39 +01:00
st/nine: Fix the calculation of the number of vs inputs
Fixes hangs on radeonsi, and assert on llvmpipe.
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit d2fd296648)
This commit is contained in:
parent
ec2751f967
commit
ca135ebd76
1 changed files with 1 additions and 1 deletions
|
|
@ -2031,7 +2031,7 @@ DECL_SPECIAL(DCL)
|
|||
ureg_DECL_vs_input(ureg, sem.reg.idx);
|
||||
assert(sem.reg.idx < ARRAY_SIZE(tx->info->input_map));
|
||||
tx->info->input_map[sem.reg.idx] = sm1_to_nine_declusage(&sem);
|
||||
tx->info->num_inputs = sem.reg.idx + 1;
|
||||
tx->info->num_inputs = MAX2(tx->info->num_inputs, sem.reg.idx + 1);
|
||||
/* NOTE: preserving order in case of indirect access */
|
||||
} else
|
||||
if (tx->version.major >= 3) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue