spirv2dxil: Set min UBO/SSBO alignments

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21029>
This commit is contained in:
Jesse Natalie 2023-02-01 11:03:52 -08:00 committed by Marge Bot
parent 58e7acb0e2
commit 9e2683c6f0

View file

@ -54,7 +54,10 @@ spirv_to_nir_options = {
* instead of vulkan_resource_index. This makes it much easier to
* get the DXIL handle for the SSBO.
*/
.use_deref_buffer_array_length = true
.use_deref_buffer_array_length = true,
.min_ubo_alignment = 256, /* D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT */
.min_ssbo_alignment = 16, /* D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT */
};
const struct spirv_to_nir_options*