Closed jkwak-work closed 4 weeks ago
This issue is likely a bug with glslang validation, none of the posted specifications online say anything about order (https://github.com/KhronosGroup/GLSL/blob/main/extensions/nv/GLSL_NV_compute_shader_derivatives.txt). Regardless, we need a fix for the glslang bug or not because else the code won't compile.
Problem description The extension for a keyword, "DerivativeGroupLinear", appears to require the group size to be declared before.
I didn't see any mention about the ordering on the document. And it could be a bug in glslang.
Repro step The following test can reproduce the issue.
Note that the issue cannot be reproduced when using "-emit-spirv-directly". The issue appears to be more related to glslang.
Goal Emit "local_size_x" before "derivative_group_linearNV". Or figure out if it is a bug in glslang.