r600: Correct nir_indirect_supported_mask

The option lower_all_io_to_temps was only set to true for FS,
consequently the correct mask includes all shaders but the FS.

Fixes: a86f32a1ae
    etnaviv,r600,v3d,virgl: report correct nir_options::support_indirect_*

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36013>
This commit is contained in:
Gert Wollny 2025-07-08 23:31:08 +02:00 committed by Marge Bot
parent 1529f38086
commit a43bfffe1e

View file

@ -1219,8 +1219,11 @@ bool r600_common_screen_init(struct r600_common_screen *rscreen,
}
rscreen->nir_options_fs = rscreen->nir_options;
rscreen->nir_options.support_indirect_inputs = BITFIELD_BIT(PIPE_SHADER_TESS_CTRL);
rscreen->nir_options.support_indirect_outputs = BITFIELD_BIT(PIPE_SHADER_TESS_CTRL);
uint8_t indirect_supported_mask =
(uint8_t)BITFIELD_MASK(PIPE_SHADER_TYPES) &
~BITFIELD_BIT(PIPE_SHADER_FRAGMENT);
rscreen->nir_options.support_indirect_inputs = indirect_supported_mask;
rscreen->nir_options.support_indirect_outputs = indirect_supported_mask;
return true;
}