mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
spirv: Enable OpEmitMeshTasksEXT workaround for Clay Shader Compiler
Clay Shader Compiler is the SPIR-V generator used by GravityMark benchmark. Fixes #7368. Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18894>
This commit is contained in:
parent
df84c89d96
commit
988c45ae12
1 changed files with 5 additions and 1 deletions
|
|
@ -6389,9 +6389,13 @@ vtn_create_builder(const uint32_t *words, size_t word_count,
|
|||
* a terminator instruction.
|
||||
*
|
||||
* See https://github.com/KhronosGroup/glslang/issues/3020 for details.
|
||||
*
|
||||
* Clay Shader Compiler (used by GravityMark) is also affected.
|
||||
*/
|
||||
b->wa_ignore_return_after_emit_mesh_tasks =
|
||||
is_glslang(b) && generator_version < 11;
|
||||
(is_glslang(b) && generator_version < 11) ||
|
||||
(b->generator_id == vtn_generator_clay_shader_compiler &&
|
||||
generator_version < 18);
|
||||
|
||||
/* words[2] == generator magic */
|
||||
unsigned value_id_bound = words[3];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue