mesa/src/microsoft
Jesse Natalie f9b0382faf microsoft/compiler: Emit const accesses as load_deref
There's a few changes in here that are very inter-related.

First, we stop lowering load_deref on shader_temp to load_ptr_dxil,
and just leave it as load_deref. In order for that to work, we need
the derefs to be in a shape that's acceptable to DXIL, so the only
current producer of shader_temp loads (the CLC frontend) needs to
run some lowering passes on them first.

The DXIL backend is augmented to just write out deref indices while
walking a deref chain, which will get combined in the load op into
a GEP instruction. For non-mesh/raytracing shaders, these are required
to be single-level scalar arrays, but the complexity here is preparation
for when we don't need to do that anymore.

Additionally, the const lookups are changed from using a hash table
to just putting an index on the variable.

All of this together is enough to enable the authored-forever-ago test
which uses indirect array access into a const packed struct. The
load_ptr_dxil handling didn't deal with packed structs / unaligned
accesses, but now that we're in a logical address space with derefs
instead of physical, there's no alignment to deal with anymore and
the fact that it's packed goes out the window.

This removes one custom DXIL intrinsic.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23173>
2023-06-13 00:43:36 +00:00
..
ci ci/windows: Update WARP to 1.0.7.1 2023-05-31 16:20:15 +00:00
clc microsoft/compiler: Emit const accesses as load_deref 2023-06-13 00:43:36 +00:00
compiler microsoft/compiler: Emit const accesses as load_deref 2023-06-13 00:43:36 +00:00
spirv_to_dxil treewide: Use nir_trim_vector more 2023-06-06 18:52:25 +00:00
vulkan dzn: Don't support VK R4G4B4A4_UNORM_PACK16 unless we have B4G4R4A4 2023-06-12 22:25:19 +00:00
meson.build d3d12: Move the D3D12ResourceState code to the gallium driver 2022-04-20 23:45:28 -07:00