egl: Fix A2RGB10 platform_{device,surfaceless} PBuffer configs.
authorMathias Fröhlich <Mathias.Froehlich@gmx.net>
Sun, 9 Feb 2020 18:01:53 +0000 (19:01 +0100)
committerMathias Fröhlich <mathias.froehlich@web.de>
Wed, 26 Feb 2020 05:53:46 +0000 (06:53 +0100)
commitd32c458de76c9e0cc08c9ee1a7de23c3fca69298
tree81b01fa5c82de527971062ffcaa2a5e10687cd2d
parent87924646db280c8f5f4b227fc610e9e557f15dda
egl: Fix A2RGB10 platform_{device,surfaceless} PBuffer configs.

The __DRI_IMAGE_FORMAT_* part wants to be handled for the *101010
type formats as well. Factor out a common function for that task.
That again makes the piglit egl_ext_device_base test work again
for hardware drivers.

v2: Factor out a common function for that task.
v3: dri2_pbuffer_visuals -> dri2_pbuffer_visuals

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Fixes: 9acb94b6236 "egl: Enable 10bpc EGLConfigs for platform_{device,surfaceless}"
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3790>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_device.c
src/egl/drivers/dri2/platform_surfaceless.c