Module: Mesa Branch: main Commit: c505f892d44e39dda3731a80214a6b164517e979 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c505f892d44e39dda3731a80214a6b164517e979
Author: Mike Blumenkrantz <[email protected]> Date: Thu Jan 26 12:33:40 2023 -0500 radv: delete radv_graphics_pipeline_compile() asserts validation should catch these by now Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20947> --- src/amd/vulkan/radv_pipeline.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 50099d6e071..633940c191f 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -3512,19 +3512,6 @@ radv_graphics_pipeline_compile(struct radv_graphics_pipeline *pipeline, radv_pipeline_load_retained_shaders(pipeline, stages); - ASSERTED bool primitive_shading = - stages[MESA_SHADER_VERTEX].entrypoint || stages[MESA_SHADER_TESS_CTRL].entrypoint || - stages[MESA_SHADER_TESS_EVAL].entrypoint || stages[MESA_SHADER_GEOMETRY].entrypoint; - ASSERTED bool mesh_shading = - stages[MESA_SHADER_MESH].entrypoint; - - /* Primitive and mesh shading must not be mixed in the same pipeline. */ - assert(!primitive_shading || !mesh_shading); - /* Mesh shaders are mandatory in mesh shading pipelines. */ - assert(mesh_shading == !!stages[MESA_SHADER_MESH].entrypoint); - /* Mesh shaders always need NGG. */ - assert(!mesh_shading || pipeline_key->use_ngg); - if (!fast_linking_enabled) { radv_hash_shaders(hash, stages, MESA_VULKAN_SHADER_STAGES, pipeline_layout, pipeline_key, radv_get_hash_flags(device, keep_statistic_info));
