aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2020-01-31 09:25:07 +0100
committerMarge Bot <[email protected]>2020-02-03 12:53:47 +0000
commitef89a52fe58e85402d7652d863da1cc90b378772 (patch)
tree95d8f4324670d22f4cf015429c3fd7a24a914189
parentc68cd39eb3797eb34a049950cb34acfd0719cde7 (diff)
pan/midgard: Lower bitfield extract to shifts
Let's lower bitfield extract to shifts until we figure out if it can be natively supported. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676>
-rw-r--r--src/panfrost/midgard/midgard_compile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_compile.h b/src/panfrost/midgard/midgard_compile.h
index 51d1c3fe1c3..91086f1a0ef 100644
--- a/src/panfrost/midgard/midgard_compile.h
+++ b/src/panfrost/midgard/midgard_compile.h
@@ -148,6 +148,7 @@ static const nir_shader_compiler_options midgard_nir_options = {
.lower_doubles_options = nir_lower_dmod,
+ .lower_bitfield_extract_to_shifts = true,
.vectorize_io = true,
.use_interpolated_input_intrinsics = true
};