Mesa (main): panfrost: Only emit special attribute buffer entries on pre-v6 hardware

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Aug 26 08:52:46 UTC 2021


Module: Mesa
Branch: main
Commit: c14c246439ef6375d0e62f0285106ee7f1f6ad2c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c14c246439ef6375d0e62f0285106ee7f1f6ad2c

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Mon Aug 23 15:37:37 2021 +0200

panfrost: Only emit special attribute buffer entries on pre-v6 hardware

There's no special attributes on Bifrost.

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

---

 src/gallium/drivers/panfrost/pan_cmdstream.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c
index fe59d8998c5..f615fae42ac 100644
--- a/src/gallium/drivers/panfrost/pan_cmdstream.c
+++ b/src/gallium/drivers/panfrost/pan_cmdstream.c
@@ -2169,6 +2169,7 @@ panfrost_emit_varying_descs(
         }
 }
 
+#if PAN_ARCH <= 5
 static void
 pan_emit_special_input(struct mali_attribute_buffer_packed *out,
                 unsigned present,
@@ -2184,6 +2185,7 @@ pan_emit_special_input(struct mali_attribute_buffer_packed *out,
                 }
         }
 }
+#endif
 
 static void
 panfrost_emit_varying_descriptor(struct panfrost_batch *batch,
@@ -2279,12 +2281,14 @@ panfrost_emit_varying_descriptor(struct panfrost_batch *batch,
                                 2, vertex_count);
         }
 
+#if PAN_ARCH <= 5
         pan_emit_special_input(varyings, present,
                         PAN_VARY_PNTCOORD, MALI_ATTRIBUTE_SPECIAL_POINT_COORD);
         pan_emit_special_input(varyings, present, PAN_VARY_FACE,
                         MALI_ATTRIBUTE_SPECIAL_FRONT_FACING);
         pan_emit_special_input(varyings, present, PAN_VARY_FRAGCOORD,
                         MALI_ATTRIBUTE_SPECIAL_FRAG_COORD);
+#endif
 
         *buffers = T.gpu;
         *vs_attribs = linkage->producer;



More information about the mesa-commit mailing list