Mesa (master): freedreno/ir3: additional lowering

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Mar 21 13:15:35 UTC 2019


Module: Mesa
Branch: master
Commit: 3d8349048bfb01f1e4240403c38c608d26aeb997
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d8349048bfb01f1e4240403c38c608d26aeb997

Author: Rob Clark <robdclark at gmail.com>
Date:   Tue Mar 19 14:45:40 2019 -0400

freedreno/ir3: additional lowering

For some things that show up when we expose higher glsl

TODO check blob traces to see if we have instructions for some of this?
I guess we don't but worth a check..

Signed-off-by: Rob Clark <robdclark at gmail.com>

---

 src/freedreno/ir3/ir3_nir.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c
index 606e044d347..0f647e3e8c2 100644
--- a/src/freedreno/ir3/ir3_nir.c
+++ b/src/freedreno/ir3/ir3_nir.c
@@ -51,6 +51,9 @@ static const nir_shader_compiler_options options = {
 		.lower_extract_word = true,
 		.lower_all_io_to_temps = true,
 		.lower_helper_invocation = true,
+		.lower_bitfield_insert_to_shifts = true,
+		.lower_bitfield_extract_to_shifts = true,
+		.lower_bfm = true,
 };
 
 /* we don't want to lower vertex_id to _zero_based on newer gpus: */
@@ -74,6 +77,9 @@ static const nir_shader_compiler_options options_a6xx = {
 		.lower_extract_word = true,
 		.lower_all_io_to_temps = true,
 		.lower_helper_invocation = true,
+		.lower_bitfield_insert_to_shifts = true,
+		.lower_bitfield_extract_to_shifts = true,
+		.lower_bfm = true,
 };
 
 const nir_shader_compiler_options *




More information about the mesa-commit mailing list