* [PATCH] drm/fourcc: Add formats R8, RG88, GR88
@ 2015-07-09 8:38 Chad Versace
2015-07-09 13:08 ` Pekka Paalanen
0 siblings, 1 reply; 3+ messages in thread
From: Chad Versace @ 2015-07-09 8:38 UTC (permalink / raw)
To: dri-devel; +Cc: Peter Frühberger, Rainer Hochecker, Benjamin Widawsky
The Kodi/XBMC developers want to transcode NV12 to RGB with OpenGL
shaders, importing the two source planes through
EGL_EXT_image_dma_buf_import. That requires importing the Y plane as an
R8 EGLImage and the UV plane as either an RG88 or GR88 EGLImage.
CC: Peter Frühberger <peter.fruehberger@gmail.com>
Cc: Rainer Hochecker <rainer.hochecker@onlinehome.de>
Cc: Benjamin Widawsky <benjamin.widawsky@intel.com>
Signed-off-by: Chad Versace <chad.versace@intel.com>
---
I recently sent a patch series to mesa-dev that uses these new formats:
Subject: [PATCH 0/2] egl,i965: Support importing R8 and GR88 dma_bufs as textures
Date: Thu, 9 Jul 2015 01:17:41 -0700
include/uapi/drm/drm_fourcc.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h
index 2f295cd..8c5e8b9 100644
--- a/include/uapi/drm/drm_fourcc.h
+++ b/include/uapi/drm/drm_fourcc.h
@@ -34,6 +34,13 @@
/* color index */
#define DRM_FORMAT_C8 fourcc_code('C', '8', ' ', ' ') /* [7:0] C */
+/* 8 bpp Red */
+#define DRM_FORMAT_R8 fourcc_code('R', '8', ' ', ' ') /* [7:0] R */
+
+/* 16 bpp RG */
+#define DRM_FORMAT_RG88 fourcc_code('R', 'G', '8', '8') /* [15:0] R:G 8:8 little endian */
+#define DRM_FORMAT_GR88 fourcc_code('G', 'R', '8', '8') /* [15:0] G:R 8:8 little endian */
+
/* 8 bpp RGB */
#define DRM_FORMAT_RGB332 fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */
#define DRM_FORMAT_BGR233 fourcc_code('B', 'G', 'R', '8') /* [7:0] B:G:R 2:3:3 */
--
2.5.0.rc1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] drm/fourcc: Add formats R8, RG88, GR88
2015-07-09 8:38 [PATCH] drm/fourcc: Add formats R8, RG88, GR88 Chad Versace
@ 2015-07-09 13:08 ` Pekka Paalanen
2015-07-09 13:13 ` Daniel Vetter
0 siblings, 1 reply; 3+ messages in thread
From: Pekka Paalanen @ 2015-07-09 13:08 UTC (permalink / raw)
To: Chad Versace
Cc: Peter Frühberger, Rainer Hochecker, dri-devel,
Benjamin Widawsky
On Thu, 9 Jul 2015 01:38:42 -0700
Chad Versace <chad.versace@intel.com> wrote:
> The Kodi/XBMC developers want to transcode NV12 to RGB with OpenGL
> shaders, importing the two source planes through
> EGL_EXT_image_dma_buf_import. That requires importing the Y plane as an
> R8 EGLImage and the UV plane as either an RG88 or GR88 EGLImage.
>
> CC: Peter Frühberger <peter.fruehberger@gmail.com>
> Cc: Rainer Hochecker <rainer.hochecker@onlinehome.de>
> Cc: Benjamin Widawsky <benjamin.widawsky@intel.com>
> Signed-off-by: Chad Versace <chad.versace@intel.com>
> ---
>
> I recently sent a patch series to mesa-dev that uses these new formats:
> Subject: [PATCH 0/2] egl,i965: Support importing R8 and GR88 dma_bufs as textures
> Date: Thu, 9 Jul 2015 01:17:41 -0700
>
>
> include/uapi/drm/drm_fourcc.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h
> index 2f295cd..8c5e8b9 100644
> --- a/include/uapi/drm/drm_fourcc.h
> +++ b/include/uapi/drm/drm_fourcc.h
> @@ -34,6 +34,13 @@
> /* color index */
> #define DRM_FORMAT_C8 fourcc_code('C', '8', ' ', ' ') /* [7:0] C */
>
> +/* 8 bpp Red */
> +#define DRM_FORMAT_R8 fourcc_code('R', '8', ' ', ' ') /* [7:0] R */
> +
> +/* 16 bpp RG */
> +#define DRM_FORMAT_RG88 fourcc_code('R', 'G', '8', '8') /* [15:0] R:G 8:8 little endian */
> +#define DRM_FORMAT_GR88 fourcc_code('G', 'R', '8', '8') /* [15:0] G:R 8:8 little endian */
> +
> /* 8 bpp RGB */
> #define DRM_FORMAT_RGB332 fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */
> #define DRM_FORMAT_BGR233 fourcc_code('B', 'G', 'R', '8') /* [7:0] B:G:R 2:3:3 */
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Thanks,
pq
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] drm/fourcc: Add formats R8, RG88, GR88
2015-07-09 13:08 ` Pekka Paalanen
@ 2015-07-09 13:13 ` Daniel Vetter
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2015-07-09 13:13 UTC (permalink / raw)
To: Pekka Paalanen
Cc: Peter Frühberger, Rainer Hochecker, dri-devel,
Benjamin Widawsky
On Thu, Jul 09, 2015 at 04:08:08PM +0300, Pekka Paalanen wrote:
> On Thu, 9 Jul 2015 01:38:42 -0700
> Chad Versace <chad.versace@intel.com> wrote:
>
> > The Kodi/XBMC developers want to transcode NV12 to RGB with OpenGL
> > shaders, importing the two source planes through
> > EGL_EXT_image_dma_buf_import. That requires importing the Y plane as an
> > R8 EGLImage and the UV plane as either an RG88 or GR88 EGLImage.
> >
> > CC: Peter Frühberger <peter.fruehberger@gmail.com>
> > Cc: Rainer Hochecker <rainer.hochecker@onlinehome.de>
> > Cc: Benjamin Widawsky <benjamin.widawsky@intel.com>
> > Signed-off-by: Chad Versace <chad.versace@intel.com>
> > ---
> >
> > I recently sent a patch series to mesa-dev that uses these new formats:
> > Subject: [PATCH 0/2] egl,i965: Support importing R8 and GR88 dma_bufs as textures
> > Date: Thu, 9 Jul 2015 01:17:41 -0700
> >
> >
> > include/uapi/drm/drm_fourcc.h | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h
> > index 2f295cd..8c5e8b9 100644
> > --- a/include/uapi/drm/drm_fourcc.h
> > +++ b/include/uapi/drm/drm_fourcc.h
> > @@ -34,6 +34,13 @@
> > /* color index */
> > #define DRM_FORMAT_C8 fourcc_code('C', '8', ' ', ' ') /* [7:0] C */
> >
> > +/* 8 bpp Red */
> > +#define DRM_FORMAT_R8 fourcc_code('R', '8', ' ', ' ') /* [7:0] R */
> > +
> > +/* 16 bpp RG */
> > +#define DRM_FORMAT_RG88 fourcc_code('R', 'G', '8', '8') /* [15:0] R:G 8:8 little endian */
> > +#define DRM_FORMAT_GR88 fourcc_code('G', 'R', '8', '8') /* [15:0] G:R 8:8 little endian */
> > +
> > /* 8 bpp RGB */
> > #define DRM_FORMAT_RGB332 fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */
> > #define DRM_FORMAT_BGR233 fourcc_code('B', 'G', 'R', '8') /* [7:0] B:G:R 2:3:3 */
>
> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Applied to topic/drm-misc, thanks.
-Daniel
>
>
> Thanks,
> pq
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-09 13:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-09 8:38 [PATCH] drm/fourcc: Add formats R8, RG88, GR88 Chad Versace
2015-07-09 13:08 ` Pekka Paalanen
2015-07-09 13:13 ` Daniel Vetter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.