On Fri, Dec 14, 2012 at 03:28:13PM +0200, Abdiel Janulgue wrote:
> Add create image from texture extension.
> 
> Signed-off-by: Abdiel Janulgue <[email protected]>
> ---
>  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.

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to