diff options
author | Jesse Natalie <jenatali@microsoft.com> | 2021-04-20 08:24:33 -0700 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-04-23 23:16:15 +0000 |
commit | 7e905bd00f32b4fa48689a8e6266b145662cfc48 (patch) | |
tree | b918c36e8f18c1b7c9d59d0c1bd842994d3839d0 | |
parent | 05d90ed9daf4d6b90d8b07579ed2eeea08abb8bb (diff) |
microsoft/spirv_to_dxil: Treat read-only storage images as SRVs
Reviewed-by: Enrico Galli <enrico.galli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10356>
-rw-r--r-- | src/microsoft/spirv_to_dxil/spirv_to_dxil.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/microsoft/spirv_to_dxil/spirv_to_dxil.c b/src/microsoft/spirv_to_dxil/spirv_to_dxil.c index aa519fcd232..af7ca096d61 100644 --- a/src/microsoft/spirv_to_dxil/spirv_to_dxil.c +++ b/src/microsoft/spirv_to_dxil/spirv_to_dxil.c @@ -108,6 +108,7 @@ spirv_to_dxil(const uint32_t *words, size_t word_count, } while (progress); } + NIR_PASS_V(nir, nir_lower_readonly_images_to_tex, true); NIR_PASS_V(nir, dxil_nir_split_clip_cull_distance); NIR_PASS_V(nir, dxil_nir_lower_loads_stores_to_dxil); |