mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-15 03:41:34 +00:00
Follow the actual SPIR-V type when computing a composite extract instad of the canonicalized view in the optimizer's type manager. Do this so we can generate the correct member name for a struct, rather than using the member name for the other representative struct type. The optimizer's type canonicalizer is insensitive to struct member names. Prompted by tint:213, for which the original case was an access chain. Bug: tint:3, tint:213 Change-Id: I8705c7ee655fe47c8b7a3658db524fe18833efdb Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/27603 Commit-Queue: David Neto <dneto@google.com> Reviewed-by: dan sinclair <dsinclair@chromium.org>