llvmpipe/nir: lower some more packing at nir level.
authorDave Airlie <airlied@redhat.com>
Tue, 18 Aug 2020 19:15:50 +0000 (05:15 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 19 Aug 2020 00:16:49 +0000 (10:16 +1000)
Fixes:
dEQP-VK.glsl.builtin.function.pack_unpack.*

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6339>

src/gallium/drivers/llvmpipe/lp_screen.c

index 644738392c4246eb941e9bc7aa2e86941e6c2528..b12bcbd1af1b91ecd1a2565e06458d07de58f330 100644 (file)
@@ -557,10 +557,13 @@ static const struct nir_shader_compiler_options gallivm_nir_options = {
    .lower_pack_snorm_4x8 = true,
    .lower_pack_unorm_2x16 = true,
    .lower_pack_unorm_4x8 = true,
    .lower_pack_snorm_4x8 = true,
    .lower_pack_unorm_2x16 = true,
    .lower_pack_unorm_4x8 = true,
+   .lower_pack_half_2x16 = true,
+   .lower_pack_split = true,
    .lower_unpack_snorm_2x16 = true,
    .lower_unpack_snorm_4x8 = true,
    .lower_unpack_unorm_2x16 = true,
    .lower_unpack_unorm_4x8 = true,
    .lower_unpack_snorm_2x16 = true,
    .lower_unpack_snorm_4x8 = true,
    .lower_unpack_unorm_2x16 = true,
    .lower_unpack_unorm_4x8 = true,
+   .lower_unpack_half_2x16 = true,
    .lower_extract_byte = true,
    .lower_extract_word = true,
    .lower_rotate = true,
    .lower_extract_byte = true,
    .lower_extract_word = true,
    .lower_rotate = true,