egl/wayland: remove unused constant EGL_DRI2_NUM_FORMATS
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>
This commit is contained in:
parent
aa6c900625
commit
cd39180cfa
|
@ -89,8 +89,6 @@ struct zwp_linux_dmabuf_v1;
|
|||
#include "util/u_vector.h"
|
||||
#include "util/bitset.h"
|
||||
|
||||
#define EGL_DRI2_NUM_FORMATS 11
|
||||
|
||||
struct wl_buffer;
|
||||
|
||||
struct dri2_egl_display_vtbl {
|
||||
|
|
|
@ -152,11 +152,6 @@ static const struct dri2_wl_visual {
|
|||
},
|
||||
};
|
||||
|
||||
static_assert(ARRAY_SIZE(dri2_wl_visuals) == EGL_DRI2_NUM_FORMATS,
|
||||
"dri2_egl_display::formats and dri2_wl_visuals must "
|
||||
"have the same size. If you are adding a new format "
|
||||
"to dri2_wl_visuals, increment EGL_DRI2_NUM_FORMATS");
|
||||
|
||||
static int
|
||||
dri2_wl_visual_idx_from_config(struct dri2_egl_display *dri2_dpy,
|
||||
const __DRIconfig *config,
|
||||
|
|
Loading…
Reference in New Issue