mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
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:
parent
1529f38086
commit
a43bfffe1e
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue