Re: [PATCH xserver] glx: Fix attribute handling for GLX_TEXTURE_FORMAT_EXT

2018-05-01 Thread Eric Anholt
Adam Jackson writes: > On Mon, 2018-04-02 at 14:52 -0400, Adam Jackson wrote: > >> @@ -1737,6 +1740,9 @@ __glXDisp_BindTexImageEXT(__GLXclientState * cl, >> GLbyte * pc) >>DixReadAccess, , )) >> return error; >> >> +if (pGlxDraw->format

Re: [PATCH xserver] glx: Fix attribute handling for GLX_TEXTURE_FORMAT_EXT

2018-04-02 Thread Adam Jackson
On Mon, 2018-04-02 at 14:52 -0400, Adam Jackson wrote: > @@ -1737,6 +1740,9 @@ __glXDisp_BindTexImageEXT(__GLXclientState * cl, GLbyte > * pc) >DixReadAccess, , )) > return error; > > +if (pGlxDraw->format == GLX_TEXTURE_FORMAT_NONE_EXT) > +

[PATCH xserver] glx: Fix attribute handling for GLX_TEXTURE_FORMAT_EXT

2018-04-02 Thread Adam Jackson
Initialize it correctly to GLX_TEXTURE_FORMAT_NONE_EXT, and report it in GLXGetDrawableAttributes. Note that it and TEXTURE_TARGET are only meaningful attributes for GLXPixmaps. Signed-off-by: Adam Jackson --- glx/glxcmds.c | 17 + 1 file changed, 13