aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2015-02-27 12:53:41 -0700
committerTobin Ehlis <tobin@lunarg.com>2015-03-02 16:11:50 -0700
commit005d19fb5f14e78754c01cad930e55f56278e787 (patch)
tree5189cb12269d6d8f21b4f9f4f4925394448eae52 /include
parent7ed13f7c7becb78f7d1cb65fd3bd6a9c2ec11634 (diff)
downloadusermoji-005d19fb5f14e78754c01cad930e55f56278e787.tar.xz
misc: Add xglRecordMemoryRange entrypoint and use it in Glave
Diffstat (limited to 'include')
-rw-r--r--include/xgl.h8
-rw-r--r--include/xglLayer.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/include/xgl.h b/include/xgl.h
index ec71157e..bdc3c8b0 100644
--- a/include/xgl.h
+++ b/include/xgl.h
@@ -33,7 +33,7 @@
#include "xglPlatform.h"
// XGL API version supported by this file
-#define XGL_API_VERSION XGL_MAKE_VERSION(0, 50, 1)
+#define XGL_API_VERSION XGL_MAKE_VERSION(0, 50, 2)
#ifdef __cplusplus
extern "C"
@@ -2241,6 +2241,7 @@ typedef XGL_RESULT (XGLAPI *xglFreeMemoryType)(XGL_GPU_MEMORY mem);
typedef XGL_RESULT (XGLAPI *xglSetMemoryPriorityType)(XGL_GPU_MEMORY mem, XGL_MEMORY_PRIORITY priority);
typedef XGL_RESULT (XGLAPI *xglMapMemoryType)(XGL_GPU_MEMORY mem, XGL_FLAGS flags, void** ppData);
typedef XGL_RESULT (XGLAPI *xglUnmapMemoryType)(XGL_GPU_MEMORY mem);
+typedef XGL_RESULT (XGLAPI *xglRecordMemoryRangeType)(XGL_GPU_MEMORY mem, XGL_GPU_SIZE rangeSize, XGL_GPU_SIZE rangeOffset);
typedef XGL_RESULT (XGLAPI *xglPinSystemMemoryType)(XGL_DEVICE device, const void* pSysMem, size_t memSize, XGL_GPU_MEMORY* pMem);
typedef XGL_RESULT (XGLAPI *xglGetMultiGpuCompatibilityType)(XGL_PHYSICAL_GPU gpu0, XGL_PHYSICAL_GPU gpu1, XGL_GPU_COMPATIBILITY_INFO* pInfo);
typedef XGL_RESULT (XGLAPI *xglOpenSharedMemoryType)(XGL_DEVICE device, const XGL_MEMORY_OPEN_INFO* pOpenInfo, XGL_GPU_MEMORY* pMem);
@@ -2439,6 +2440,11 @@ XGL_RESULT XGLAPI xglMapMemory(
XGL_RESULT XGLAPI xglUnmapMemory(
XGL_GPU_MEMORY mem);
+XGL_RESULT XGLAPI xglRecordMemoryRange(
+ XGL_GPU_MEMORY mem,
+ XGL_GPU_SIZE rangeSize,
+ XGL_GPU_SIZE rangeOffset);
+
XGL_RESULT XGLAPI xglPinSystemMemory(
XGL_DEVICE device,
const void* pSysMem,
diff --git a/include/xglLayer.h b/include/xglLayer.h
index fc192571..8a823ab8 100644
--- a/include/xglLayer.h
+++ b/include/xglLayer.h
@@ -48,6 +48,7 @@ typedef struct _XGL_LAYER_DISPATCH_TABLE
xglSetMemoryPriorityType SetMemoryPriority;
xglMapMemoryType MapMemory;
xglUnmapMemoryType UnmapMemory;
+ xglRecordMemoryRangeType RecordMemoryRange;
xglPinSystemMemoryType PinSystemMemory;
xglGetMultiGpuCompatibilityType GetMultiGpuCompatibility;
xglOpenSharedMemoryType OpenSharedMemory;