[Mesa-dev] [PATCH] Update __DRI_TEX_BUFFER_VERSION to 3

Zhao, Juan J juan.j.zhao at intel.com
Tue Jul 19 23:18:53 PDT 2011


:)
Glad to see that you open this functionality.
With this, you not only need to update this macro, but also need to add the NULL point for releaseTexBuffer to related driver.
You can update your patch refer to " http://build.meego.com/package/view_file?file=update-__DRI_TEX_BUFFER_VERSION-to-3.patch&package=mesa&project=Trunk&srcmd5=12a2b599fa44ae289df0efeef6e308db" in meego.

> -----Original Message-----
> From: Zhenyu Wang [mailto:zhenyuw at linux.intel.com]
> Sent: Wednesday, July 20, 2011 2:05 PM
> To: mesa-dev at lists.freedesktop.org
> Cc: Zhao, Juan J; krh at bitplanet.net
> Subject: [PATCH] Update __DRI_TEX_BUFFER_VERSION to 3
> 
> When new releaseTexBuffer function got added, the
> __DRI_TEX_BUFFER_VERSION
> didn't update as well, which just not enable new function at all.
> This bumps version to 3.
> ---
>  include/GL/internal/dri_interface.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/GL/internal/dri_interface.h
> b/include/GL/internal/dri_interface.h
> index 4fe9e94..22f4ce7 100644
> --- a/include/GL/internal/dri_interface.h
> +++ b/include/GL/internal/dri_interface.h
> @@ -226,7 +226,7 @@ struct __DRItexOffsetExtensionRec {
>  #define __DRI_TEXTURE_FORMAT_RGBA        0x20DA
> 
>  #define __DRI_TEX_BUFFER "DRI_TexBuffer"
> -#define __DRI_TEX_BUFFER_VERSION 2
> +#define __DRI_TEX_BUFFER_VERSION 3
>  struct __DRItexBufferExtensionRec {
>      __DRIextension base;
> 
> --
> 1.7.5.4



More information about the mesa-dev mailing list