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:
@@ -6389,9 +6389,13 @@ vtn_create_builder(const uint32_t *words, size_t word_count,
|
|||||||
* a terminator instruction.
|
* a terminator instruction.
|
||||||
*
|
*
|
||||||
* See https://github.com/KhronosGroup/glslang/issues/3020 for details.
|
* 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 =
|
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 */
|
/* words[2] == generator magic */
|
||||||
unsigned value_id_bound = words[3];
|
unsigned value_id_bound = words[3];
|
||||||
|
Reference in New Issue
Block a user