From 31e0e8a51b06701b391a3abab1869d613fae8340 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 12 Dec 2019 15:33:51 +1000 Subject: [PATCH] llvmpipe: lower hadd/add_sat Fixes some CL piglits. Acked-by: Roland Scheidegger --- src/gallium/drivers/llvmpipe/lp_screen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 55181e7115b..2a665c10fd3 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -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, -- 2.30.2