turnip: image_view rework
authorJonathan Marek <jonathan@marek.ca>
Wed, 8 Apr 2020 01:12:45 +0000 (21:12 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 16 Apr 2020 14:04:18 +0000 (14:04 +0000)
commit24378086710bae7eb7b6d0cb4ec0e718d36ba32c
tree4da3050b8bc6c47fa2f4fa0b87498acdbaaaff9f
parent300d0e2b809644262481c30cf205761abd2234bb
turnip: image_view rework

Instead of exposing various layout functions, move image-related logic
into tu_image.c and have the image_view pre-fill relevant register values.

This changes the clear/blit code to use image_view.

This will make it much easier to deal with aspect masks, in particular for
planar formats and D32_S8.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4581>
src/freedreno/vulkan/tu_clear_blit.c
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_image.c
src/freedreno/vulkan/tu_private.h