gallium: check all planes' pipe formats in case of multi-samplers
authorDongwon Kim <dongwon.kim@intel.com>
Wed, 15 Jan 2020 04:01:41 +0000 (20:01 -0800)
committerDongwon Kim <downor@gmail.com>
Tue, 21 Jan 2020 23:04:33 +0000 (23:04 +0000)
commit9d964da19fb596dad68c9402c115d6c5784989ee
treeb6f6b0cf40d8a9c89db8f36df3047d03dcc5746a
parentd3a0d3a80b3d0c6975a43075a8f1ee10b55bafaa
gallium: check all planes' pipe formats in case of multi-samplers

Current code only checks whether first plane's format is supported
in case YUV format sampling is done by sampling each plane separately.
It would be safer to check other planes' as well.

Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2863>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2863>
src/gallium/state_trackers/dri/dri2.c