mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 20:31:20 +00:00
When validating the image coordinate type of an identifier that may have been hoisted into a 'var' declaration, spirv-reader correctly checked the type of the unwrapped reference for scalars but not when the coordinate type is a vector. This change applies the vector type checks to the unwrapped type. Introduced a vector coordinate variant of the SpvParserHandleTest.ImageCoordinateCanBeHoistedConstant test which demonstrates the issue and passes with the fix. Fixed: tint:1712 Change-Id: I9d99a1996e5df71921d6f66d1af02fb5088f1f20 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116371 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: David Neto <dneto@google.com> Reviewed-by: David Neto <dneto@google.com>