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

Author: Alyssa Rosenzweig <[email protected]>
Date:   Fri Jan 21 12:48:53 2022 -0500

panfrost: Handle Valhall IDVS in job_uses_tiling

Valhall-style IDVS uses a distinct job type which has to be handled separately.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15586>

---

 src/panfrost/lib/pan_scoreboard.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/panfrost/lib/pan_scoreboard.h 
b/src/panfrost/lib/pan_scoreboard.h
index 4910dac930b..f6476c66651 100644
--- a/src/panfrost/lib/pan_scoreboard.h
+++ b/src/panfrost/lib/pan_scoreboard.h
@@ -131,6 +131,11 @@ struct pan_scoreboard {
 static bool
 panfrost_job_uses_tiling(enum mali_job_type type)
 {
+#if PAN_ARCH >= 9
+        if (type == MALI_JOB_TYPE_MALLOC_VERTEX)
+                return true;
+#endif
+
 #if PAN_ARCH >= 6
         if (type == MALI_JOB_TYPE_INDEXED_VERTEX)
                 return true;

Reply via email to