panvk/csf: Explain why the tiler is set to 0xdeadbeefdeadbeef

When simul_use=true, the tiler descriptors are allocated from
the descriptor ringbuf. We set state.gfx.render.tiler to a
non-NULL value to satisfy the is_tiler_desc_allocated() tests,
but we want it to point to a faulty address so we can easily
detect if it's used in the command stream/framebuffer
descriptors.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32213>
This commit is contained in:
Boris Brezillon 2024-11-19 11:59:27 +01:00 committed by Marge Bot
parent 3d5d6327be
commit 74f76f8df2

View file

@ -780,6 +780,11 @@ get_tiler_desc(struct panvk_cmd_buffer *cmdbuf)
cfg.layer_offset = 0;
}
/* When simul_use=true, the tiler descriptors are allocated from the
* descriptor ringbuf. We set state.gfx.render.tiler to a non-NULL
* value to satisfy the is_tiler_desc_allocated() tests, but we want
* it to point to a faulty address so that we can easily detect if it's
* used in the command stream/framebuffer descriptors. */
cmdbuf->state.gfx.render.tiler =
simul_use ? 0xdeadbeefdeadbeefull : tiler_desc.gpu;