egl/wayland: Use visual map for DRIImage<->FourCC map
authorDaniel Stone <daniels@collabora.com>
Tue, 6 Feb 2018 11:51:17 +0000 (11:51 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 9 Feb 2018 16:17:16 +0000 (16:17 +0000)
commit4de98a9c07b599939143255214858c7525e814c4
tree932dfacddc52b827b0a149ed0e67c4564a61505a
parent68a80c11bd3b362d7782ded9c8c12ba0e9ecc933
egl/wayland: Use visual map for DRIImage<->FourCC map

When trying to translate between DRIImage format enums and FourCC codes,
use our visual map rather than an open-coded subset.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Tested-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/egl/drivers/dri2/platform_wayland.c