[Mesa-dev] [PATCH 12/18] panfrost/midgard: Identify the in_reg_full field

Alyssa Rosenzweig alyssa.rosenzweig at collabora.com
Mon Jun 10 22:01:40 UTC 2019


This is clear for texelFetch, hence the confusion with Bifrost's filter
field, but it's much more general in reality.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
 src/gallium/drivers/panfrost/midgard/disassemble.c     | 5 +----
 src/gallium/drivers/panfrost/midgard/midgard.h         | 4 +---
 src/gallium/drivers/panfrost/midgard/midgard_compile.c | 4 +---
 3 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/gallium/drivers/panfrost/midgard/disassemble.c b/src/gallium/drivers/panfrost/midgard/disassemble.c
index fea37e4c595..327a6e8435c 100644
--- a/src/gallium/drivers/panfrost/midgard/disassemble.c
+++ b/src/gallium/drivers/panfrost/midgard/disassemble.c
@@ -1083,9 +1083,6 @@ print_texture_word(uint32_t *word, unsigned tabs)
 
         /* Instruction "modifiers" parallel the ALU instructions. */
 
-        if (!texture->filter)
-                printf(".raw");
-
         if (texture->shadow)
                 printf(".shadow");
 
@@ -1107,7 +1104,7 @@ print_texture_word(uint32_t *word, unsigned tabs)
         print_swizzle_vec4(texture->swizzle, false, false);
         printf(", ");
 
-        print_texture_reg(/*texture->in_reg_full*/true, texture->in_reg_select, texture->in_reg_upper);
+        print_texture_reg(texture->in_reg_full, texture->in_reg_select, texture->in_reg_upper);
         print_swizzle_vec4(texture->in_reg_swizzle, false, false);
 
         /* There is *always* an offset attached. Of
diff --git a/src/gallium/drivers/panfrost/midgard/midgard.h b/src/gallium/drivers/panfrost/midgard/midgard.h
index 9957ac5e415..841f6e5241b 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard.h
+++ b/src/gallium/drivers/panfrost/midgard/midgard.h
@@ -534,9 +534,7 @@ __attribute__((__packed__))
          * specificed in offset_imm_* */
         unsigned offset_register : 1;
 
-        /* Like in Bifrost */
-        unsigned filter  : 1;
-
+        unsigned in_reg_full  : 1;
         unsigned in_reg_select : 1;
         unsigned in_reg_upper  : 1;
         unsigned in_reg_swizzle : 8;
diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
index e7c093e9a29..651cdd61a5b 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c
+++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
@@ -1377,12 +1377,10 @@ emit_tex(compiler_context *ctx, nir_tex_instr *instr)
                         .mask = 0xF,
 
                         /* TODO: half */
-                        //.in_reg_full = 1,
+                        .in_reg_full = 1,
                         .in_reg_swizzle = SWIZZLE_XYZW,
                         .out_full = 1,
 
-                        .filter = 1,
-
                         /* Always 1 */
                         .unknown7 = 1,
 
-- 
2.20.1



More information about the mesa-dev mailing list