mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
nir/clip_cull_distance_utils: fix assertion failures with GL_EXT_mesh_shader
Those outputs are never compact in GLSL mesh shaders. The assertions might
not be needed.
Cc: mesa-stable
Reviewed-by: Qiang Yu <yuq825@gmail.com>
(cherry picked from commit bba2536bb0)
Conflicts:
src/compiler/nir/nir_lower_clip_cull_distance_array_vars.c
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39462>
This commit is contained in:
parent
8a4306b3b2
commit
8d6c1b6abf
2 changed files with 3 additions and 1 deletions
|
|
@ -6534,7 +6534,7 @@
|
|||
"description": "nir/clip_cull_distance_utils: fix assertion failures with GL_EXT_mesh_shader",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -178,6 +178,8 @@ replace_var_declaration(struct lower_distance_state *state, nir_shader *sh,
|
|||
assert((var->data.mode == nir_var_shader_in &&
|
||||
(sh->info.stage == MESA_SHADER_GEOMETRY ||
|
||||
sh->info.stage == MESA_SHADER_TESS_EVAL)) ||
|
||||
(var->data.mode == nir_var_shader_out &&
|
||||
sh->info.stage == MESA_SHADER_MESH) ||
|
||||
sh->info.stage == MESA_SHADER_TESS_CTRL);
|
||||
|
||||
assert(glsl_get_base_type(glsl_get_array_element(glsl_get_array_element(var->type))) ==
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue