[Mesa-dev] Mesa (master): glx: Don't destroy DRI2 drawables for legacy glx drawables

Kristian Høgsberg krh at bitplanet.net
Mon Sep 13 07:34:36 PDT 2010


2010/9/13 Michel Dänzer <michel at daenzer.net>:
> On Mon, 2010-09-13 at 05:43 -0700, Kristian HXXgsberg wrote:
>> Module: Mesa
>> Branch: master
>> Commit: 4ebf07a426771b62123e5fcb5a8be0de24037af1
>> URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4ebf07a426771b62123e5fcb5a8be0de24037af1
>>
>> Author: Kristian Høgsberg <krh at bitplanet.net>
>> Date:   Mon Sep 13 08:39:42 2010 -0400
>>
>> glx: Don't destroy DRI2 drawables for legacy glx drawables
>>
>> For GLX 1.3 drawables, we can destroy the DRI2 drawable when the GLX
>> drawable is destroyed.  However, for legacy drawables, there os no
>> good way of knowing when the application is done with it, so we just
>> let the DRI2 drawable linger on the server.  The server will destroy
>> the DRI2 drawable when it destroys the X drawable or the client exits
>> anyway.
>>
>> https://bugs.freedesktop.org/show_bug.cgi?id=30109
>
> [...]
>
>> diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
>> index 1759e57..60b999f 100644
>> --- a/src/mesa/vbo/vbo_exec_array.c
>> +++ b/src/mesa/vbo/vbo_exec_array.c
>> @@ -490,6 +490,8 @@ vbo_exec_DrawArrays(GLenum mode, GLint start, GLsizei count)
>>     if (!_mesa_validate_DrawArrays( ctx, mode, start, count ))
>>        return;
>>
>> +   vbo_exec_FlushVertices_internal( ctx, GL_FALSE );
>> +
>>     FLUSH_CURRENT( ctx, 0 );
>>
>>     if (!_mesa_valid_to_render(ctx, "glDrawArrays")) {
>
> This looks unrelated to the rest of the change.

Yes, I committed that chunk by accident.  I've just reverted it and
will send an email about that change now.

thanks,
Kristian


More information about the mesa-dev mailing list