spirv2dxil: Enable mediump
authorJesse Natalie <jenatali@microsoft.com>
Wed, 31 May 2023 20:17:47 +0000 (13:17 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 1 Jun 2023 23:01:04 +0000 (23:01 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23344>

src/microsoft/spirv_to_dxil/dxil_spirv_nir.c

index 026f942..013ac4d 100644 (file)
@@ -64,6 +64,9 @@ spirv_to_nir_options = {
 
    .min_ubo_alignment = 256, /* D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT */
    .min_ssbo_alignment = 16, /* D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT */
+
+   .mediump_16bit_alu = true,
+   .mediump_16bit_derivatives = true,
 };
 
 const struct spirv_to_nir_options*