<p dir="ltr"><br>
On 9 Dec 2012 20:32, "Dave Airlie" <<a href="mailto:airlied@gmail.com">airlied@gmail.com</a>> wrote:<br>
><br>
> This ports over from the dri2 code to the drisw bits. It means 3.1<br>
> core contexts now work for softpipe.<br>
></p>
<p dir="ltr">Well if soft pipe had msaa they would but its enough to hack so I can test ubo/tbo better.</p>
<p dir="ltr">Dave.<br>
> Signed-off-by: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
> ---<br>
>  src/mesa/drivers/dri/common/drisw_util.c | 16 ++++++++++++++++<br>
>  1 file changed, 16 insertions(+)<br>
><br>
> diff --git a/src/mesa/drivers/dri/common/drisw_util.c b/src/mesa/drivers/dri/common/drisw_util.c<br>
> index 8fdb05e..cd5a39a 100644<br>
> --- a/src/mesa/drivers/dri/common/drisw_util.c<br>
> +++ b/src/mesa/drivers/dri/common/drisw_util.c<br>
> @@ -126,7 +126,10 @@ driCreateContextAttribs(__DRIscreen *screen, int api,<br>
>              mesa_api = API_OPENGLES2;<br>
>              break;<br>
>      case __DRI_API_OPENGL_CORE:<br>
> +            mesa_api = API_OPENGL_CORE;<br>
> +            break;<br>
>      default:<br>
> +            *error = __DRI_CTX_ERROR_BAD_API;<br>
>              return NULL;<br>
>      }<br>
><br>
> @@ -149,6 +152,19 @@ driCreateContextAttribs(__DRIscreen *screen, int api,<br>
>         }<br>
>      }<br>
><br>
> +    /* Mesa does not support the GL_ARB_compatibilty extension or the<br>
> +     * compatibility profile.  This means that we treat a API_OPENGL_COMPAT 3.1 as<br>
> +     * API_OPENGL_CORE and reject API_OPENGL_COMPAT 3.2+.<br>
> +     */<br>
> +    if (mesa_api == API_OPENGL_COMPAT && major_version == 3 && minor_version == 1)<br>
> +       mesa_api = API_OPENGL_CORE;<br>
> +<br>
> +    if (mesa_api == API_OPENGL_COMPAT<br>
> +        && ((major_version > 3)<br>
> +            || (major_version == 3 && minor_version >= 2))) {<br>
> +       *error = __DRI_CTX_ERROR_BAD_API;<br>
> +       return NULL;<br>
> +    }<br>
>      /* There are no forward-compatible contexts before OpenGL 3.0.  The<br>
>       * GLX_ARB_create_context spec says:<br>
>       *<br>
> --<br>
> 1.8.0.1<br>
><br>
> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</p>