commit | 9e3213ad30fdf121f98dc3e250486c1533047c10 | [log] [tgz] |
---|---|---|
author | Jason Ekstrand <jason@jlekstrand.net> | Fri May 29 17:57:34 2020 -0500 |
committer | Jason Ekstrand <jason@jlekstrand.net> | Thu Jul 23 22:43:21 2020 -0500 |
tree | afaa64f2979cca1fe0658c9c8508bf7f90e2b59a | |
parent | 051f8d3d1cf1d6eba5775622fddb280ce810daf1 [diff] |
spirv: Add a helper for getting the NIR type of a vtn_type There are a few cases, atomic counters being one example, where the type used by vtn_ssa_value is not the same as the type we want NIR to use in derefs and variables. To solve this, we add a helper which converts between the types for us. In the next commit, we'll be adding another major user of this: images and samplers. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5278>