[Mesa-dev] [PATCH 04/38] drivers/dri: set the implemented version of __DRItexBufferExtension

Ilia Mirkin imirkin at alum.mit.edu
Wed Feb 12 19:03:09 PST 2014


On Wed, Feb 12, 2014 at 9:56 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 13/02/14 02:47, Emil Velikov wrote:
>> On 13/02/14 02:34, Ilia Mirkin wrote:
>>> On Wed, Feb 12, 2014 at 8:17 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>>>> ... over the version number provided by the headers.
>>>> Explicitly set extension members to improve clarity.
>>>
>>> So... the current value is 2, but I see code that does
>>>
>>> src/egl/drivers/dri2/egl_dri2.c:#if __DRI_TEX_BUFFER_VERSION >= 3
>>> src/glx/dri2_glx.c:#if __DRI_TEX_BUFFER_VERSION >= 3
>>> src/glx/drisw_glx.c:#if __DRI_TEX_BUFFER_VERSION >= 3
>>>
>>> What's that all about?
>>>
>> Chaos wrt documentation and keeping up with it.
>>
>> Until git log churns this is the only reasonable thing that I can think of:
>>
>>  - releaseTexBuffer was added with version 3 in mind.
>>  - no driver implemented the function
>>  - the version was never bumped or reverted.
>>
> Looks like cvs (or whatever was used back in 2009) failure :\
>
> Eric introduced v2 with commit 66175aac760, bumping the version 1>2
> Ian made an update with commit 82634ee8df7, bumping the version 1>2

Meh, that's a merge-fail from a long time ago.

>
> I'll update the header but I'll keep version 2 everywhere (dropping the
> null member).

releaseTexBuffer was actually introduced with e59fa4c46c8 ("dri2:
release texture image."), which also added 2 of the #if's. I'm
guessing the third got copy/pasted in.

  -ilia


More information about the mesa-dev mailing list