turnip: compute gmem offsets at renderpass creation time
authorJonathan Marek <jonathan@marek.ca>
Mon, 16 Dec 2019 21:42:35 +0000 (16:42 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 19 Dec 2019 20:42:08 +0000 (20:42 +0000)
commit85fff42d085185db0ca05798f9c1056981dc528b
tree86d57eb79cce0f0c0cc37be55dd0882ad5193c3d
parentf81c41a812c07ca01ee05d60bf6c1551157161d5
turnip: compute gmem offsets at renderpass creation time

This makes it easier to implement secondary command buffers, since we no
longer need to know the render area to set the gmem offsets for input
attachments and CmdClearAttachments.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3075>
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_meta_clear.c
src/freedreno/vulkan/tu_pass.c
src/freedreno/vulkan/tu_private.h