From 6d48779c7e5c9002d1bec4b1266ca05a474218ef Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Thu, 14 Feb 2008 22:12:51 -0500 Subject: Add TTM buffer object based texture from pixmap implementation. Currently only implemented for intel hw. --- include/GL/internal/dri_interface.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include/GL/internal/dri_interface.h') diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 50f1d1a765c..b83aff18f97 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -64,6 +64,7 @@ typedef struct __DRIallocateExtensionRec __DRIallocateExtension; typedef struct __DRIframeTrackingExtensionRec __DRIframeTrackingExtension; typedef struct __DRImediaStreamCounterExtensionRec __DRImediaStreamCounterExtension; typedef struct __DRItexOffsetExtensionRec __DRItexOffsetExtension; +typedef struct __DRItexBufferExtensionRec __DRItexBufferExtension; /*@}*/ @@ -221,6 +222,25 @@ struct __DRItexOffsetExtensionRec { }; +#define __DRI_TEX_BUFFER "DRI_TexBuffer" +#define __DRI_TEX_BUFFER_VERSION 1 +struct __DRItexBufferExtensionRec { + __DRIextension base; + + /** + * Method to override base texture image with a DRM memory manager + * buffer object. The depth passed in allows e.g. to ignore the + * alpha channel of texture images where the non-alpha components + * don't occupy a whole texel. + * + * For GLX_EXT_texture_from_pixmap with AIGLX. + */ + void (*setTexBuffer)(__DRIcontext *pDRICtx, + GLint target, unsigned long handle, + GLint cpp, GLuint pitch, GLuint height); +}; + + /** * Macros for building symbol and strings. Standard CPP two step... */ -- cgit v1.2.3