summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2020-01-20 13:16:49 +1000
committerDave Airlie <[email protected]>2020-01-23 13:48:16 +1000
commitfc9d67394d6d6a83f592f5b40fdf28bfb6e980b0 (patch)
tree4233a4e9c1d3dedd00f9af4f3bcea1f030ddf0ed /src/gallium/drivers/llvmpipe
parent6c88c81df9544fc6653eca02ec088ed4c842235c (diff)
llvmpipe: fix some integer instruction lowering.
We want to lower to shifts for bitfields, and lower ifind_msb. Fixes a bunch of gpu shader5 tests. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3528>
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_screen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 82085a08e11..e951baa0653 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -597,8 +597,8 @@ static const struct nir_shader_compiler_options gallivm_nir_options = {
.lower_flrp32 = true,
.lower_flrp64 = true,
.lower_fsat = true,
- .lower_bitfield_insert_to_bitfield_select = true,
- .lower_bitfield_extract = true,
+ .lower_bitfield_insert_to_shifts = true,
+ .lower_bitfield_extract_to_shifts = true,
.lower_sub = true,
.lower_ffma = true,
.lower_fmod = true,
@@ -615,6 +615,7 @@ static const struct nir_shader_compiler_options gallivm_nir_options = {
.lower_extract_byte = true,
.lower_extract_word = true,
.lower_rotate = true,
+ .lower_ifind_msb = true,
.optimize_sample_mask_in = true,
.max_unroll_iterations = 32,
.use_interpolated_input_intrinsics = true,