Re: [Mesa-dev] [PATCH] egl/x11: Handle both depth 30 formats for eglCreateImage(). (v2)

2018-04-11 Thread Emil Velikov
Hi Mario, Just a small suggestion: be that for now or later - your call. On 10 April 2018 at 08:43, Mario Kleiner wrote: > -dri3_format_for_depth(uint32_t depth) > +dri3_format_for_depth(struct dri2_egl_display *dri2_dpy, uint32_t depth) There is nothing DRI3

[Mesa-dev] [PATCH] egl/x11: Handle both depth 30 formats for eglCreateImage(). (v2)

2018-04-10 Thread Mario Kleiner
We need to distinguish if the backing storage of a pixmap is XRGB2101010 or XBGR2101010, as different gpu hw supports different formats. NVidia hw prefers XBGR, whereas AMD and Intel are happy with XRGB. Use the red channel mask of the first depth 30 visual of the x-screen to distinguish which hw