Re: [Mesa-dev] [PATCH] dri3: Do not get supported modifiers on pixmaps

2018-07-25 Thread Eric Anholt
Olivier Fourdan writes: > get_supported_modifiers() expects a window as drawable, passing a pixmap > will fail as the Xserver will fail to match the id to a window. > > That leads to dri3_alloc_render_buffer() to return NULL and breaks > rendering when using GLX_DOUBLEBUFFER. > > Check if

[Mesa-dev] [PATCH] dri3: Do not get supported modifiers on pixmaps

2018-07-25 Thread Olivier Fourdan
get_supported_modifiers() expects a window as drawable, passing a pixmap will fail as the Xserver will fail to match the id to a window. That leads to dri3_alloc_render_buffer() to return NULL and breaks rendering when using GLX_DOUBLEBUFFER. Check if dealing with pixmap in