llvmpipe: lower hadd/add_sat
authorDave Airlie <airlied@redhat.com>
Thu, 12 Dec 2019 05:33:51 +0000 (15:33 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 27 Dec 2019 03:26:33 +0000 (13:26 +1000)
Fixes some CL piglits.

Acked-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_screen.c

index 55181e7115b3df8c7e0a1ec4deb8c80743ae559d..2a665c10fd3c54df49754f15d317b8a74404157e 100644 (file)
@@ -599,6 +599,8 @@ static const struct nir_shader_compiler_options gallivm_nir_options = {
    .lower_sub = true,
    .lower_ffma = true,
    .lower_fmod = true,
+   .lower_hadd = true,
+   .lower_add_sat = true,
    .lower_pack_snorm_2x16 = true,
    .lower_pack_snorm_4x8 = true,
    .lower_pack_unorm_2x16 = true,