panfrost: Add generic mappings for the gen-specific tiler descriptor macros
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>
This commit is contained in:
parent
5f3910a343
commit
fe1d33daaf
|
@ -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);
|
||||
|
|
|
@ -61,10 +61,13 @@
|
|||
#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 */
|
||||
|
|
Loading…
Reference in New Issue