[Mesa-dev] [PATCH] dri3_glx.c: Pass NULL DRI drawables into driver for None GLX drawables

Zhang, Xiong Y xiong.y.zhang at intel.com
Tue Mar 24 00:33:33 PDT 2015


> Le 24/03/2015 06:50, Zhang, Xiong Y a écrit :
> >> You seem to miss the case when one is None and not the other.
> >> It should return BadDrawable too.
> >>
> >> This particular case seems not handled by the dri2 code either, and
> >> the gallium state tracker seems to handle it in bindContext, but not
> >> the intel code for example.
> > [Zhang, Xiong Y] For this particular case, are you mean this case:
> > (draw == None && read != None) || (draw != None && read == None) If it
> > is yes, it's better to add this judgement into MakeContextCurrent() in
> src/glx/glxcurrent.c, so that both dri2_glx and dri3_glx could use it.
> >
> > thanks
> >
> Yes.
> 
> I imagine putting it into MakeContextCurrent is not a solution, since it means
> GLXBadContext will be returned instead of GLXBadDrawable.

[Zhang, Xiong Y]  Yes, I agree with you.
But it is strange that both macro GLXBadContext and Success are value 0. This means we can't identify them in bindContext().
> 
> Axel Davy


More information about the mesa-dev mailing list