panfrost: Fix multiplanar YUV texture descriptor emission on v9+
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 29 Nov 2023 17:53:54 +0000 (18:53 +0100)
committerEric Engestrom <eric@engestrom.ch>
Tue, 5 Dec 2023 14:34:03 +0000 (14:34 +0000)
commitae6c9315a8803c62f59e6e1f1ec1a11ef6beabdc
treecc2708c10efcf78484b6e329849cdc7ac0179685
parentd6711f9e2d8879947d1c092511014b7755d30ea7
panfrost: Fix multiplanar YUV texture descriptor emission on v9+

Multiplanar YUV textures require two surface descriptors, and the
base address calculation should be moved inside the for loop,
otherwise we always take the base address of the first plane.

Fixes: 144f9324a374 ("panfrost: prepare v9+ to support YUV sampling")
Cc: stable
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26425>
(cherry picked from commit 93e9bfcfd512858ccace258f1436bd0485a53b84)
.pick_status.json
src/panfrost/lib/pan_texture.c