[Mesa-dev] [RFC 05/10] mesa: add set and get functions to gl_context
Tapani Pälli
tapani.palli at intel.com
Tue Jan 9 07:48:17 UTC 2018
These will be utilized by EGL_ANDROID_blob_cache extension.
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
src/mesa/main/mtypes.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index a4f1e78f41..073b6c8536 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -4702,6 +4702,14 @@ struct gl_memory_object
GLboolean Dedicated; /**< import memory from a dedicated allocation */
};
+typedef void
+(*mesa_blob_cache_set_cb) (const void *key, signed long keySize,
+ const void *value, signed long valueSize);
+
+typedef signed long
+(*mesa_blob_cache_get_cb) (const void *key, signed long keySize,
+ void *value, signed long valueSize);
+
/**
* Mesa rendering context.
*
@@ -5074,6 +5082,14 @@ struct gl_context
struct hash_table_u64 *ResidentTextureHandles;
struct hash_table_u64 *ResidentImageHandles;
/*@}*/
+
+ /**
+ * \name EGL_ANDROID_blob_cache
+ */
+ /*@{*/
+ mesa_blob_cache_set_cb blobCacheSet;
+ mesa_blob_cache_get_cb blobCacheGet;
+ /*@}*/
};
/**
--
2.14.3
More information about the mesa-dev
mailing list