Mesa (master): microsoft/spirv_to_dxil: Lower loads/stores to DXIL

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 16 17:16:31 UTC 2021


Module: Mesa
Branch: master
Commit: 0c8220685e056398967ceba50e20f0cf6cbddee8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c8220685e056398967ceba50e20f0cf6cbddee8

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Fri Apr  9 14:59:59 2021 -0700

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 at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10149>

---

 src/microsoft/spirv_to_dxil/spirv_to_dxil.c | 1 +
 1 file changed, 1 insertion(+)

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};
 



More information about the mesa-commit mailing list