[Mesa-dev] [Bug 62612] dispatch_sanity test lumps GL4.0+ functions into 4.3

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 22 11:54:34 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=62612

--- Comment #1 from Ian Romanick <idr at freedesktop.org> ---
(In reply to comment #0)
> I noticed:
> 
>    { "glDrawTransformFeedback", 43, -1 },
>    { "glDrawTransformFeedbackStream", 43, -1 },
> 
> which are from ARB_transform_feedback2 and 3 respectively are in GL 4.0 but
> the test says they must exist by 4.3.

I believe that Jordan did that because Mesa already supports those extensions
via the extensions.  Any driver that supports OpenGL 4.0 will populate those
dispatch pointers.

> I started to fix this, but then noticed that we don't have lists for 4.0,
> 4.1, or 4.2, so the problem is probably much larger than just these two
> extensions.
> 
> Maybe we should strip out all of the lines that say "Add to xml" and fix up
> the others.
> 
> I also notice
> 
>    /* GL_ARB_internalformat_query */
>    { "glGetInternalformativ", 30, -1 },
> 
> but ARB_internalformat_query is part of 4.2 and not a required part of 3.0.
> I think there's some general confusion about what the version field is
> supposed to mean.

However, every driver supports the extension, so the function is in the
dispatch table.

> IIRC, this is why Ian suggested having separate structs for each version,
> like how GL ES 2 and 3 are handled.

I'm not a huge fan of the version field in the dispatch sanity tests. :)  But I
don't think that will solve this particular problem.

I think when we add the next big batch of functions (probably for
ARB_geometry_shader4), we should refactor this test a bit.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130322/06cced71/attachment.html>


More information about the mesa-dev mailing list