nir: Don't lower Task/Mesh I/O to temporaries
These won't work since a workgroup can span more than one thread, and the temporaries are not shared memory. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10600>
This commit is contained in:
parent
27697d5eb8
commit
4f52681a2d
|
@ -328,7 +328,9 @@ nir_lower_io_to_temporaries(nir_shader *shader, nir_function_impl *entrypoint,
|
|||
{
|
||||
struct lower_io_state state;
|
||||
|
||||
if (shader->info.stage == MESA_SHADER_TESS_CTRL)
|
||||
if (shader->info.stage == MESA_SHADER_TESS_CTRL ||
|
||||
shader->info.stage == MESA_SHADER_TASK ||
|
||||
shader->info.stage == MESA_SHADER_MESH)
|
||||
return;
|
||||
|
||||
state.shader = shader;
|
||||
|
|
Loading…
Reference in New Issue