Mesa (main): egl/dri2: Rely on drm-uapi for DRM_FORMAT defines

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri May 21 02:07:15 UTC 2021


Module: Mesa
Branch: main
Commit: 5e1503f243353cbf84f51e353a2c887339497433
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e1503f243353cbf84f51e353a2c887339497433

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Wed Mar 10 20:46:50 2021 -0800

egl/dri2: Rely on drm-uapi for DRM_FORMAT defines

All of these formats, and ones that will be added later in this series,
are in the copy of drm_fourcc.h in drm-uapi.

Suggested-by: Nanley Chery <nanley.g.chery at intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>
Reviewed-by: Emma Anholt <emma at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9610>

---

 src/egl/drivers/dri2/egl_dri2.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 0e48b965656..053fef7de56 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -69,20 +69,6 @@
 #include "util/bitscan.h"
 #include "util/u_math.h"
 
-/* Additional definitions not yet in the drm_fourcc.h.
- */
-#ifndef DRM_FORMAT_P010
-#define DRM_FORMAT_P010 	 fourcc_code('P', '0', '1', '0') /* 2x2 subsampled Cb:Cr plane 10 bits per channel */
-#endif
-
-#ifndef DRM_FORMAT_P012
-#define DRM_FORMAT_P012 	 fourcc_code('P', '0', '1', '2') /* 2x2 subsampled Cb:Cr plane 12 bits per channel */
-#endif
-
-#ifndef DRM_FORMAT_P016
-#define DRM_FORMAT_P016 	 fourcc_code('P', '0', '1', '6') /* 2x2 subsampled Cb:Cr plane 16 bits per channel */
-#endif
-
 #define NUM_ATTRIBS 12
 
 static const struct dri2_pbuffer_visual {



More information about the mesa-commit mailing list