zink: handle modifier nplanes queries correctly for planar formats
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 17 Jan 2023 19:45:48 +0000 (14:45 -0500)
committerEric Engestrom <eric@engestrom.ch>
Thu, 26 Jan 2023 15:40:32 +0000 (15:40 +0000)
commit9fa0dd2f65fc4cfe9e57e291e701f1f8ebb52ccf
treed1875ebd8e338cf5c82200a70be7eaf177f6cd4e
parent9f0fd0562fa22d9172e7cb24961deec177d080a0
zink: handle modifier nplanes queries correctly for planar formats

this just returns the number of planes in the base format as a default, which
matches the behavior of other drivers

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20753>
(cherry picked from commit 6ff334e54a2d3455a9c532b146b2fb77a757af02)
.pick_status.json
src/gallium/drivers/zink/zink_screen.c