summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-02-14 22:12:51 -0500
committerKristian Høgsberg <krh@redhat.com>2008-02-14 22:12:51 -0500
commit6d48779c7e5c9002d1bec4b1266ca05a474218ef (patch)
tree11e77add8301b85d43151d66dc62ded2bf4e50df /include
parent5961ed5fbc6c76476ff8f76d21a7113673563068 (diff)
Add TTM buffer object based texture from pixmap implementation.
Currently only implemented for intel hw.
Diffstat (limited to 'include')
-rw-r--r--include/GL/internal/dri_interface.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 50f1d1a76..b83aff18f 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...
*/