egl/wayland: move formats and modifiers to a separate struct
authorLeandro Ribeiro <leandro.ribeiro@collabora.com>
Mon, 28 Jun 2021 23:42:11 +0000 (20:42 -0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 26 Nov 2021 16:06:09 +0000 (16:06 +0000)
commitaa6c900625db36cc55d59364c2309ffdfa818558
tree40925847d4179d5918f8fe6074b2d4461d3b74eb
parent6c37784400f9f170c3c39b9c2e5fd58308c4872a
egl/wayland: move formats and modifiers to a separate struct

This will allow us to remove EGL_DRI2_NUM_FORMATS (as explained in
"egl/wayland: remove unused constant EGL_DRI2_NUM_FORMATS") and it will
also help to add the dma-buf feedback support. Both changes happen in
the next commits.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11248>
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_wayland.c