pan/midgard: Lower bitfield extract to shifts
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 31 Jan 2020 08:25:07 +0000 (09:25 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 3 Feb 2020 12:53:47 +0000 (12:53 +0000)
Let's lower bitfield extract to shifts until we figure out if it can be
natively supported.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676>

src/panfrost/midgard/midgard_compile.h

index 51d1c3fe1c333765bdeaee9cc23aac5c04582091..91086f1a0efa913e9581d380c9547bdb09c91c29 100644 (file)
@@ -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
 };