mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 03:48:06 +02:00
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:
parent
3d5d6327be
commit
74f76f8df2
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue