lavapipe: handle planes in get image sub resource
authorDave Airlie <airlied@redhat.com>
Fri, 6 Oct 2023 06:07:38 +0000 (16:07 +1000)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 Oct 2023 04:37:07 +0000 (04:37 +0000)
commitcfdad158a1f1fb411a6113be737046c435d7b6a8
tree66fcd10e3ce9bc6a04e078223242a133c3f15b95
parent64cf0d47b00183a8fecc8ccf9618d9483bdd106d
lavapipe: handle planes in get image sub resource

image sub resources need to take planes into account in the calculations.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25609>
src/gallium/frontends/lavapipe/lvp_image.c