microsoft/clc: Images use nir_var_mem_image
authorJesse Natalie <jenatali@microsoft.com>
Tue, 28 Sep 2021 19:13:30 +0000 (12:13 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 Oct 2021 14:58:56 +0000 (14:58 +0000)
commit9601556079d8592ca6c149d83335e7ab0405485c
treefb736ea3e49d49e824e156d5dc48d6ae89242559
parent26d603da0710b67d93b8d163cc37f109af7416b8
microsoft/clc: Images use nir_var_mem_image

The only big change is that lower_vars_to_explicit no longer assigns
a driver_location for images. That means that the storage for the
format/order loads is no longer implicitly "allocated" in the middle
of the kernel args. Instead, manually add the storage for that to the end
of the input args buffer.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4743>
src/microsoft/clc/clc_compiler.c
src/microsoft/compiler/nir_to_dxil.c