[Mesa-dev] [PATCH 11/19] glx: Replace DRI2WaitForSBC custom protocol with XCB.

Eric Anholt eric at anholt.net
Thu Oct 4 13:38:18 PDT 2012


Chad Versace <chad.versace at linux.intel.com> writes:

> I would have used the checked variant of the xcb call,
> xcb_dri2_wait_xbc, and then returned 1 if an error had occured. Why
> did you choose to use the unchecked variant?
>
> I'm aware that the old DRI2WaitSBC also always blindly returned
> success, but is there justification for the new code to also do that?

Preserves current behavior of passing errors through.  The spec is a
badly done port of the WGL version and specifies:

1) Returning a boolean error value for any error in the wait functions.
2) Integer error values to be returned for various cases.

Those integer error values are specified from the set returned by
glXGetConfig(), not the set of GLX errors used by everything else in
GLX.

Our conclusion was that what the spec author would have meant was that
those errors specified mean "pass these errors through, except using
actual GLX error names", and the weird bool error return from these
functions would be for whatever other sort of error might occur in
processing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121004/12f682fb/attachment.pgp>


More information about the mesa-dev mailing list