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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user