Skip to content

Commit 36faa80

Browse files
i965/formats: Add more fallback FOURCC defines
1 parent 3680746 commit 36faa80

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

src/i965_format_utils.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,27 @@ static void i965_GuessExpectedFourCC(int format, int *fourcc)
195195
#ifndef DRM_FORMAT_GR1616
196196
#define DRM_FORMAT_GR1616 fourcc_code('G', 'R', '3', '2')
197197
#endif
198+
#ifndef DRM_FORMAT_XYUV8888
199+
#define DRM_FORMAT_XYUV8888 fourcc_code('X', 'Y', 'U', 'V')
200+
#endif
201+
#ifndef DRM_FORMAT_Y210
202+
#define DRM_FORMAT_Y210 fourcc_code('Y', '2', '1', '0')
203+
#endif
204+
#ifndef DRM_FORMAT_Y216
205+
#define DRM_FORMAT_Y216 fourcc_code('Y', '2', '1', '6')
206+
#endif
207+
#ifndef DRM_FORMAT_Y410
208+
#define DRM_FORMAT_Y410 fourcc_code('Y', '4', '1', '0')
209+
#endif
210+
#ifndef DRM_FORMAT_Y416
211+
#define DRM_FORMAT_Y416 fourcc_code('Y', '4', '1', '6')
212+
#endif
213+
#ifndef DRM_FORMAT_P010
214+
#define DRM_FORMAT_P010 fourcc_code('P', '0', '1', '0')
215+
#endif
216+
#ifndef DRM_FORMAT_P016
217+
#define DRM_FORMAT_P016 fourcc_code('P', '0', '1', '6')
218+
#endif
198219

199220
static uint32_t drm_format_of_separate_plane(uint32_t fourcc, int plane)
200221
{

0 commit comments

Comments
 (0)