panfrost: Pass an image view to panfrost_new_texture()
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 26 Mar 2021 15:24:47 +0000 (16:24 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Apr 2021 18:06:37 +0000 (18:06 +0000)
commitf5d7c419e783fce3a437045e49b1b4d6e2e0fef4
tree49a238ddde83dd43b875811cf023fc6d5192bfb7
parent9d0ad7fd2e1c56a1771e253086a5d4862d54e358
panfrost: Pass an image view to panfrost_new_texture()

pan_image_view contains everything we need to emit a texture
descriptor. Pass this object instead of the dozen of arguments
we have now.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10033>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_job.c
src/panfrost/lib/pan_blit.c
src/panfrost/lib/pan_texture.c
src/panfrost/lib/pan_texture.h