diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-03-25 15:37:49 -0600 |
|---|---|---|
| committer | Chia-I Wu <olv@lunarg.com> | 2015-04-16 17:33:26 +0800 |
| commit | 7e8bb56f2f68ab9c49d3bec3ff887d2706767393 (patch) | |
| tree | c065b3aad351dfde6cc574e387baaf30e7f00072 /layers/mem_tracker.cpp | |
| parent | 8d2e34cfee1fbe06756316b7fff631c199c1b241 (diff) | |
| download | usermoji-7e8bb56f2f68ab9c49d3bec3ff887d2706767393.tar.xz | |
xgl: Remove PIPELINE_DELTA.
bug: 13065
header: 0.60.0
Remove PIPELINE_DELTA.
Add functions for creating and loading pipeline derivatives.
v2: fix warnings (olv)
Diffstat (limited to 'layers/mem_tracker.cpp')
| -rw-r--r-- | layers/mem_tracker.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp index 72fae402..2d840dc4 100644 --- a/layers/mem_tracker.cpp +++ b/layers/mem_tracker.cpp @@ -1217,6 +1217,21 @@ XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateGraphicsPipeline(XGL_DEVICE device, return result; } +XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateGraphicsPipelineDerivative( + XGL_DEVICE device, + const XGL_GRAPHICS_PIPELINE_CREATE_INFO* pCreateInfo, + XGL_PIPELINE basePipeline, + XGL_PIPELINE* pPipeline) +{ + XGL_RESULT result = nextTable.CreateGraphicsPipelineDerivative(device, pCreateInfo, basePipeline, pPipeline); + if (result == XGL_SUCCESS) { + loader_platform_thread_lock_mutex(&globalLock); + insertGlobalObjectNode(*pPipeline, pCreateInfo->sType, pCreateInfo, sizeof(XGL_GRAPHICS_PIPELINE_CREATE_INFO), "graphics_pipeline"); + loader_platform_thread_unlock_mutex(&globalLock); + } + return result; +} + XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateComputePipeline(XGL_DEVICE device, const XGL_COMPUTE_PIPELINE_CREATE_INFO* pCreateInfo, XGL_PIPELINE* pPipeline) { XGL_RESULT result = nextTable.CreateComputePipeline(device, pCreateInfo, pPipeline); @@ -1828,6 +1843,8 @@ XGL_LAYER_EXPORT void* XGLAPI xglGetProcAddr(XGL_PHYSICAL_GPU gpu, const char* f return (void*) xglCreateShader; if (!strcmp(funcName, "xglCreateGraphicsPipeline")) return (void*) xglCreateGraphicsPipeline; + if (!strcmp(funcName, "xglCreateGraphicsPipelineDerivative")) + return (void*) xglCreateGraphicsPipelineDerivative; if (!strcmp(funcName, "xglCreateComputePipeline")) return (void*) xglCreateComputePipeline; if (!strcmp(funcName, "xglCreateSampler")) |
