diff options
author | Jesse Natalie <jenatali@microsoft.com> | 2021-04-09 14:59:59 -0700 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-04-16 17:08:17 +0000 |
commit | 0c8220685e056398967ceba50e20f0cf6cbddee8 (patch) | |
tree | fc8e1ce823566f5925200362569aaa35e5380215 | |
parent | 14997c7e9652e97cebebffa6d296ca70c1c82e8a (diff) |
microsoft/spirv_to_dxil: Lower loads/stores to DXIL
This adjusts UBO loads to be float4 loads, and handles SSBO accesses
that are larger/smaller than 32bit.
Reviewed-by: Enrico Galli <enrico.galli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10149>
-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 603442925ca..fa383020d0f 100644 --- a/src/microsoft/spirv_to_dxil/spirv_to_dxil.c +++ b/src/microsoft/spirv_to_dxil/spirv_to_dxil.c @@ -110,6 +110,7 @@ spirv_to_dxil(const uint32_t *words, size_t word_count, NIR_PASS_V(nir, dxil_nir_split_clip_cull_distance); NIR_PASS_V(nir, nir_lower_samplers); + NIR_PASS_V(nir, dxil_nir_lower_loads_stores_to_dxil); struct nir_to_dxil_options opts = {.vulkan_environment = true}; |