mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
radeonsi: compute si_shader_info::inputs_read without input_semantic[]
Acked-by: Pierre-Eric Acked-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40556>
This commit is contained in:
parent
49888328a6
commit
3d356a99a7
1 changed files with 2 additions and 3 deletions
|
|
@ -744,9 +744,8 @@ void si_nir_gather_info(struct si_screen *sscreen, struct nir_shader *nir,
|
|||
}
|
||||
|
||||
if (nir->info.stage == MESA_SHADER_FRAGMENT) {
|
||||
for (unsigned i = 0; i < info->num_inputs; i++) {
|
||||
unsigned semantic = info->input_semantic[i];
|
||||
|
||||
u_foreach_bit64_two_masks(semantic, nir->info.inputs_read,
|
||||
VARYING_SLOT_VAR0_16BIT, nir->info.inputs_read_16bit) {
|
||||
if ((semantic <= VARYING_SLOT_VAR31 || semantic >= VARYING_SLOT_VAR0_16BIT) &&
|
||||
semantic != VARYING_SLOT_PNTC) {
|
||||
info->inputs_read |= 1ull << si_shader_io_get_unique_index(semantic);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue