diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2017-01-05 16:58:56 +0100 |
---|---|---|
committer | Ben Widawsky <ben@bwidawsk.net> | 2017-01-23 08:47:15 -0800 |
commit | 09b140abb532dede5de6b03b1cc3c03852c1c9e9 (patch) | |
tree | 8c0aa7210fba34a1a3a07581364dd8ef54df6dd0 /include | |
parent | 1338d912f52b69f76ef75d1ad313893db77d4da8 (diff) |
dri: allow 16bit R/GR images to be exported via drm buffers
This allows eglCreateImageKHR to access P010 surfaces created by vaapi
Signed-off-by: Rainer Hochecker <fernetmenta@online.de>
Acked-by: Ben Widawky <ben@bwidawsk.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/GL/internal/dri_interface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 8922356990..598d111f33 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -1164,6 +1164,8 @@ struct __DRIdri2ExtensionRec { #define __DRI_IMAGE_FORMAT_ARGB2101010 0x100a #define __DRI_IMAGE_FORMAT_SARGB8 0x100b #define __DRI_IMAGE_FORMAT_ARGB1555 0x100c +#define __DRI_IMAGE_FORMAT_R16 0x100d +#define __DRI_IMAGE_FORMAT_GR1616 0x100e #define __DRI_IMAGE_USE_SHARE 0x0001 #define __DRI_IMAGE_USE_SCANOUT 0x0002 @@ -1192,6 +1194,8 @@ struct __DRIdri2ExtensionRec { #define __DRI_IMAGE_FOURCC_R8 0x20203852 #define __DRI_IMAGE_FOURCC_GR88 0x38385247 #define __DRI_IMAGE_FOURCC_ARGB1555 0x35315241 +#define __DRI_IMAGE_FOURCC_R16 0x20363152 +#define __DRI_IMAGE_FOURCC_GR1616 0x32335247 #define __DRI_IMAGE_FOURCC_RGB565 0x36314752 #define __DRI_IMAGE_FOURCC_ARGB8888 0x34325241 #define __DRI_IMAGE_FOURCC_XRGB8888 0x34325258 |