egl/dri2: Rely on drm-uapi for DRM_FORMAT defines
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 11 Mar 2021 04:46:50 +0000 (20:46 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 21 May 2021 01:40:22 +0000 (01:40 +0000)
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@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9610>

src/egl/drivers/dri2/egl_dri2.c

index 0e48b96..053fef7 100644 (file)
 #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 {