egl/wayland: Add bpp to visual map
authorDaniel Stone <daniels@collabora.com>
Tue, 6 Feb 2018 11:58:45 +0000 (11:58 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 9 Feb 2018 16:17:16 +0000 (16:17 +0000)
commitd32b23f3830099a328b912957de881cf30a0ee7a
treed8078250e25c16b1161158e8002f34f4004995a3
parent4de98a9c07b599939143255214858c7525e814c4
egl/wayland: Add bpp to visual map

Both the DRI2 GetBuffersWithFormat interface, and SHM buffer allocation,
had their own format -> bpp lookup tables. Replace these with a lookup
into the visual map.

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