Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
INTERNAL: Fix Compile issue by using DRM_FORMAT_*
Browse files Browse the repository at this point in the history
On newer mesa, we won't definine our own copy. This changes
help to fix the compile issue caused by commit 272f9cf.

Signed-off-by: Chenglei Ren <[email protected]>
  • Loading branch information
renchenglei committed Feb 11, 2020
1 parent 3ee6643 commit 2faef48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/egl/drivers/dri2/platform_android.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ enum {
static const struct droid_yuv_format droid_yuv_formats[] = {
/* Native format, YCrCb, Chroma step, DRI image FourCC */
{ HAL_PIXEL_FORMAT_YCbCr_420_888, YCbCr, 2, DRM_FORMAT_NV12 },
{ HAL_PIXEL_FORMAT_P010_INTEL, YCbCr, 4, __DRI_IMAGE_FOURCC_P010 },
{ HAL_PIXEL_FORMAT_P010_INTEL, YCbCr, 4, DRM_FORMAT_P010 },
{ HAL_PIXEL_FORMAT_YCbCr_420_888, YCbCr, 1, DRM_FORMAT_YUV420 },
{ HAL_PIXEL_FORMAT_YCbCr_420_888, YCrCb, 1, DRM_FORMAT_YVU420 },
{ HAL_PIXEL_FORMAT_YV12, YCrCb, 1, DRM_FORMAT_YVU420 },
{ HAL_PIXEL_FORMAT_NV12, YCbCr, 2, __DRI_IMAGE_FOURCC_NV12 },
{ HAL_PIXEL_FORMAT_NV12_Y_TILED_INTEL, YCbCr, 2, __DRI_IMAGE_FOURCC_NV12 },
{ HAL_PIXEL_FORMAT_NV12, YCbCr, 2, DRM_FORMAT_NV12 },
{ HAL_PIXEL_FORMAT_NV12_Y_TILED_INTEL, YCbCr, 2, DRM_FORMAT_NV12 },
/* HACK: See droid_create_image_from_prime_fds() and
* https://issuetracker.google.com/32077885. */
{ HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED, YCbCr, 2, DRM_FORMAT_NV12 },
Expand Down

0 comments on commit 2faef48

Please sign in to comment.