panfrost: Pass IS_BIFROST to pandecode_jc
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 7 Apr 2020 16:22:37 +0000 (18:22 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 10 Apr 2020 14:53:21 +0000 (16:53 +0200)
So we can decode the right structures on Bifrost hw.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4505>

src/gallium/drivers/panfrost/pan_job.c

index 8634bf74d6e0cc9224c2a5988dbf582dc3b1d321..cf74a73a86d11f88f626c44576abe50372596c64 100644 (file)
@@ -918,7 +918,7 @@ panfrost_batch_submit_ioctl(struct panfrost_batch *batch,
 
                 /* Trace gets priority over sync */
                 bool minimal = !(pan_debug & PAN_DBG_TRACE);
-                pandecode_jc(submit.jc, FALSE, dev->gpu_id, minimal);
+                pandecode_jc(submit.jc, dev->quirks & IS_BIFROST, dev->gpu_id, minimal);
         }
 
         return 0;