st/dri: only expose config formats that are display targets
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 31 Dec 2017 07:36:39 +0000 (02:36 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 20 Feb 2018 03:33:58 +0000 (22:33 -0500)
commitf7604d8af521f39e6d5df62981c3b9e10140cc81
tree7db8bcb3f898fdc6942ef3c4b51055ed0f9c32d7
parentebdc4c31e23ffd5ce0d1fc47dd8f76c146961e25
st/dri: only expose config formats that are display targets

In the case of NVIDIA hardware, ABGR is displayable but ARGB is not.
Only advertise the one set in the visuals list.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Daniel Stone <daniels@collabora.com>
src/gallium/state_trackers/dri/dri_screen.c