You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SPIR-V does not specific the type for the WorkgroupSize builtin. All it says is "See the client API specification for more detail.". Many of the issues like whether or not the type is a vector of 3 32-bit ints should not be checked in the universal environment.
To add to @s-perron - Historically, there was no validation around BuiltIns in OpenCL (all was just in Vulkan)
#4801 showed that WorkgroupSize can't have a product of zero (which in an old SPIR-V call we agreed is universal to SPIR-V)
In Vulkan you can only have a 32 bit int vec3 for WorkgroupSize, but for OpenCL (as shown in #5407 comments) can be 64 bit int vec3 as well
Where we are at now is the code still assumes a vec3 and need to understand what is actually allowed in OpenCL/universal here, should it be just int vec3 or can it be something else (if it is, we need test coverage around it)
The SPIR-V does not specific the type for the WorkgroupSize builtin. All it says is "See the client API specification for more detail.". Many of the issues like whether or not the type is a vector of 3 32-bit ints should not be checked in the universal environment.
See https://godbolt.org/z/5s7oa9znz.
The text was updated successfully, but these errors were encountered: