diff options
author | marha <marha@users.sourceforge.net> | 2013-02-07 10:47:19 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-02-07 10:47:19 +0100 |
commit | 49efd6bbf4c48770aea3654db1e7e90f4aa0dd06 (patch) | |
tree | b969b87ae9619dd96e929d7d79b4ac111866e61d /gl | |
parent | cbcf519f983c24f5d315b4abc194e5d147dc0ab7 (diff) | |
download | vcxsrv-49efd6bbf4c48770aea3654db1e7e90f4aa0dd06.tar.gz vcxsrv-49efd6bbf4c48770aea3654db1e7e90f4aa0dd06.tar.bz2 vcxsrv-49efd6bbf4c48770aea3654db1e7e90f4aa0dd06.zip |
Synchronised file
Diffstat (limited to 'gl')
-rw-r--r-- | gl/internal/dri_interface.h | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/gl/internal/dri_interface.h b/gl/internal/dri_interface.h index c09d75cda..657ec9f5b 100644 --- a/gl/internal/dri_interface.h +++ b/gl/internal/dri_interface.h @@ -942,7 +942,7 @@ struct __DRIdri2ExtensionRec { * extensions. */ #define __DRI_IMAGE "DRI_IMAGE" -#define __DRI_IMAGE_VERSION 5 +#define __DRI_IMAGE_VERSION 6 /** * These formats correspond to the similarly named MESA_FORMAT_* @@ -1026,6 +1026,23 @@ struct __DRIdri2ExtensionRec { #define __DRI_IMAGE_ATTRIB_HEIGHT 0x2005 #define __DRI_IMAGE_ATTRIB_COMPONENTS 0x2006 /* available in versions 5+ */ +/** + * \name Reasons that __DRIimageExtensionRec::createImageFromTexture might fail + */ +/*@{*/ +/** Success! */ +#define __DRI_IMAGE_ERROR_SUCCESS 0 + +/** Memory allocation failure */ +#define __DRI_IMAGE_ERROR_BAD_ALLOC 1 + +/** Client requested an invalid attribute for a texture object */ +#define __DRI_IMAGE_ERROR_BAD_MATCH 2 + +/** Client requested an invalid texture object */ +#define __DRI_IMAGE_ERROR_BAD_PARAMETER 3 +/*@}*/ + typedef struct __DRIimageRec __DRIimage; typedef struct __DRIimageExtensionRec __DRIimageExtension; struct __DRIimageExtensionRec { @@ -1091,6 +1108,19 @@ struct __DRIimageExtensionRec { */ __DRIimage *(*fromPlanar)(__DRIimage *image, int plane, void *loaderPrivate); + + /** + * Create image from texture. + * + * \since 6 + */ + __DRIimage *(*createImageFromTexture)(__DRIcontext *context, + int target, + unsigned texture, + int depth, + int level, + unsigned *error, + void *loaderPrivate); }; |