[PATCH] drm: add fourcc codes for 16bit R and GR

2017-01-03 Thread Eric Engestrom
; > > [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.9.3 > >> > >

[PATCH] drm: add fourcc codes for 16bit R and GR

2017-01-03 Thread Rainer Hochecker
or the fourcc seems OK to me >> since we can't fit in the full GR1616 in there. Althogh GR32 could work >> too I suppose. >> >> And what about RG16? >> >> > >> > Also, please put dri-devel on CC. >> > >> > Thanks >> > David >>

[PATCH] drm: add fourcc codes for 16bit R and GR

2017-01-02 Thread Ville Syrjälä
On Mon, Jan 02, 2017 at 01:23:23PM +0100, David Herrmann wrote: > Hi > > On Mon, Jan 2, 2017 at 11:41 AM, Rainer Hochecker > wrote: > > From: Rainer Hochecker > > > > Add fourcc codes for 16bit planes. Required by mesa for > > eglCreateImageKHR to access P010 surfaces created by vaapi. > > > >

[PATCH] drm: add fourcc codes for 16bit R and GR

2017-01-02 Thread Rainer Hochecker
I chose GR16 because that matches with Mesa texture formats. Unfortunately RG16 is already taken by DRM_FORMAT_RGB565 So GR32 / RG32 might be better. All other codes in fourcc.h seem to sum up all planes. (sorry, gmail included some html links on last attempt) On Mon, Jan 2, 2017 at 3:05 PM, Vill

[PATCH] drm: add fourcc codes for 16bit R and GR

2017-01-02 Thread Rainer Hochecker
I chose GR16 because that matches with Mesa texture formats. Unfortunately RG16 is already taken by DRM_FORMAT_RGB565 So GR32 / RG32 might be better. All other codes in fourcc.h seem to sum up all planes. On Mon, Jan 2, 2017 at 3:05 P

[PATCH] drm: add fourcc codes for 16bit R and GR

2017-01-02 Thread David Herrmann
Hi On Mon, Jan 2, 2017 at 11:41 AM, Rainer Hochecker wrote: > From: Rainer Hochecker > > Add fourcc codes for 16bit planes. Required by mesa for > eglCreateImageKHR to access P010 surfaces created by vaapi. > > Signed-off-by: Rainer Hochecker > --- > include/uapi/drm/drm_fourcc.h | 6 ++ >