On 07/09/17 11:43 AM, Mario Kleiner wrote: > XCreatePixmap doesn't like that. Fixes piglit regression if the > GL implementation exposes RGB10 depth 30 FBConfigs, but the X-Screen > is set to default DefaultDepth of 24 bits, and therefore does not > support depth 30 pixmaps. > > On RGB10 enabled Mesa fixes these tests on depth 24 screen: > > glx-visuals-depth -pixmap > glx-visuals-stencil -pixmap > > v2: Switch from checking against DefaultDepth of root window > to checking against XListDepths() list of supported depths, > as suggested by Michel. > > Signed-off-by: Mario Kleiner <mario.kleiner...@gmail.com>
Reviewed-by: Michel Dänzer <michel.daen...@amd.com> -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit