panfrost: Pass the sampler view format when creating a tex descriptor
authorBoris Brezillon <boris.brezillon@collabora.com>
Sat, 7 Mar 2020 15:24:03 +0000 (16:24 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 10 Mar 2020 07:43:08 +0000 (08:43 +0100)
commita64599a303ee8ded4bd6b3cef1f720bb7c308127
treea245e7e32106c939918742096efa61b5542dab9f
parentce845f44e9e8109b9daa74bc15f98063c35bc555
panfrost: Pass the sampler view format when creating a tex descriptor

A sampler can use a different format than the native texture format.
Let's pass the sampler format instead of the native texture format when
creating a texture descriptor.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4101>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4101>
src/gallium/drivers/panfrost/pan_context.c