| From c183a549ae823c24acba4773932ca234a28fff9e Mon Sep 17 00:00:00 2001 |
| From: Kevin Strasser <kevin.strasser@intel.com> |
| Date: Fri, 4 Jan 2019 12:12:48 -0800 |
| Subject: [PATCH 01/12] UPSTREAM: drm-uapi: Update headers for fp16 formats |
| MIME-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| From drm-next commit 88ab9c76d191ad8645b483f31e2b394b0f3e280e |
| |
| Signed-off-by: Kevin Strasser <kevin.strasser@intel.com> |
| Reviewed-by: Adam Jackson <ajax@redhat.com> |
| Reviewed-by: Marek Olลกรกk <marek.olsak@amd.com> |
| Reviewed-by: Emil Velikov <emil.velikov@collabora.com> |
| (cherry picked from commit d07a56dbc0b951b5ec4cdba50c69e0246cd4b133) |
| |
| Change-Id: I4c08413c45a2d02a19d87f079b9664875f16c844 |
| --- |
| include/drm-uapi/drm_fourcc.h | 11 +++++++++++ |
| 1 file changed, 11 insertions(+) |
| |
| diff --git a/include/drm-uapi/drm_fourcc.h b/include/drm-uapi/drm_fourcc.h |
| index 459c51b1bf2..c8deaf121ec 100644 |
| --- a/include/drm-uapi/drm_fourcc.h |
| +++ b/include/drm-uapi/drm_fourcc.h |
| @@ -105,6 +105,17 @@ extern "C" { |
| #define DRM_FORMAT_RGBA1010102 fourcc_code('R', 'A', '3', '0') /* [31:0] R:G:B:A 10:10:10:2 little endian */ |
| #define DRM_FORMAT_BGRA1010102 fourcc_code('B', 'A', '3', '0') /* [31:0] B:G:R:A 10:10:10:2 little endian */ |
| |
| +/* |
| + * Floating point 64bpp RGB |
| + * IEEE 754-2008 binary16 half-precision float |
| + * [15:0] sign:exponent:mantissa 1:5:10 |
| + */ |
| +#define DRM_FORMAT_XRGB16161616F fourcc_code('X', 'R', '4', 'H') /* [63:0] x:R:G:B 16:16:16:16 little endian */ |
| +#define DRM_FORMAT_XBGR16161616F fourcc_code('X', 'B', '4', 'H') /* [63:0] x:B:G:R 16:16:16:16 little endian */ |
| + |
| +#define DRM_FORMAT_ARGB16161616F fourcc_code('A', 'R', '4', 'H') /* [63:0] A:R:G:B 16:16:16:16 little endian */ |
| +#define DRM_FORMAT_ABGR16161616F fourcc_code('A', 'B', '4', 'H') /* [63:0] A:B:G:R 16:16:16:16 little endian */ |
| + |
| /* packed YCbCr */ |
| #define DRM_FORMAT_YUYV fourcc_code('Y', 'U', 'Y', 'V') /* [31:0] Cr0:Y1:Cb0:Y0 8:8:8:8 little endian */ |
| #define DRM_FORMAT_YVYU fourcc_code('Y', 'V', 'Y', 'U') /* [31:0] Cb0:Y1:Cr0:Y0 8:8:8:8 little endian */ |
| -- |
| 2.21.0 |
| |