mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
nir/recompute_io_bases: fix num_slots for per_view outputs
per_view outputs use one slot per enabled view. Signed-off-by: Job Noorman <jnoorman@igalia.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40651>
This commit is contained in:
parent
a72704d0fb
commit
adfc1086c9
1 changed files with 2 additions and 0 deletions
|
|
@ -102,6 +102,8 @@ nir_recompute_io_bases(nir_shader *nir, nir_variable_mode modes)
|
|||
sem.location)) {
|
||||
num_slots = DIV_ROUND_UP(num_slots, 4);
|
||||
}
|
||||
if (sem.per_view)
|
||||
num_slots *= util_bitcount(nir->info.view_mask);
|
||||
|
||||
if (mode == nir_var_shader_in) {
|
||||
for (unsigned i = 0; i < num_slots; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue