nir: skip nir_lower_io_passes for compute shaders
Reviewed-by: Qiang Yu <yuq825@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21861>
This commit is contained in:
parent
d29dd3333b
commit
45d41bd043
1 changed files with 2 additions and 1 deletions
|
|
@ -3129,7 +3129,8 @@ type_size_vec4(const struct glsl_type *type, bool bindless)
|
|||
void
|
||||
nir_lower_io_passes(nir_shader *nir)
|
||||
{
|
||||
if (!nir->options->lower_io_variables)
|
||||
if (!nir->options->lower_io_variables ||
|
||||
nir->info.stage == MESA_SHADER_COMPUTE)
|
||||
return;
|
||||
|
||||
bool has_indirect_inputs =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue