commit | e6cfd1ed6421c6abcf1893802ae55562fde45d20 | [log] [tgz] |
---|---|---|
author | Timur Kristóf <timur.kristof@gmail.com> | Thu Feb 10 23:52:04 2022 +0100 |
committer | Timur Kristóf <timur.kristof@gmail.com> | Mon Feb 14 11:13:45 2022 +0100 |
tree | dc6a3c4a8114e7665d271d650b105b2495fdb0e9 | |
parent | 0445802ab2e5d101f0bec178c0a322b173a9ef9a [diff] |
spirv: Create PRIMITIVE_INDICES for NV_mesh_shader on-demand. The shader can have SpvOpWritePackedPrimitiveIndices4x8NV while the output variable may not exist. This seems to be a defect in the NV_mesh_shader SPIR-V spec, let's work around it by creating the variable on-demand. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15005>