anv: support image views with surface state stream
authorChia-I Wu <olvaffe@gmail.com>
Mon, 9 Oct 2023 21:16:19 +0000 (14:16 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 14 Oct 2023 02:36:40 +0000 (02:36 +0000)
commitd5841dce60603a6006c50348cd5c118c21a42aae
treee3af2b89a5dd72fca916e0bbc2f3332824e91908
parent815b568ed52541c35927278aab96f8b88c2202aa
anv: support image views with surface state stream

Add optional anv_state_stream to anv_image_view_init.  This is useful
for internal image views whose lifetimes are tied to the lifetime of a
command buffer.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25467>
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c