panfrost: Rename unknown2_8 to padding
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 10 Feb 2020 13:56:33 +0000 (08:56 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sun, 16 Feb 2020 14:16:46 +0000 (09:16 -0500)
It's zero everywhere.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3835>

src/panfrost/include/panfrost-job.h
src/panfrost/pandecode/decode.c

index 7002776eed5b11e0e87266a57df1706afaa66a91..940b5860e95b9fa5ded63edc8775d5dc571af377 100644 (file)
@@ -614,8 +614,7 @@ struct mali_shader_meta {
                 } midgard2;
         };
 
-        /* zero on bifrost */
-        u32 unknown2_8;
+        u32 padding;
 
         /* Blending information for the older non-MRT Midgard HW. Check for
          * MALI_HAS_BLEND_SHADER to decide how to interpret.
index ec53cd7548183679c8307bfcd4e3f1b0142955a3..e523128a0bc48b0da0dbfd1c1a0198b2626ac2fa 100644 (file)
@@ -2270,8 +2270,10 @@ pandecode_vertex_tiler_postfix_pre(
                         pandecode_log("},\n");
                 }
 
-                if (s->unknown2_8)
-                        pandecode_prop("unknown2_8 = 0x%" PRIx32, s->unknown2_8);
+                if (s->padding) {
+                        pandecode_msg("XXX: shader padding tripped\n");
+                        pandecode_prop("padding = 0x%" PRIx32, s->padding);
+                }
 
                 if (!is_bifrost) {
                         /* TODO: Blend shaders routing/disasm */