From e51a75c7b3e7c9c9431672cf556986c5a1df9690 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 4 Feb 2021 17:07:16 +0200 Subject: [PATCH] gl-renderer: drop R8 and GR88 definitions These were introduced in libdrm 2.4.68, commit 268ae7cae5afd76462c3ef14ed9021a2d40c2e57. Weston unconditionally requires libdrm >= 2.4.95, so these fallback definitions are unnecessary now. Signed-off-by: Pekka Paalanen --- libweston/renderer-gl/gl-renderer.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c index dfd64a02..364f87b8 100644 --- a/libweston/renderer-gl/gl-renderer.c +++ b/libweston/renderer-gl/gl-renderer.c @@ -2307,14 +2307,6 @@ import_simple_dmabuf(struct gl_renderer *gr, * some of the definitions here so that building Weston won't require * bleeding-edge kernel headers. */ -#ifndef DRM_FORMAT_R8 -#define DRM_FORMAT_R8 fourcc_code('R', '8', ' ', ' ') /* [7:0] R */ -#endif - -#ifndef DRM_FORMAT_GR88 -#define DRM_FORMAT_GR88 fourcc_code('G', 'R', '8', '8') /* [15:0] G:R 8:8 little endian */ -#endif - #ifndef DRM_FORMAT_XYUV8888 #define DRM_FORMAT_XYUV8888 fourcc_code('X', 'Y', 'U', 'V') /* [31:0] X:Y:Cb:Cr 8:8:8:8 little endian */ #endif