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

Author: Boris Brezillon <[email protected]>
Date:   Wed Nov 15 12:49:19 2023 +0100

panfrost: Restrict job descriptor emission to JM hardware

CSF hardware issue jobs through command stream instructions.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26356>

---

 src/panfrost/lib/pan_desc.c | 2 ++
 src/panfrost/lib/pan_desc.h | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/src/panfrost/lib/pan_desc.c b/src/panfrost/lib/pan_desc.c
index 0b2603276fa..91171a4a246 100644
--- a/src/panfrost/lib/pan_desc.c
+++ b/src/panfrost/lib/pan_desc.c
@@ -910,6 +910,7 @@ GENX(pan_emit_fbd)(const struct panfrost_device *dev,
 }
 #endif
 
+#if PAN_ARCH <= 9
 void
 GENX(pan_emit_fragment_job)(const struct pan_fb_info *fb, mali_ptr fbd,
                             void *out)
@@ -935,3 +936,4 @@ GENX(pan_emit_fragment_job)(const struct pan_fb_info *fb, 
mali_ptr fbd,
 #endif
    }
 }
+#endif
diff --git a/src/panfrost/lib/pan_desc.h b/src/panfrost/lib/pan_desc.h
index 18b789e3735..74e793e2f51 100644
--- a/src/panfrost/lib/pan_desc.h
+++ b/src/panfrost/lib/pan_desc.h
@@ -182,8 +182,11 @@ unsigned GENX(pan_emit_fbd)(const struct panfrost_device 
*dev,
                             const struct pan_tiler_context *tiler_ctx,
                             void *out);
 
+#if PAN_ARCH <= 9
 void GENX(pan_emit_fragment_job)(const struct pan_fb_info *fb, mali_ptr fbd,
                                  void *out);
+#endif
+
 #endif /* ifdef PAN_ARCH */
 
 #endif

Reply via email to