panfrost: Use util_pipe_image_to_sampler_view
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 25 May 2023 21:05:51 +0000 (17:05 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 1 Jun 2023 02:36:05 +0000 (02:36 +0000)
commit5293a99ad147944a03f17d25422ed1a47f340dd6
treea764fc43880428b394f5dc3d367f354a9b59c51f
parent07e477bb3954da8b6f71264001a0094ac2ac237b
panfrost: Use util_pipe_image_to_sampler_view

The common helper is based on what we had locally, with some more cases handled.
Let's use it instead of vendoring.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23273>
src/gallium/drivers/panfrost/pan_cmdstream.c