<div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:verdana;font-size:12px">I chose GR16 because that matches with Mesa texture formats. Unfortunately</span><br></div><span style="color:rgb(0,0,0);font-family:verdana;font-size:12px">RG16 is already taken by DRM_FORMAT_RGB565</span><br style="color:rgb(0,0,0);font-family:verdana;font-size:12px"><span style="color:rgb(0,0,0);font-family:verdana;font-size:12px">So GR32 / RG32 might be better. All other codes in fourcc.h seem to sum up</span><br style="color:rgb(0,0,0);font-family:verdana;font-size:12px"><span style="color:rgb(0,0,0);font-family:verdana;font-size:12px">all planes.</span><br><div><span style="color:rgb(0,0,0);font-family:verdana;font-size:12px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:verdana;font-size:12px">(sorry, gmail included some html links on last attempt)</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 2, 2017 at 3:05 PM, Ville Syrjälä <span dir="ltr"><<a href="mailto:ville.syrjala@linux.intel.com" target="_blank">ville.syrjala@linux.intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, Jan 02, 2017 at 01:23:23PM +0100, David Herrmann wrote:<br>
> Hi<br>
><br>
> On Mon, Jan 2, 2017 at 11:41 AM, Rainer Hochecker <<a href="mailto:fernetmenta@kodi.tv">fernetmenta@kodi.tv</a>> wrote:<br>
> > From: Rainer Hochecker <<a href="mailto:fernetmenta@online.de">fernetmenta@online.de</a>><br>
> ><br>
> > Add fourcc codes for 16bit planes. Required by mesa for<br>
> > eglCreateImageKHR to access P010 surfaces created by vaapi.<br>
> ><br>
> > Signed-off-by: Rainer Hochecker <<a href="mailto:fernetmenta@online.de">fernetmenta@online.de</a>><br>
> > ---<br>
> > include/uapi/drm/drm_fourcc.h | 6 ++++++<br>
> > 1 file changed, 6 insertions(+)<br>
> ><br>
> > diff --git a/include/uapi/drm/drm_fourcc.<wbr>h b/include/uapi/drm/drm_fourcc.<wbr>h<br>
> > index a5890bf..e6ab638 100644<br>
> > --- a/include/uapi/drm/drm_fourcc.<wbr>h<br>
> > +++ b/include/uapi/drm/drm_fourcc.<wbr>h<br>
> > @@ -41,10 +41,16 @@ extern "C" {<br>
> > /* 8 bpp Red */<br>
> > #define DRM_FORMAT_R8 fourcc_code('R', '8', ' ', ' ') /* [7:0] R */<br>
> ><br>
> > +/* 16 bpp Red */<br>
> > +#define DRM_FORMAT_R16 fourcc_code('R', '1', '6', ' ') /* [15:0] R */<br>
> > +<br>
> > /* 16 bpp RG */<br>
> > #define DRM_FORMAT_RG88 fourcc_code('R', 'G', '8', '8') /* [15:0] R:G 8:8 little endian */<br>
> > #define DRM_FORMAT_GR88 fourcc_code('G', 'R', '8', '8') /* [15:0] G:R 8:8 little endian */<br>
> ><br>
> > +/* 32 bpp GR */<br>
> > +#define DRM_FORMAT_GR16 fourcc_code('G', 'R', '1', '6') /* [31:0] G:R 16:16 little endian */<br>
> > +<br>
><br>
> Shouldn't it be 'G', 'R', '3', '2'?<br>
<br>
</div></div>The name should be _GR1616. Using GR16 for the fourcc seems OK to me<br>
since we can't fit in the full GR1616 in there. Althogh GR32 could work<br>
too I suppose.<br>
<br>
And what about RG16?<br>
<span class=""><br>
><br>
> Also, please put dri-devel on CC.<br>
><br>
> Thanks<br>
> David<br>
><br>
> > /* 8 bpp RGB */<br>
> > #define DRM_FORMAT_RGB332 fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */<br>
> > #define DRM_FORMAT_BGR233 fourcc_code('B', 'G', 'R', '8') /* [7:0] B:G:R 2:3:3 */<br>
> > --<br>
> > 2.9.3<br>
> ><br>
</span>> ______________________________<wbr>_________________<br>
> dri-devel mailing list<br>
> <a href="mailto:dri-devel@lists.freedesktop.org">dri-devel@lists.freedesktop.<wbr>org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/dri-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/dri-devel</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Ville Syrjälä<br>
Intel OTC<br>
</font></span></blockquote></div><br></div>