[Mesa-dev] [PATCH 02/11] Makes DRI3 use invalidate.
Ben Skeggs
skeggsb at gmail.com
Sat Jun 21 00:31:01 PDT 2014
On Thu, Jun 19, 2014 at 1:27 PM, Axel Davy <axel.davy at ens.fr> wrote:
> This doesn't change anything to the intel DRI3 implementation,
> but enables the gallium implementation to use dri2.stamp instead
> of relying on the stamp shared with the st backend.
>
> Signed-off-by: Axel Davy <axel.davy at ens.fr>
Seems to fix the same issue as the patch in Keith's tree was fixing for me.
Reviewed-by: Ben Skeggs <bskeggs at redhat.com>
> ---
> src/glx/dri3_glx.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
> index 55eed39..b309cd4 100644
> --- a/src/glx/dri3_glx.c
> +++ b/src/glx/dri3_glx.c
> @@ -1308,9 +1308,14 @@ static const __DRIimageLoaderExtension imageLoaderExtension = {
> .flushFrontBuffer = dri3_flush_front_buffer,
> };
>
> +const __DRIuseInvalidateExtension dri3UseInvalidate = {
> + .base = { __DRI_USE_INVALIDATE, 1 }
> +};
> +
> static const __DRIextension *loader_extensions[] = {
> &imageLoaderExtension.base,
> &systemTimeExtension.base,
> + &dri3UseInvalidate.base,
> NULL
> };
>
> @@ -1384,6 +1389,8 @@ dri3_swap_buffers(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor,
> ++(*priv->stamp);
> }
>
> + (*psc->f->invalidate)(priv->driDrawable);
> +
> return ret;
> }
>
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list