gallium/dri2: Report correct YUYV and UYVY plane count
authorNanley Chery <nanley.g.chery@intel.com>
Sat, 25 Jul 2020 01:20:52 +0000 (18:20 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 Aug 2020 23:19:00 +0000 (23:19 +0000)
commit36bd3e986830bbf7435389cdd68e593b8b43f234
tree2f912a4e6facf0a236ac9c677a887c3f6956d65c
parent7323062a872674ca7868453f62ad883d32dab929
gallium/dri2: Report correct YUYV and UYVY plane count

Return the actual number of planes in these formats (one) instead of the
number of planes used for lowering (two).

Fixes: d5c857837aa ("gallium/dri2: Fix creation of multi-planar modifier images")
Acked-by: Anuj Phogat <anuj.phogat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6449>
src/gallium/frontends/dri/dri2.c