[Mesa-dev] [PATCH 3/3] glx/dri2: Add support for GLX_ARB_create_context_robustness

Eric Anholt eric at anholt.net
Tue Jul 3 15:48:47 PDT 2012


Ian Romanick <idr at freedesktop.org> writes:

> From: Ian Romanick <ian.d.romanick at intel.com>
>
> Add the infrastructure required for this extension.  There is no
> xserver support and no driver support yet.  Drivers can enable this be
> advertising DRI2 version 4 and accepting the
> __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS flag and the
> __DRI_CTX_ATTRIB_RESET_STRATEGY attribute in create context.
>
> Some additional Mesa infrastructure is needed before drivers can do
> this.  The GL_ARB_robustness spec, which all Mesa drivers already
> advertise, requires:
>
>     "If the behavior is LOSE_CONTEXT_ON_RESET_ARB, a graphics reset
>     will result in the loss of all context state, requiring the
>     recreation of all associated objects."
>
> It is necessary to land this infrastructure now so that the related
> infrastructure can land in the xserver.  The xserver has very long
> release schedules, and the remaining Mesa parts should land long, long
> before the next xserver merge window opens.
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>


> +   if (psc->dri2->base.version >= 4)
> +      __glXEnableDirectExtension(&psc->base,
> +                                 "GLX_ARB_create_context_robustness");

Shouldn't this be handled by exposing a loader extension that a driver
can optionally implement?  Otherwise, for DRI2-next-feature, the driver
also has to ipmlement GLX_create_context_robustness, which might be
hard.
-------------- 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/20120703/17be8875/attachment.pgp>


More information about the mesa-dev mailing list