microsoft/spirv2dxil: Support pack_32_2x16 and pack_32_4x8
authorPedro J. Estébanez <pedrojrulez@gmail.com>
Mon, 24 Oct 2022 10:48:04 +0000 (12:48 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 24 Oct 2022 17:39:59 +0000 (17:39 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19273>

src/microsoft/compiler/nir_to_dxil.c

index bfd77e1..b8997b2 100644 (file)
@@ -117,6 +117,9 @@ nir_options = {
    .lower_uadd_carry = true,
    .lower_mul_high = true,
    .lower_rotate = true,
+   .lower_pack_half_2x16 = true,
+   .lower_pack_unorm_4x8 = true,
+   .lower_pack_snorm_4x8 = true,
    .lower_pack_64_2x32_split = true,
    .lower_pack_32_2x16_split = true,
    .lower_unpack_64_2x32_split = true,