[Mesa-dev] [PATCH 1/6] dri2: Create image from texture

Sinclair Yeh sinclair.yeh at intel.com
Tue Jan 8 16:15:03 PST 2013


On Fri, Dec 14, 2012 at 03:28:13PM +0200, Abdiel Janulgue wrote:
> Add create image from texture extension.
> 
> Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
> ---
>  include/GL/internal/dri_interface.h |   12 +++++
>  src/egl/drivers/dri2/egl_dri2.c     |   83 +++++++++++++++++++++++++++++++++++
>  2 files changed, 95 insertions(+)
> 
> diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
> index 1e0f1d0..a711cbf 100644
> --- a/include/GL/internal/dri_interface.h
> +++ b/include/GL/internal/dri_interface.h
> @@ -1061,6 +1061,18 @@ struct __DRIimageExtensionRec {
>      */
>      __DRIimage *(*fromPlanar)(__DRIimage *image, int plane,
>                                void *loaderPrivate);
> +
> +    /**
> +     * Create image from texture.
> +     *
> +     * \since 5
> +     */
> +   __DRIimage *(*createImageFromTexture)(__DRIcontext *context,
> +                                         int target,
> +                                         unsigned texture,
> +                                         int level,
> +                                         int depth,
> +                                         void *loaderPrivate);
>  };

The order of "level" and "depth" is flipped when compared with actual
usage.



More information about the mesa-dev mailing list