mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 01:40:08 +01:00
nir: Lower cull and clip distance arrays for mesh shaders.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13466>
This commit is contained in:
parent
6a502a0a2c
commit
e1e461d11c
1 changed files with 2 additions and 1 deletions
|
|
@ -124,7 +124,8 @@ nir_lower_clip_cull_distance_arrays(nir_shader *nir)
|
|||
{
|
||||
bool progress = false;
|
||||
|
||||
if (nir->info.stage <= MESA_SHADER_GEOMETRY)
|
||||
if (nir->info.stage <= MESA_SHADER_GEOMETRY ||
|
||||
nir->info.stage == MESA_SHADER_MESH)
|
||||
progress |= combine_clip_cull(nir, nir_var_shader_out, true);
|
||||
|
||||
if (nir->info.stage > MESA_SHADER_VERTEX) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue