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>
This commit is contained in:
Jesse Natalie
2021-04-09 14:59:59 -07:00
committed by Marge Bot
parent 14997c7e96
commit 0c8220685e
@@ -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};