panfrost: Add generic mappings for the gen-specific tiler descriptor macros
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 4 Aug 2021 09:25:26 +0000 (11:25 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 26 Aug 2021 08:35:17 +0000 (10:35 +0200)
This way the transition to per-gen XML files gets simpler.

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

src/gallium/drivers/panfrost/pan_cmdstream.c
src/panfrost/lib/gen_macros.h

index 29405f7..da87963 100644 (file)
@@ -2602,13 +2602,13 @@ panfrost_batch_get_bifrost_tiler(struct panfrost_batch *batch, unsigned vertex_c
                 return batch->tiler_ctx.bifrost;
 
         struct panfrost_ptr t =
-                pan_pool_alloc_desc(&batch->pool.base, BIFROST_TILER_HEAP);
+                pan_pool_alloc_desc(&batch->pool.base, TILER_HEAP);
 
         pan_emit_bifrost_tiler_heap(dev, t.cpu);
 
         mali_ptr heap = t.gpu;
 
-        t = pan_pool_alloc_desc(&batch->pool.base, BIFROST_TILER);
+        t = pan_pool_alloc_desc(&batch->pool.base, TILER_CONTEXT);
         pan_emit_bifrost_tiler(dev, batch->key.width, batch->key.height,
                                util_framebuffer_get_num_samples(&batch->key),
                                heap, t.cpu);
index 88225ab..bef174f 100644 (file)
 #define TILER_JOB BIFROST_TILER_JOB
 #define TEXTURE BIFROST_TEXTURE
 #define SAMPLER BIFROST_SAMPLER
+#define TILER_HEAP BIFROST_TILER_HEAP
+#define TILER_CONTEXT BIFROST_TILER
 #else
 #define TILER_JOB MIDGARD_TILER_JOB
 #define TEXTURE MIDGARD_TEXTURE
 #define SAMPLER MIDGARD_SAMPLER
+#define TILER_CONTEXT MIDGARD_TILER
 #endif
 
 /* Suffixing macros */