microsoft/compiler: DXIL validator 1.6 uses a new PSV resource struct
authorJesse Natalie <jenatali@microsoft.com>
Sun, 17 Jul 2022 17:26:36 +0000 (10:26 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 23 Jul 2022 14:48:17 +0000 (14:48 +0000)
commit9dbaece312ccbdea373f9b4345c2041ad01481c7
treee449b15725d2c56ac66ddea18e1582463279f7e8
parentd9e575d4d7d33157b696c4b71fbe8a1a5dc22822
microsoft/compiler: DXIL validator 1.6 uses a new PSV resource struct

This is a huge pain because it's an array, meaning that accessing
an entry in the array now depends on the validator version to use
the right element stride.

We could always just store the v1 and downconvert if needed... but
this isn't *that* bad that I felt I had to do it that way.

Reviewed-by: Enrico Galli <enrico.galli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17603>
src/microsoft/compiler/dxil_container.c
src/microsoft/compiler/dxil_container.h
src/microsoft/compiler/nir_to_dxil.c