Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1 | /* THIS FILE IS GENERATED. DO NOT EDIT. */ |
| 2 | |
| 3 | /* |
| 4 | * XGL |
| 5 | * |
| 6 | * Copyright (C) 2014 LunarG, Inc. |
| 7 | * |
| 8 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 9 | * copy of this software and associated documentation files (the "Software"), |
| 10 | * to deal in the Software without restriction, including without limitation |
| 11 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 12 | * and/or sell copies of the Software, and to permit persons to whom the |
| 13 | * Software is furnished to do so, subject to the following conditions: |
| 14 | * |
| 15 | * The above copyright notice and this permission notice shall be included |
| 16 | * in all copies or substantial portions of the Software. |
| 17 | * |
| 18 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 19 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 20 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 21 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 22 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 23 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 24 | * DEALINGS IN THE SOFTWARE. |
| 25 | */ |
| 26 | |
| 27 | #include <stdio.h> |
| 28 | #include <stdlib.h> |
| 29 | #include <string.h> |
| 30 | #include <assert.h> |
| 31 | #include <pthread.h> |
| 32 | #include "xglLayer.h" |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 33 | #include "xgl_string_helper.h" |
| 34 | #include "xgl_struct_string_helper.h" |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 35 | |
| 36 | static XGL_LAYER_DISPATCH_TABLE nextTable; |
| 37 | static XGL_BASE_LAYER_OBJECT *pCurObj; |
| 38 | static pthread_once_t tabOnce = PTHREAD_ONCE_INIT; |
| 39 | |
| 40 | |
| 41 | static void initLayerTable() |
| 42 | { |
| 43 | GetProcAddrType fpNextGPA; |
| 44 | fpNextGPA = pCurObj->pGPA; |
| 45 | assert(fpNextGPA); |
| 46 | |
| 47 | GetProcAddrType fpGetProcAddr = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglGetProcAddr"); |
| 48 | nextTable.GetProcAddr = fpGetProcAddr; |
| 49 | InitAndEnumerateGpusType fpInitAndEnumerateGpus = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglInitAndEnumerateGpus"); |
| 50 | nextTable.InitAndEnumerateGpus = fpInitAndEnumerateGpus; |
| 51 | GetGpuInfoType fpGetGpuInfo = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglGetGpuInfo"); |
| 52 | nextTable.GetGpuInfo = fpGetGpuInfo; |
| 53 | CreateDeviceType fpCreateDevice = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateDevice"); |
| 54 | nextTable.CreateDevice = fpCreateDevice; |
| 55 | DestroyDeviceType fpDestroyDevice = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglDestroyDevice"); |
| 56 | nextTable.DestroyDevice = fpDestroyDevice; |
| 57 | GetExtensionSupportType fpGetExtensionSupport = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglGetExtensionSupport"); |
| 58 | nextTable.GetExtensionSupport = fpGetExtensionSupport; |
| 59 | EnumerateLayersType fpEnumerateLayers = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglEnumerateLayers"); |
| 60 | nextTable.EnumerateLayers = fpEnumerateLayers; |
| 61 | GetDeviceQueueType fpGetDeviceQueue = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglGetDeviceQueue"); |
| 62 | nextTable.GetDeviceQueue = fpGetDeviceQueue; |
| 63 | QueueSubmitType fpQueueSubmit = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglQueueSubmit"); |
| 64 | nextTable.QueueSubmit = fpQueueSubmit; |
| 65 | QueueSetGlobalMemReferencesType fpQueueSetGlobalMemReferences = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglQueueSetGlobalMemReferences"); |
| 66 | nextTable.QueueSetGlobalMemReferences = fpQueueSetGlobalMemReferences; |
| 67 | QueueWaitIdleType fpQueueWaitIdle = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglQueueWaitIdle"); |
| 68 | nextTable.QueueWaitIdle = fpQueueWaitIdle; |
| 69 | DeviceWaitIdleType fpDeviceWaitIdle = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglDeviceWaitIdle"); |
| 70 | nextTable.DeviceWaitIdle = fpDeviceWaitIdle; |
| 71 | GetMemoryHeapCountType fpGetMemoryHeapCount = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglGetMemoryHeapCount"); |
| 72 | nextTable.GetMemoryHeapCount = fpGetMemoryHeapCount; |
| 73 | GetMemoryHeapInfoType fpGetMemoryHeapInfo = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglGetMemoryHeapInfo"); |
| 74 | nextTable.GetMemoryHeapInfo = fpGetMemoryHeapInfo; |
| 75 | AllocMemoryType fpAllocMemory = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglAllocMemory"); |
| 76 | nextTable.AllocMemory = fpAllocMemory; |
| 77 | FreeMemoryType fpFreeMemory = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglFreeMemory"); |
| 78 | nextTable.FreeMemory = fpFreeMemory; |
| 79 | SetMemoryPriorityType fpSetMemoryPriority = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglSetMemoryPriority"); |
| 80 | nextTable.SetMemoryPriority = fpSetMemoryPriority; |
| 81 | MapMemoryType fpMapMemory = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglMapMemory"); |
| 82 | nextTable.MapMemory = fpMapMemory; |
| 83 | UnmapMemoryType fpUnmapMemory = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglUnmapMemory"); |
| 84 | nextTable.UnmapMemory = fpUnmapMemory; |
| 85 | PinSystemMemoryType fpPinSystemMemory = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglPinSystemMemory"); |
| 86 | nextTable.PinSystemMemory = fpPinSystemMemory; |
| 87 | RemapVirtualMemoryPagesType fpRemapVirtualMemoryPages = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglRemapVirtualMemoryPages"); |
| 88 | nextTable.RemapVirtualMemoryPages = fpRemapVirtualMemoryPages; |
| 89 | GetMultiGpuCompatibilityType fpGetMultiGpuCompatibility = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglGetMultiGpuCompatibility"); |
| 90 | nextTable.GetMultiGpuCompatibility = fpGetMultiGpuCompatibility; |
| 91 | OpenSharedMemoryType fpOpenSharedMemory = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglOpenSharedMemory"); |
| 92 | nextTable.OpenSharedMemory = fpOpenSharedMemory; |
| 93 | OpenSharedQueueSemaphoreType fpOpenSharedQueueSemaphore = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglOpenSharedQueueSemaphore"); |
| 94 | nextTable.OpenSharedQueueSemaphore = fpOpenSharedQueueSemaphore; |
| 95 | OpenPeerMemoryType fpOpenPeerMemory = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglOpenPeerMemory"); |
| 96 | nextTable.OpenPeerMemory = fpOpenPeerMemory; |
| 97 | OpenPeerImageType fpOpenPeerImage = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglOpenPeerImage"); |
| 98 | nextTable.OpenPeerImage = fpOpenPeerImage; |
| 99 | DestroyObjectType fpDestroyObject = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglDestroyObject"); |
| 100 | nextTable.DestroyObject = fpDestroyObject; |
| 101 | GetObjectInfoType fpGetObjectInfo = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglGetObjectInfo"); |
| 102 | nextTable.GetObjectInfo = fpGetObjectInfo; |
| 103 | BindObjectMemoryType fpBindObjectMemory = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglBindObjectMemory"); |
| 104 | nextTable.BindObjectMemory = fpBindObjectMemory; |
| 105 | CreateFenceType fpCreateFence = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateFence"); |
| 106 | nextTable.CreateFence = fpCreateFence; |
| 107 | GetFenceStatusType fpGetFenceStatus = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglGetFenceStatus"); |
| 108 | nextTable.GetFenceStatus = fpGetFenceStatus; |
| 109 | WaitForFencesType fpWaitForFences = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglWaitForFences"); |
| 110 | nextTable.WaitForFences = fpWaitForFences; |
| 111 | CreateQueueSemaphoreType fpCreateQueueSemaphore = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateQueueSemaphore"); |
| 112 | nextTable.CreateQueueSemaphore = fpCreateQueueSemaphore; |
| 113 | SignalQueueSemaphoreType fpSignalQueueSemaphore = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglSignalQueueSemaphore"); |
| 114 | nextTable.SignalQueueSemaphore = fpSignalQueueSemaphore; |
| 115 | WaitQueueSemaphoreType fpWaitQueueSemaphore = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglWaitQueueSemaphore"); |
| 116 | nextTable.WaitQueueSemaphore = fpWaitQueueSemaphore; |
| 117 | CreateEventType fpCreateEvent = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateEvent"); |
| 118 | nextTable.CreateEvent = fpCreateEvent; |
| 119 | GetEventStatusType fpGetEventStatus = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglGetEventStatus"); |
| 120 | nextTable.GetEventStatus = fpGetEventStatus; |
| 121 | SetEventType fpSetEvent = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglSetEvent"); |
| 122 | nextTable.SetEvent = fpSetEvent; |
| 123 | ResetEventType fpResetEvent = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglResetEvent"); |
| 124 | nextTable.ResetEvent = fpResetEvent; |
| 125 | CreateQueryPoolType fpCreateQueryPool = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateQueryPool"); |
| 126 | nextTable.CreateQueryPool = fpCreateQueryPool; |
| 127 | GetQueryPoolResultsType fpGetQueryPoolResults = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglGetQueryPoolResults"); |
| 128 | nextTable.GetQueryPoolResults = fpGetQueryPoolResults; |
| 129 | GetFormatInfoType fpGetFormatInfo = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglGetFormatInfo"); |
| 130 | nextTable.GetFormatInfo = fpGetFormatInfo; |
| 131 | CreateImageType fpCreateImage = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateImage"); |
| 132 | nextTable.CreateImage = fpCreateImage; |
| 133 | GetImageSubresourceInfoType fpGetImageSubresourceInfo = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglGetImageSubresourceInfo"); |
| 134 | nextTable.GetImageSubresourceInfo = fpGetImageSubresourceInfo; |
| 135 | CreateImageViewType fpCreateImageView = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateImageView"); |
| 136 | nextTable.CreateImageView = fpCreateImageView; |
| 137 | CreateColorAttachmentViewType fpCreateColorAttachmentView = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateColorAttachmentView"); |
| 138 | nextTable.CreateColorAttachmentView = fpCreateColorAttachmentView; |
| 139 | CreateDepthStencilViewType fpCreateDepthStencilView = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateDepthStencilView"); |
| 140 | nextTable.CreateDepthStencilView = fpCreateDepthStencilView; |
| 141 | CreateShaderType fpCreateShader = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateShader"); |
| 142 | nextTable.CreateShader = fpCreateShader; |
| 143 | CreateGraphicsPipelineType fpCreateGraphicsPipeline = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateGraphicsPipeline"); |
| 144 | nextTable.CreateGraphicsPipeline = fpCreateGraphicsPipeline; |
| 145 | CreateComputePipelineType fpCreateComputePipeline = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateComputePipeline"); |
| 146 | nextTable.CreateComputePipeline = fpCreateComputePipeline; |
| 147 | StorePipelineType fpStorePipeline = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglStorePipeline"); |
| 148 | nextTable.StorePipeline = fpStorePipeline; |
| 149 | LoadPipelineType fpLoadPipeline = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglLoadPipeline"); |
| 150 | nextTable.LoadPipeline = fpLoadPipeline; |
| 151 | CreatePipelineDeltaType fpCreatePipelineDelta = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreatePipelineDelta"); |
| 152 | nextTable.CreatePipelineDelta = fpCreatePipelineDelta; |
| 153 | CreateSamplerType fpCreateSampler = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateSampler"); |
| 154 | nextTable.CreateSampler = fpCreateSampler; |
| 155 | CreateDescriptorSetType fpCreateDescriptorSet = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateDescriptorSet"); |
| 156 | nextTable.CreateDescriptorSet = fpCreateDescriptorSet; |
| 157 | BeginDescriptorSetUpdateType fpBeginDescriptorSetUpdate = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglBeginDescriptorSetUpdate"); |
| 158 | nextTable.BeginDescriptorSetUpdate = fpBeginDescriptorSetUpdate; |
| 159 | EndDescriptorSetUpdateType fpEndDescriptorSetUpdate = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglEndDescriptorSetUpdate"); |
| 160 | nextTable.EndDescriptorSetUpdate = fpEndDescriptorSetUpdate; |
| 161 | AttachSamplerDescriptorsType fpAttachSamplerDescriptors = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglAttachSamplerDescriptors"); |
| 162 | nextTable.AttachSamplerDescriptors = fpAttachSamplerDescriptors; |
| 163 | AttachImageViewDescriptorsType fpAttachImageViewDescriptors = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglAttachImageViewDescriptors"); |
| 164 | nextTable.AttachImageViewDescriptors = fpAttachImageViewDescriptors; |
| 165 | AttachMemoryViewDescriptorsType fpAttachMemoryViewDescriptors = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglAttachMemoryViewDescriptors"); |
| 166 | nextTable.AttachMemoryViewDescriptors = fpAttachMemoryViewDescriptors; |
| 167 | AttachNestedDescriptorsType fpAttachNestedDescriptors = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglAttachNestedDescriptors"); |
| 168 | nextTable.AttachNestedDescriptors = fpAttachNestedDescriptors; |
| 169 | ClearDescriptorSetSlotsType fpClearDescriptorSetSlots = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglClearDescriptorSetSlots"); |
| 170 | nextTable.ClearDescriptorSetSlots = fpClearDescriptorSetSlots; |
| 171 | CreateViewportStateType fpCreateViewportState = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateViewportState"); |
| 172 | nextTable.CreateViewportState = fpCreateViewportState; |
| 173 | CreateRasterStateType fpCreateRasterState = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateRasterState"); |
| 174 | nextTable.CreateRasterState = fpCreateRasterState; |
| 175 | CreateMsaaStateType fpCreateMsaaState = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateMsaaState"); |
| 176 | nextTable.CreateMsaaState = fpCreateMsaaState; |
| 177 | CreateColorBlendStateType fpCreateColorBlendState = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateColorBlendState"); |
| 178 | nextTable.CreateColorBlendState = fpCreateColorBlendState; |
| 179 | CreateDepthStencilStateType fpCreateDepthStencilState = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateDepthStencilState"); |
| 180 | nextTable.CreateDepthStencilState = fpCreateDepthStencilState; |
| 181 | CreateCommandBufferType fpCreateCommandBuffer = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCreateCommandBuffer"); |
| 182 | nextTable.CreateCommandBuffer = fpCreateCommandBuffer; |
| 183 | BeginCommandBufferType fpBeginCommandBuffer = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglBeginCommandBuffer"); |
| 184 | nextTable.BeginCommandBuffer = fpBeginCommandBuffer; |
| 185 | EndCommandBufferType fpEndCommandBuffer = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglEndCommandBuffer"); |
| 186 | nextTable.EndCommandBuffer = fpEndCommandBuffer; |
| 187 | ResetCommandBufferType fpResetCommandBuffer = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglResetCommandBuffer"); |
| 188 | nextTable.ResetCommandBuffer = fpResetCommandBuffer; |
| 189 | CmdBindPipelineType fpCmdBindPipeline = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdBindPipeline"); |
| 190 | nextTable.CmdBindPipeline = fpCmdBindPipeline; |
| 191 | CmdBindPipelineDeltaType fpCmdBindPipelineDelta = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdBindPipelineDelta"); |
| 192 | nextTable.CmdBindPipelineDelta = fpCmdBindPipelineDelta; |
| 193 | CmdBindStateObjectType fpCmdBindStateObject = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdBindStateObject"); |
| 194 | nextTable.CmdBindStateObject = fpCmdBindStateObject; |
| 195 | CmdBindDescriptorSetType fpCmdBindDescriptorSet = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdBindDescriptorSet"); |
| 196 | nextTable.CmdBindDescriptorSet = fpCmdBindDescriptorSet; |
| 197 | CmdBindDynamicMemoryViewType fpCmdBindDynamicMemoryView = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdBindDynamicMemoryView"); |
| 198 | nextTable.CmdBindDynamicMemoryView = fpCmdBindDynamicMemoryView; |
| 199 | CmdBindIndexDataType fpCmdBindIndexData = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdBindIndexData"); |
| 200 | nextTable.CmdBindIndexData = fpCmdBindIndexData; |
| 201 | CmdBindAttachmentsType fpCmdBindAttachments = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdBindAttachments"); |
| 202 | nextTable.CmdBindAttachments = fpCmdBindAttachments; |
| 203 | CmdPrepareMemoryRegionsType fpCmdPrepareMemoryRegions = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdPrepareMemoryRegions"); |
| 204 | nextTable.CmdPrepareMemoryRegions = fpCmdPrepareMemoryRegions; |
| 205 | CmdPrepareImagesType fpCmdPrepareImages = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdPrepareImages"); |
| 206 | nextTable.CmdPrepareImages = fpCmdPrepareImages; |
| 207 | CmdDrawType fpCmdDraw = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdDraw"); |
| 208 | nextTable.CmdDraw = fpCmdDraw; |
| 209 | CmdDrawIndexedType fpCmdDrawIndexed = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdDrawIndexed"); |
| 210 | nextTable.CmdDrawIndexed = fpCmdDrawIndexed; |
| 211 | CmdDrawIndirectType fpCmdDrawIndirect = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdDrawIndirect"); |
| 212 | nextTable.CmdDrawIndirect = fpCmdDrawIndirect; |
| 213 | CmdDrawIndexedIndirectType fpCmdDrawIndexedIndirect = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdDrawIndexedIndirect"); |
| 214 | nextTable.CmdDrawIndexedIndirect = fpCmdDrawIndexedIndirect; |
| 215 | CmdDispatchType fpCmdDispatch = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdDispatch"); |
| 216 | nextTable.CmdDispatch = fpCmdDispatch; |
| 217 | CmdDispatchIndirectType fpCmdDispatchIndirect = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdDispatchIndirect"); |
| 218 | nextTable.CmdDispatchIndirect = fpCmdDispatchIndirect; |
| 219 | CmdCopyMemoryType fpCmdCopyMemory = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdCopyMemory"); |
| 220 | nextTable.CmdCopyMemory = fpCmdCopyMemory; |
| 221 | CmdCopyImageType fpCmdCopyImage = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdCopyImage"); |
| 222 | nextTable.CmdCopyImage = fpCmdCopyImage; |
| 223 | CmdCopyMemoryToImageType fpCmdCopyMemoryToImage = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdCopyMemoryToImage"); |
| 224 | nextTable.CmdCopyMemoryToImage = fpCmdCopyMemoryToImage; |
| 225 | CmdCopyImageToMemoryType fpCmdCopyImageToMemory = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdCopyImageToMemory"); |
| 226 | nextTable.CmdCopyImageToMemory = fpCmdCopyImageToMemory; |
| 227 | CmdCloneImageDataType fpCmdCloneImageData = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdCloneImageData"); |
| 228 | nextTable.CmdCloneImageData = fpCmdCloneImageData; |
| 229 | CmdUpdateMemoryType fpCmdUpdateMemory = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdUpdateMemory"); |
| 230 | nextTable.CmdUpdateMemory = fpCmdUpdateMemory; |
| 231 | CmdFillMemoryType fpCmdFillMemory = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdFillMemory"); |
| 232 | nextTable.CmdFillMemory = fpCmdFillMemory; |
| 233 | CmdClearColorImageType fpCmdClearColorImage = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdClearColorImage"); |
| 234 | nextTable.CmdClearColorImage = fpCmdClearColorImage; |
| 235 | CmdClearColorImageRawType fpCmdClearColorImageRaw = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdClearColorImageRaw"); |
| 236 | nextTable.CmdClearColorImageRaw = fpCmdClearColorImageRaw; |
| 237 | CmdClearDepthStencilType fpCmdClearDepthStencil = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdClearDepthStencil"); |
| 238 | nextTable.CmdClearDepthStencil = fpCmdClearDepthStencil; |
| 239 | CmdResolveImageType fpCmdResolveImage = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdResolveImage"); |
| 240 | nextTable.CmdResolveImage = fpCmdResolveImage; |
| 241 | CmdSetEventType fpCmdSetEvent = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdSetEvent"); |
| 242 | nextTable.CmdSetEvent = fpCmdSetEvent; |
| 243 | CmdResetEventType fpCmdResetEvent = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdResetEvent"); |
| 244 | nextTable.CmdResetEvent = fpCmdResetEvent; |
| 245 | CmdMemoryAtomicType fpCmdMemoryAtomic = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdMemoryAtomic"); |
| 246 | nextTable.CmdMemoryAtomic = fpCmdMemoryAtomic; |
| 247 | CmdBeginQueryType fpCmdBeginQuery = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdBeginQuery"); |
| 248 | nextTable.CmdBeginQuery = fpCmdBeginQuery; |
| 249 | CmdEndQueryType fpCmdEndQuery = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdEndQuery"); |
| 250 | nextTable.CmdEndQuery = fpCmdEndQuery; |
| 251 | CmdResetQueryPoolType fpCmdResetQueryPool = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdResetQueryPool"); |
| 252 | nextTable.CmdResetQueryPool = fpCmdResetQueryPool; |
| 253 | CmdWriteTimestampType fpCmdWriteTimestamp = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdWriteTimestamp"); |
| 254 | nextTable.CmdWriteTimestamp = fpCmdWriteTimestamp; |
| 255 | CmdInitAtomicCountersType fpCmdInitAtomicCounters = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdInitAtomicCounters"); |
| 256 | nextTable.CmdInitAtomicCounters = fpCmdInitAtomicCounters; |
| 257 | CmdLoadAtomicCountersType fpCmdLoadAtomicCounters = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdLoadAtomicCounters"); |
| 258 | nextTable.CmdLoadAtomicCounters = fpCmdLoadAtomicCounters; |
| 259 | CmdSaveAtomicCountersType fpCmdSaveAtomicCounters = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdSaveAtomicCounters"); |
| 260 | nextTable.CmdSaveAtomicCounters = fpCmdSaveAtomicCounters; |
| 261 | DbgSetValidationLevelType fpDbgSetValidationLevel = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglDbgSetValidationLevel"); |
| 262 | nextTable.DbgSetValidationLevel = fpDbgSetValidationLevel; |
| 263 | DbgRegisterMsgCallbackType fpDbgRegisterMsgCallback = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglDbgRegisterMsgCallback"); |
| 264 | nextTable.DbgRegisterMsgCallback = fpDbgRegisterMsgCallback; |
| 265 | DbgUnregisterMsgCallbackType fpDbgUnregisterMsgCallback = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglDbgUnregisterMsgCallback"); |
| 266 | nextTable.DbgUnregisterMsgCallback = fpDbgUnregisterMsgCallback; |
| 267 | DbgSetMessageFilterType fpDbgSetMessageFilter = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglDbgSetMessageFilter"); |
| 268 | nextTable.DbgSetMessageFilter = fpDbgSetMessageFilter; |
| 269 | DbgSetObjectTagType fpDbgSetObjectTag = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglDbgSetObjectTag"); |
| 270 | nextTable.DbgSetObjectTag = fpDbgSetObjectTag; |
| 271 | DbgSetGlobalOptionType fpDbgSetGlobalOption = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglDbgSetGlobalOption"); |
| 272 | nextTable.DbgSetGlobalOption = fpDbgSetGlobalOption; |
| 273 | DbgSetDeviceOptionType fpDbgSetDeviceOption = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglDbgSetDeviceOption"); |
| 274 | nextTable.DbgSetDeviceOption = fpDbgSetDeviceOption; |
| 275 | CmdDbgMarkerBeginType fpCmdDbgMarkerBegin = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdDbgMarkerBegin"); |
| 276 | nextTable.CmdDbgMarkerBegin = fpCmdDbgMarkerBegin; |
| 277 | CmdDbgMarkerEndType fpCmdDbgMarkerEnd = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglCmdDbgMarkerEnd"); |
| 278 | nextTable.CmdDbgMarkerEnd = fpCmdDbgMarkerEnd; |
| 279 | WsiX11AssociateConnectionType fpWsiX11AssociateConnection = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglWsiX11AssociateConnection"); |
| 280 | nextTable.WsiX11AssociateConnection = fpWsiX11AssociateConnection; |
| 281 | WsiX11GetMSCType fpWsiX11GetMSC = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglWsiX11GetMSC"); |
| 282 | nextTable.WsiX11GetMSC = fpWsiX11GetMSC; |
| 283 | WsiX11CreatePresentableImageType fpWsiX11CreatePresentableImage = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglWsiX11CreatePresentableImage"); |
| 284 | nextTable.WsiX11CreatePresentableImage = fpWsiX11CreatePresentableImage; |
| 285 | WsiX11QueuePresentType fpWsiX11QueuePresent = fpNextGPA((XGL_PHYSICAL_GPU) pCurObj->nextObject, (XGL_CHAR *) "xglWsiX11QueuePresent"); |
| 286 | nextTable.WsiX11QueuePresent = fpWsiX11QueuePresent; |
| 287 | } |
| 288 | |
| 289 | |
| 290 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetGpuInfo(XGL_PHYSICAL_GPU gpu, XGL_PHYSICAL_GPU_INFO_TYPE infoType, XGL_SIZE* pDataSize, XGL_VOID* pData) |
| 291 | { |
| 292 | XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 293 | pCurObj = gpuw; |
| 294 | pthread_once(&tabOnce, initLayerTable); |
| 295 | XGL_RESULT result = nextTable.GetGpuInfo((XGL_PHYSICAL_GPU)gpuw->nextObject, infoType, pDataSize, pData); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 296 | printf("xglGetGpuInfo(gpu = %p, infoType = %s, pDataSize = %i, pData = %p) = %s\n", (void*)gpu, string_XGL_PHYSICAL_GPU_INFO_TYPE(infoType), *pDataSize, (void*)pData, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 297 | return result; |
| 298 | } |
| 299 | |
| 300 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateDevice(XGL_PHYSICAL_GPU gpu, const XGL_DEVICE_CREATE_INFO* pCreateInfo, XGL_DEVICE* pDevice) |
| 301 | { |
| 302 | XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 303 | pCurObj = gpuw; |
| 304 | pthread_once(&tabOnce, initLayerTable); |
| 305 | XGL_RESULT result = nextTable.CreateDevice((XGL_PHYSICAL_GPU)gpuw->nextObject, pCreateInfo, pDevice); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 306 | printf("xglCreateDevice(gpu = %p, pCreateInfo = %p, pDevice = %p) = %s\n", (void*)gpu, (void*)pCreateInfo, (void*)*pDevice, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 307 | char *pTmpStr; |
| 308 | if (pCreateInfo) { |
| 309 | pTmpStr = xgl_print_xgl_device_create_info(pCreateInfo, " "); |
| 310 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 311 | free(pTmpStr); |
| 312 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 313 | return result; |
| 314 | } |
| 315 | |
| 316 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDestroyDevice(XGL_DEVICE device) |
| 317 | { |
| 318 | XGL_RESULT result = nextTable.DestroyDevice(device); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 319 | printf("xglDestroyDevice(device = %p) = %s\n", (void*)device, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 320 | return result; |
| 321 | } |
| 322 | |
| 323 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetExtensionSupport(XGL_PHYSICAL_GPU gpu, const XGL_CHAR* pExtName) |
| 324 | { |
| 325 | XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 326 | pCurObj = gpuw; |
| 327 | pthread_once(&tabOnce, initLayerTable); |
| 328 | XGL_RESULT result = nextTable.GetExtensionSupport((XGL_PHYSICAL_GPU)gpuw->nextObject, pExtName); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 329 | printf("xglGetExtensionSupport(gpu = %p, pExtName = %p) = %s\n", (void*)gpu, (void*)pExtName, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 330 | return result; |
| 331 | } |
| 332 | |
| 333 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglEnumerateLayers(XGL_PHYSICAL_GPU gpu, XGL_SIZE maxLayerCount, XGL_SIZE maxStringSize, XGL_CHAR* const* pOutLayers, XGL_SIZE * pOutLayerCount) |
| 334 | { |
| 335 | XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 336 | pCurObj = gpuw; |
| 337 | pthread_once(&tabOnce, initLayerTable); |
| 338 | XGL_RESULT result = nextTable.EnumerateLayers((XGL_PHYSICAL_GPU)gpuw->nextObject, maxLayerCount, maxStringSize, pOutLayers, pOutLayerCount); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 339 | printf("xglEnumerateLayers(gpu = %p, maxLayerCount = %i, maxStringSize = %i, pOutLayers = %p, pOutLayerCount = %i) = %s\n", (void*)gpu, maxLayerCount, maxStringSize, (void*)pOutLayers, *pOutLayerCount, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 340 | return result; |
| 341 | } |
| 342 | |
| 343 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetDeviceQueue(XGL_DEVICE device, XGL_QUEUE_TYPE queueType, XGL_UINT queueIndex, XGL_QUEUE* pQueue) |
| 344 | { |
| 345 | XGL_RESULT result = nextTable.GetDeviceQueue(device, queueType, queueIndex, pQueue); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 346 | printf("xglGetDeviceQueue(device = %p, queueType = %s, queueIndex = %i, pQueue = %p) = %s\n", (void*)device, string_XGL_QUEUE_TYPE(queueType), queueIndex, (void*)pQueue, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 347 | return result; |
| 348 | } |
| 349 | |
| 350 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglQueueSubmit(XGL_QUEUE queue, XGL_UINT cmdBufferCount, const XGL_CMD_BUFFER* pCmdBuffers, XGL_UINT memRefCount, const XGL_MEMORY_REF* pMemRefs, XGL_FENCE fence) |
| 351 | { |
| 352 | XGL_RESULT result = nextTable.QueueSubmit(queue, cmdBufferCount, pCmdBuffers, memRefCount, pMemRefs, fence); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 353 | printf("xglQueueSubmit(queue = %p, cmdBufferCount = %i, pCmdBuffers = %p, memRefCount = %i, pMemRefs = %p, fence = %p) = %s\n", (void*)queue, cmdBufferCount, (void*)pCmdBuffers, memRefCount, (void*)pMemRefs, (void*)fence, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 354 | char *pTmpStr; |
| 355 | if (pMemRefs) { |
| 356 | pTmpStr = xgl_print_xgl_memory_ref(pMemRefs, " "); |
| 357 | printf(" pMemRefs (%p)\n%s\n", (void*)pMemRefs, pTmpStr); |
| 358 | free(pTmpStr); |
| 359 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 360 | return result; |
| 361 | } |
| 362 | |
| 363 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglQueueSetGlobalMemReferences(XGL_QUEUE queue, XGL_UINT memRefCount, const XGL_MEMORY_REF* pMemRefs) |
| 364 | { |
| 365 | XGL_RESULT result = nextTable.QueueSetGlobalMemReferences(queue, memRefCount, pMemRefs); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 366 | printf("xglQueueSetGlobalMemReferences(queue = %p, memRefCount = %i, pMemRefs = %p) = %s\n", (void*)queue, memRefCount, (void*)pMemRefs, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 367 | char *pTmpStr; |
| 368 | if (pMemRefs) { |
| 369 | pTmpStr = xgl_print_xgl_memory_ref(pMemRefs, " "); |
| 370 | printf(" pMemRefs (%p)\n%s\n", (void*)pMemRefs, pTmpStr); |
| 371 | free(pTmpStr); |
| 372 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 373 | return result; |
| 374 | } |
| 375 | |
| 376 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglQueueWaitIdle(XGL_QUEUE queue) |
| 377 | { |
| 378 | XGL_RESULT result = nextTable.QueueWaitIdle(queue); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 379 | printf("xglQueueWaitIdle(queue = %p) = %s\n", (void*)queue, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 380 | return result; |
| 381 | } |
| 382 | |
| 383 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDeviceWaitIdle(XGL_DEVICE device) |
| 384 | { |
| 385 | XGL_RESULT result = nextTable.DeviceWaitIdle(device); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 386 | printf("xglDeviceWaitIdle(device = %p) = %s\n", (void*)device, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 387 | return result; |
| 388 | } |
| 389 | |
| 390 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetMemoryHeapCount(XGL_DEVICE device, XGL_UINT* pCount) |
| 391 | { |
| 392 | XGL_RESULT result = nextTable.GetMemoryHeapCount(device, pCount); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 393 | printf("xglGetMemoryHeapCount(device = %p, pCount = %i) = %s\n", (void*)device, *pCount, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 394 | return result; |
| 395 | } |
| 396 | |
| 397 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetMemoryHeapInfo(XGL_DEVICE device, XGL_UINT heapId, XGL_MEMORY_HEAP_INFO_TYPE infoType, XGL_SIZE* pDataSize, XGL_VOID* pData) |
| 398 | { |
| 399 | XGL_RESULT result = nextTable.GetMemoryHeapInfo(device, heapId, infoType, pDataSize, pData); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 400 | printf("xglGetMemoryHeapInfo(device = %p, heapId = %i, infoType = %s, pDataSize = %i, pData = %p) = %s\n", (void*)device, heapId, string_XGL_MEMORY_HEAP_INFO_TYPE(infoType), *pDataSize, (void*)pData, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 401 | return result; |
| 402 | } |
| 403 | |
| 404 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglAllocMemory(XGL_DEVICE device, const XGL_MEMORY_ALLOC_INFO* pAllocInfo, XGL_GPU_MEMORY* pMem) |
| 405 | { |
| 406 | XGL_RESULT result = nextTable.AllocMemory(device, pAllocInfo, pMem); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 407 | printf("xglAllocMemory(device = %p, pAllocInfo = %p, pMem = %p) = %s\n", (void*)device, (void*)pAllocInfo, (void*)pMem, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 408 | char *pTmpStr; |
| 409 | if (pAllocInfo) { |
| 410 | pTmpStr = xgl_print_xgl_memory_alloc_info(pAllocInfo, " "); |
| 411 | printf(" pAllocInfo (%p)\n%s\n", (void*)pAllocInfo, pTmpStr); |
| 412 | free(pTmpStr); |
| 413 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 414 | return result; |
| 415 | } |
| 416 | |
| 417 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglFreeMemory(XGL_GPU_MEMORY mem) |
| 418 | { |
| 419 | XGL_RESULT result = nextTable.FreeMemory(mem); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 420 | printf("xglFreeMemory(mem = %p) = %s\n", (void*)mem, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 421 | return result; |
| 422 | } |
| 423 | |
| 424 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglSetMemoryPriority(XGL_GPU_MEMORY mem, XGL_MEMORY_PRIORITY priority) |
| 425 | { |
| 426 | XGL_RESULT result = nextTable.SetMemoryPriority(mem, priority); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 427 | printf("xglSetMemoryPriority(mem = %p, priority = %p) = %s\n", (void*)mem, (void*)priority, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 428 | return result; |
| 429 | } |
| 430 | |
| 431 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglMapMemory(XGL_GPU_MEMORY mem, XGL_FLAGS flags, XGL_VOID** ppData) |
| 432 | { |
| 433 | XGL_RESULT result = nextTable.MapMemory(mem, flags, ppData); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 434 | printf("xglMapMemory(mem = %p, flags = %i, ppData = %p) = %s\n", (void*)mem, flags, (void*)ppData, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 435 | return result; |
| 436 | } |
| 437 | |
| 438 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglUnmapMemory(XGL_GPU_MEMORY mem) |
| 439 | { |
| 440 | XGL_RESULT result = nextTable.UnmapMemory(mem); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 441 | printf("xglUnmapMemory(mem = %p) = %s\n", (void*)mem, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 442 | return result; |
| 443 | } |
| 444 | |
| 445 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglPinSystemMemory(XGL_DEVICE device, const XGL_VOID* pSysMem, XGL_SIZE memSize, XGL_GPU_MEMORY* pMem) |
| 446 | { |
| 447 | XGL_RESULT result = nextTable.PinSystemMemory(device, pSysMem, memSize, pMem); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 448 | printf("xglPinSystemMemory(device = %p, pSysMem = %p, memSize = %i, pMem = %p) = %s\n", (void*)device, (void*)pSysMem, memSize, (void*)pMem, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 449 | return result; |
| 450 | } |
| 451 | |
| 452 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglRemapVirtualMemoryPages(XGL_DEVICE device, XGL_UINT rangeCount, const XGL_VIRTUAL_MEMORY_REMAP_RANGE* pRanges, XGL_UINT preWaitSemaphoreCount, const XGL_QUEUE_SEMAPHORE* pPreWaitSemaphores, XGL_UINT postSignalSemaphoreCount, const XGL_QUEUE_SEMAPHORE* pPostSignalSemaphores) |
| 453 | { |
| 454 | XGL_RESULT result = nextTable.RemapVirtualMemoryPages(device, rangeCount, pRanges, preWaitSemaphoreCount, pPreWaitSemaphores, postSignalSemaphoreCount, pPostSignalSemaphores); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 455 | printf("xglRemapVirtualMemoryPages(device = %p, rangeCount = %i, pRanges = %p, preWaitSemaphoreCount = %i, pPreWaitSemaphores = %p, postSignalSemaphoreCount = %i, pPostSignalSemaphores = %p) = %s\n", (void*)device, rangeCount, (void*)pRanges, preWaitSemaphoreCount, (void*)pPreWaitSemaphores, postSignalSemaphoreCount, (void*)pPostSignalSemaphores, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 456 | char *pTmpStr; |
| 457 | if (pRanges) { |
| 458 | pTmpStr = xgl_print_xgl_virtual_memory_remap_range(pRanges, " "); |
| 459 | printf(" pRanges (%p)\n%s\n", (void*)pRanges, pTmpStr); |
| 460 | free(pTmpStr); |
| 461 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 462 | return result; |
| 463 | } |
| 464 | |
| 465 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetMultiGpuCompatibility(XGL_PHYSICAL_GPU gpu0, XGL_PHYSICAL_GPU gpu1, XGL_GPU_COMPATIBILITY_INFO* pInfo) |
| 466 | { |
| 467 | XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu0; |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 468 | pCurObj = gpuw; |
| 469 | pthread_once(&tabOnce, initLayerTable); |
| 470 | XGL_RESULT result = nextTable.GetMultiGpuCompatibility((XGL_PHYSICAL_GPU)gpuw->nextObject, gpu1, pInfo); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 471 | printf("xglGetMultiGpuCompatibility(gpu0 = %p, gpu1 = %p, pInfo = %p) = %s\n", (void*)gpu0, (void*)gpu1, (void*)pInfo, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 472 | return result; |
| 473 | } |
| 474 | |
| 475 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglOpenSharedMemory(XGL_DEVICE device, const XGL_MEMORY_OPEN_INFO* pOpenInfo, XGL_GPU_MEMORY* pMem) |
| 476 | { |
| 477 | XGL_RESULT result = nextTable.OpenSharedMemory(device, pOpenInfo, pMem); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 478 | printf("xglOpenSharedMemory(device = %p, pOpenInfo = %p, pMem = %p) = %s\n", (void*)device, (void*)pOpenInfo, (void*)pMem, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 479 | char *pTmpStr; |
| 480 | if (pOpenInfo) { |
| 481 | pTmpStr = xgl_print_xgl_memory_open_info(pOpenInfo, " "); |
| 482 | printf(" pOpenInfo (%p)\n%s\n", (void*)pOpenInfo, pTmpStr); |
| 483 | free(pTmpStr); |
| 484 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 485 | return result; |
| 486 | } |
| 487 | |
| 488 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglOpenSharedQueueSemaphore(XGL_DEVICE device, const XGL_QUEUE_SEMAPHORE_OPEN_INFO* pOpenInfo, XGL_QUEUE_SEMAPHORE* pSemaphore) |
| 489 | { |
| 490 | XGL_RESULT result = nextTable.OpenSharedQueueSemaphore(device, pOpenInfo, pSemaphore); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 491 | printf("xglOpenSharedQueueSemaphore(device = %p, pOpenInfo = %p, pSemaphore = %p) = %s\n", (void*)device, (void*)pOpenInfo, (void*)pSemaphore, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 492 | return result; |
| 493 | } |
| 494 | |
| 495 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglOpenPeerMemory(XGL_DEVICE device, const XGL_PEER_MEMORY_OPEN_INFO* pOpenInfo, XGL_GPU_MEMORY* pMem) |
| 496 | { |
| 497 | XGL_RESULT result = nextTable.OpenPeerMemory(device, pOpenInfo, pMem); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 498 | printf("xglOpenPeerMemory(device = %p, pOpenInfo = %p, pMem = %p) = %s\n", (void*)device, (void*)pOpenInfo, (void*)pMem, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 499 | char *pTmpStr; |
| 500 | if (pOpenInfo) { |
| 501 | pTmpStr = xgl_print_xgl_peer_memory_open_info(pOpenInfo, " "); |
| 502 | printf(" pOpenInfo (%p)\n%s\n", (void*)pOpenInfo, pTmpStr); |
| 503 | free(pTmpStr); |
| 504 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 505 | return result; |
| 506 | } |
| 507 | |
| 508 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglOpenPeerImage(XGL_DEVICE device, const XGL_PEER_IMAGE_OPEN_INFO* pOpenInfo, XGL_IMAGE* pImage, XGL_GPU_MEMORY* pMem) |
| 509 | { |
| 510 | XGL_RESULT result = nextTable.OpenPeerImage(device, pOpenInfo, pImage, pMem); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 511 | printf("xglOpenPeerImage(device = %p, pOpenInfo = %p, pImage = %p, pMem = %p) = %s\n", (void*)device, (void*)pOpenInfo, (void*)pImage, (void*)pMem, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 512 | char *pTmpStr; |
| 513 | if (pOpenInfo) { |
| 514 | pTmpStr = xgl_print_xgl_peer_image_open_info(pOpenInfo, " "); |
| 515 | printf(" pOpenInfo (%p)\n%s\n", (void*)pOpenInfo, pTmpStr); |
| 516 | free(pTmpStr); |
| 517 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 518 | return result; |
| 519 | } |
| 520 | |
| 521 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDestroyObject(XGL_OBJECT object) |
| 522 | { |
| 523 | XGL_RESULT result = nextTable.DestroyObject(object); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 524 | printf("xglDestroyObject(object = %p) = %s\n", (void*)object, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 525 | return result; |
| 526 | } |
| 527 | |
| 528 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetObjectInfo(XGL_BASE_OBJECT object, XGL_OBJECT_INFO_TYPE infoType, XGL_SIZE* pDataSize, XGL_VOID* pData) |
| 529 | { |
| 530 | XGL_RESULT result = nextTable.GetObjectInfo(object, infoType, pDataSize, pData); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 531 | printf("xglGetObjectInfo(object = %p, infoType = %s, pDataSize = %i, pData = %p) = %s\n", (void*)object, string_XGL_OBJECT_INFO_TYPE(infoType), *pDataSize, (void*)pData, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 532 | return result; |
| 533 | } |
| 534 | |
| 535 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglBindObjectMemory(XGL_OBJECT object, XGL_GPU_MEMORY mem, XGL_GPU_SIZE offset) |
| 536 | { |
| 537 | XGL_RESULT result = nextTable.BindObjectMemory(object, mem, offset); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 538 | printf("xglBindObjectMemory(object = %p, mem = %p, offset = %i) = %s\n", (void*)object, (void*)mem, offset, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 539 | return result; |
| 540 | } |
| 541 | |
| 542 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateFence(XGL_DEVICE device, const XGL_FENCE_CREATE_INFO* pCreateInfo, XGL_FENCE* pFence) |
| 543 | { |
| 544 | XGL_RESULT result = nextTable.CreateFence(device, pCreateInfo, pFence); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 545 | printf("xglCreateFence(device = %p, pCreateInfo = %p, pFence = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pFence, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 546 | char *pTmpStr; |
| 547 | if (pCreateInfo) { |
| 548 | pTmpStr = xgl_print_xgl_fence_create_info(pCreateInfo, " "); |
| 549 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 550 | free(pTmpStr); |
| 551 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 552 | return result; |
| 553 | } |
| 554 | |
| 555 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetFenceStatus(XGL_FENCE fence) |
| 556 | { |
| 557 | XGL_RESULT result = nextTable.GetFenceStatus(fence); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 558 | printf("xglGetFenceStatus(fence = %p) = %s\n", (void*)fence, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 559 | return result; |
| 560 | } |
| 561 | |
| 562 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglWaitForFences(XGL_DEVICE device, XGL_UINT fenceCount, const XGL_FENCE* pFences, XGL_BOOL waitAll, XGL_UINT64 timeout) |
| 563 | { |
| 564 | XGL_RESULT result = nextTable.WaitForFences(device, fenceCount, pFences, waitAll, timeout); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 565 | printf("xglWaitForFences(device = %p, fenceCount = %i, pFences = %p, waitAll = %u, timeout = %lu) = %s\n", (void*)device, fenceCount, (void*)pFences, waitAll, timeout, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 566 | return result; |
| 567 | } |
| 568 | |
| 569 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateQueueSemaphore(XGL_DEVICE device, const XGL_QUEUE_SEMAPHORE_CREATE_INFO* pCreateInfo, XGL_QUEUE_SEMAPHORE* pSemaphore) |
| 570 | { |
| 571 | XGL_RESULT result = nextTable.CreateQueueSemaphore(device, pCreateInfo, pSemaphore); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 572 | printf("xglCreateQueueSemaphore(device = %p, pCreateInfo = %p, pSemaphore = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pSemaphore, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 573 | char *pTmpStr; |
| 574 | if (pCreateInfo) { |
| 575 | pTmpStr = xgl_print_xgl_queue_semaphore_create_info(pCreateInfo, " "); |
| 576 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 577 | free(pTmpStr); |
| 578 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 579 | return result; |
| 580 | } |
| 581 | |
| 582 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglSignalQueueSemaphore(XGL_QUEUE queue, XGL_QUEUE_SEMAPHORE semaphore) |
| 583 | { |
| 584 | XGL_RESULT result = nextTable.SignalQueueSemaphore(queue, semaphore); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 585 | printf("xglSignalQueueSemaphore(queue = %p, semaphore = %p) = %s\n", (void*)queue, (void*)semaphore, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 586 | return result; |
| 587 | } |
| 588 | |
| 589 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglWaitQueueSemaphore(XGL_QUEUE queue, XGL_QUEUE_SEMAPHORE semaphore) |
| 590 | { |
| 591 | XGL_RESULT result = nextTable.WaitQueueSemaphore(queue, semaphore); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 592 | printf("xglWaitQueueSemaphore(queue = %p, semaphore = %p) = %s\n", (void*)queue, (void*)semaphore, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 593 | return result; |
| 594 | } |
| 595 | |
| 596 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateEvent(XGL_DEVICE device, const XGL_EVENT_CREATE_INFO* pCreateInfo, XGL_EVENT* pEvent) |
| 597 | { |
| 598 | XGL_RESULT result = nextTable.CreateEvent(device, pCreateInfo, pEvent); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 599 | printf("xglCreateEvent(device = %p, pCreateInfo = %p, pEvent = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pEvent, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 600 | char *pTmpStr; |
| 601 | if (pCreateInfo) { |
| 602 | pTmpStr = xgl_print_xgl_event_create_info(pCreateInfo, " "); |
| 603 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 604 | free(pTmpStr); |
| 605 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 606 | return result; |
| 607 | } |
| 608 | |
| 609 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetEventStatus(XGL_EVENT event) |
| 610 | { |
| 611 | XGL_RESULT result = nextTable.GetEventStatus(event); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 612 | printf("xglGetEventStatus(event = %p) = %s\n", (void*)event, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 613 | return result; |
| 614 | } |
| 615 | |
| 616 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglSetEvent(XGL_EVENT event) |
| 617 | { |
| 618 | XGL_RESULT result = nextTable.SetEvent(event); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 619 | printf("xglSetEvent(event = %p) = %s\n", (void*)event, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 620 | return result; |
| 621 | } |
| 622 | |
| 623 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglResetEvent(XGL_EVENT event) |
| 624 | { |
| 625 | XGL_RESULT result = nextTable.ResetEvent(event); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 626 | printf("xglResetEvent(event = %p) = %s\n", (void*)event, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 627 | return result; |
| 628 | } |
| 629 | |
| 630 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateQueryPool(XGL_DEVICE device, const XGL_QUERY_POOL_CREATE_INFO* pCreateInfo, XGL_QUERY_POOL* pQueryPool) |
| 631 | { |
| 632 | XGL_RESULT result = nextTable.CreateQueryPool(device, pCreateInfo, pQueryPool); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 633 | printf("xglCreateQueryPool(device = %p, pCreateInfo = %p, pQueryPool = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pQueryPool, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 634 | char *pTmpStr; |
| 635 | if (pCreateInfo) { |
| 636 | pTmpStr = xgl_print_xgl_query_pool_create_info(pCreateInfo, " "); |
| 637 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 638 | free(pTmpStr); |
| 639 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 640 | return result; |
| 641 | } |
| 642 | |
| 643 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetQueryPoolResults(XGL_QUERY_POOL queryPool, XGL_UINT startQuery, XGL_UINT queryCount, XGL_SIZE* pDataSize, XGL_VOID* pData) |
| 644 | { |
| 645 | XGL_RESULT result = nextTable.GetQueryPoolResults(queryPool, startQuery, queryCount, pDataSize, pData); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 646 | printf("xglGetQueryPoolResults(queryPool = %p, startQuery = %i, queryCount = %i, pDataSize = %i, pData = %p) = %s\n", (void*)queryPool, startQuery, queryCount, *pDataSize, (void*)pData, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 647 | return result; |
| 648 | } |
| 649 | |
| 650 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetFormatInfo(XGL_DEVICE device, XGL_FORMAT format, XGL_FORMAT_INFO_TYPE infoType, XGL_SIZE* pDataSize, XGL_VOID* pData) |
| 651 | { |
| 652 | XGL_RESULT result = nextTable.GetFormatInfo(device, format, infoType, pDataSize, pData); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 653 | printf("xglGetFormatInfo(device = %p, format.channelFormat = %s, format.numericFormat = %s, infoType = %i, pDataSize = %i, pData = %p) = %s\n", (void*)device, string_XGL_CHANNEL_FORMAT(format.channelFormat), string_XGL_NUM_FORMAT(format.numericFormat), infoType, *pDataSize, (void*)pData, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 654 | return result; |
| 655 | } |
| 656 | |
| 657 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateImage(XGL_DEVICE device, const XGL_IMAGE_CREATE_INFO* pCreateInfo, XGL_IMAGE* pImage) |
| 658 | { |
| 659 | XGL_RESULT result = nextTable.CreateImage(device, pCreateInfo, pImage); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 660 | printf("xglCreateImage(device = %p, pCreateInfo = %p, pImage = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pImage, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 661 | char *pTmpStr; |
| 662 | if (pCreateInfo) { |
| 663 | pTmpStr = xgl_print_xgl_image_create_info(pCreateInfo, " "); |
| 664 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 665 | free(pTmpStr); |
| 666 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 667 | return result; |
| 668 | } |
| 669 | |
| 670 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetImageSubresourceInfo(XGL_IMAGE image, const XGL_IMAGE_SUBRESOURCE* pSubresource, XGL_SUBRESOURCE_INFO_TYPE infoType, XGL_SIZE* pDataSize, XGL_VOID* pData) |
| 671 | { |
| 672 | XGL_RESULT result = nextTable.GetImageSubresourceInfo(image, pSubresource, infoType, pDataSize, pData); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 673 | printf("xglGetImageSubresourceInfo(image = %p, pSubresource = %p, infoType = %s, pDataSize = %i, pData = %p) = %s\n", (void*)image, (void*)pSubresource, string_XGL_SUBRESOURCE_INFO_TYPE(infoType), *pDataSize, (void*)pData, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 674 | char *pTmpStr; |
| 675 | if (pSubresource) { |
| 676 | pTmpStr = xgl_print_xgl_image_subresource(pSubresource, " "); |
| 677 | printf(" pSubresource (%p)\n%s\n", (void*)pSubresource, pTmpStr); |
| 678 | free(pTmpStr); |
| 679 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 680 | return result; |
| 681 | } |
| 682 | |
| 683 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateImageView(XGL_DEVICE device, const XGL_IMAGE_VIEW_CREATE_INFO* pCreateInfo, XGL_IMAGE_VIEW* pView) |
| 684 | { |
| 685 | XGL_RESULT result = nextTable.CreateImageView(device, pCreateInfo, pView); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 686 | printf("xglCreateImageView(device = %p, pCreateInfo = %p, pView = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pView, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 687 | char *pTmpStr; |
| 688 | if (pCreateInfo) { |
| 689 | pTmpStr = xgl_print_xgl_image_view_create_info(pCreateInfo, " "); |
| 690 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 691 | free(pTmpStr); |
| 692 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 693 | return result; |
| 694 | } |
| 695 | |
| 696 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateColorAttachmentView(XGL_DEVICE device, const XGL_COLOR_ATTACHMENT_VIEW_CREATE_INFO* pCreateInfo, XGL_COLOR_ATTACHMENT_VIEW* pView) |
| 697 | { |
| 698 | XGL_RESULT result = nextTable.CreateColorAttachmentView(device, pCreateInfo, pView); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 699 | printf("xglCreateColorAttachmentView(device = %p, pCreateInfo = %p, pView = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pView, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 700 | char *pTmpStr; |
| 701 | if (pCreateInfo) { |
| 702 | pTmpStr = xgl_print_xgl_color_attachment_view_create_info(pCreateInfo, " "); |
| 703 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 704 | free(pTmpStr); |
| 705 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 706 | return result; |
| 707 | } |
| 708 | |
| 709 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateDepthStencilView(XGL_DEVICE device, const XGL_DEPTH_STENCIL_VIEW_CREATE_INFO* pCreateInfo, XGL_DEPTH_STENCIL_VIEW* pView) |
| 710 | { |
| 711 | XGL_RESULT result = nextTable.CreateDepthStencilView(device, pCreateInfo, pView); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 712 | printf("xglCreateDepthStencilView(device = %p, pCreateInfo = %p, pView = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pView, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 713 | char *pTmpStr; |
| 714 | if (pCreateInfo) { |
| 715 | pTmpStr = xgl_print_xgl_depth_stencil_view_create_info(pCreateInfo, " "); |
| 716 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 717 | free(pTmpStr); |
| 718 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 719 | return result; |
| 720 | } |
| 721 | |
| 722 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateShader(XGL_DEVICE device, const XGL_SHADER_CREATE_INFO* pCreateInfo, XGL_SHADER* pShader) |
| 723 | { |
| 724 | XGL_RESULT result = nextTable.CreateShader(device, pCreateInfo, pShader); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 725 | printf("xglCreateShader(device = %p, pCreateInfo = %p, pShader = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pShader, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 726 | char *pTmpStr; |
| 727 | if (pCreateInfo) { |
| 728 | pTmpStr = xgl_print_xgl_shader_create_info(pCreateInfo, " "); |
| 729 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 730 | free(pTmpStr); |
| 731 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 732 | return result; |
| 733 | } |
| 734 | |
| 735 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateGraphicsPipeline(XGL_DEVICE device, const XGL_GRAPHICS_PIPELINE_CREATE_INFO* pCreateInfo, XGL_PIPELINE* pPipeline) |
| 736 | { |
| 737 | XGL_RESULT result = nextTable.CreateGraphicsPipeline(device, pCreateInfo, pPipeline); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 738 | printf("xglCreateGraphicsPipeline(device = %p, pCreateInfo = %p, pPipeline = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pPipeline, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 739 | char *pTmpStr; |
| 740 | if (pCreateInfo) { |
| 741 | pTmpStr = xgl_print_xgl_graphics_pipeline_create_info(pCreateInfo, " "); |
| 742 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 743 | free(pTmpStr); |
| 744 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 745 | return result; |
| 746 | } |
| 747 | |
| 748 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateComputePipeline(XGL_DEVICE device, const XGL_COMPUTE_PIPELINE_CREATE_INFO* pCreateInfo, XGL_PIPELINE* pPipeline) |
| 749 | { |
| 750 | XGL_RESULT result = nextTable.CreateComputePipeline(device, pCreateInfo, pPipeline); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 751 | printf("xglCreateComputePipeline(device = %p, pCreateInfo = %p, pPipeline = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pPipeline, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 752 | char *pTmpStr; |
| 753 | if (pCreateInfo) { |
| 754 | pTmpStr = xgl_print_xgl_compute_pipeline_create_info(pCreateInfo, " "); |
| 755 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 756 | free(pTmpStr); |
| 757 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 758 | return result; |
| 759 | } |
| 760 | |
| 761 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglStorePipeline(XGL_PIPELINE pipeline, XGL_SIZE* pDataSize, XGL_VOID* pData) |
| 762 | { |
| 763 | XGL_RESULT result = nextTable.StorePipeline(pipeline, pDataSize, pData); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 764 | printf("xglStorePipeline(pipeline = %p, pDataSize = %i, pData = %p) = %s\n", (void*)pipeline, *pDataSize, (void*)pData, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 765 | return result; |
| 766 | } |
| 767 | |
| 768 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglLoadPipeline(XGL_DEVICE device, XGL_SIZE dataSize, const XGL_VOID* pData, XGL_PIPELINE* pPipeline) |
| 769 | { |
| 770 | XGL_RESULT result = nextTable.LoadPipeline(device, dataSize, pData, pPipeline); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 771 | printf("xglLoadPipeline(device = %p, dataSize = %i, pData = %p, pPipeline = %p) = %s\n", (void*)device, dataSize, (void*)pData, (void*)pPipeline, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 772 | return result; |
| 773 | } |
| 774 | |
| 775 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreatePipelineDelta(XGL_DEVICE device, XGL_PIPELINE p1, XGL_PIPELINE p2, XGL_PIPELINE_DELTA* delta) |
| 776 | { |
| 777 | XGL_RESULT result = nextTable.CreatePipelineDelta(device, p1, p2, delta); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 778 | printf("xglCreatePipelineDelta(device = %p, p1 = %p, p2 = %p, delta = %p) = %s\n", (void*)device, (void*)p1, (void*)p2, (void*)*delta, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 779 | return result; |
| 780 | } |
| 781 | |
| 782 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateSampler(XGL_DEVICE device, const XGL_SAMPLER_CREATE_INFO* pCreateInfo, XGL_SAMPLER* pSampler) |
| 783 | { |
| 784 | XGL_RESULT result = nextTable.CreateSampler(device, pCreateInfo, pSampler); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 785 | printf("xglCreateSampler(device = %p, pCreateInfo = %p, pSampler = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pSampler, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 786 | char *pTmpStr; |
| 787 | if (pCreateInfo) { |
| 788 | pTmpStr = xgl_print_xgl_sampler_create_info(pCreateInfo, " "); |
| 789 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 790 | free(pTmpStr); |
| 791 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 792 | return result; |
| 793 | } |
| 794 | |
| 795 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateDescriptorSet(XGL_DEVICE device, const XGL_DESCRIPTOR_SET_CREATE_INFO* pCreateInfo, XGL_DESCRIPTOR_SET* pDescriptorSet) |
| 796 | { |
| 797 | XGL_RESULT result = nextTable.CreateDescriptorSet(device, pCreateInfo, pDescriptorSet); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 798 | printf("xglCreateDescriptorSet(device = %p, pCreateInfo = %p, pDescriptorSet = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pDescriptorSet, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 799 | char *pTmpStr; |
| 800 | if (pCreateInfo) { |
| 801 | pTmpStr = xgl_print_xgl_descriptor_set_create_info(pCreateInfo, " "); |
| 802 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 803 | free(pTmpStr); |
| 804 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 805 | return result; |
| 806 | } |
| 807 | |
| 808 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglBeginDescriptorSetUpdate(XGL_DESCRIPTOR_SET descriptorSet) |
| 809 | { |
| 810 | nextTable.BeginDescriptorSetUpdate(descriptorSet); |
| 811 | printf("xglBeginDescriptorSetUpdate(descriptorSet = %p)\n", (void*)descriptorSet); |
| 812 | } |
| 813 | |
| 814 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglEndDescriptorSetUpdate(XGL_DESCRIPTOR_SET descriptorSet) |
| 815 | { |
| 816 | nextTable.EndDescriptorSetUpdate(descriptorSet); |
| 817 | printf("xglEndDescriptorSetUpdate(descriptorSet = %p)\n", (void*)descriptorSet); |
| 818 | } |
| 819 | |
| 820 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglAttachSamplerDescriptors(XGL_DESCRIPTOR_SET descriptorSet, XGL_UINT startSlot, XGL_UINT slotCount, const XGL_SAMPLER* pSamplers) |
| 821 | { |
| 822 | nextTable.AttachSamplerDescriptors(descriptorSet, startSlot, slotCount, pSamplers); |
| 823 | printf("xglAttachSamplerDescriptors(descriptorSet = %p, startSlot = %i, slotCount = %i, pSamplers = %p)\n", (void*)descriptorSet, startSlot, slotCount, (void*)pSamplers); |
| 824 | } |
| 825 | |
| 826 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglAttachImageViewDescriptors(XGL_DESCRIPTOR_SET descriptorSet, XGL_UINT startSlot, XGL_UINT slotCount, const XGL_IMAGE_VIEW_ATTACH_INFO* pImageViews) |
| 827 | { |
| 828 | nextTable.AttachImageViewDescriptors(descriptorSet, startSlot, slotCount, pImageViews); |
| 829 | printf("xglAttachImageViewDescriptors(descriptorSet = %p, startSlot = %i, slotCount = %i, pImageViews = %p)\n", (void*)descriptorSet, startSlot, slotCount, (void*)pImageViews); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 830 | char *pTmpStr; |
| 831 | if (pImageViews) { |
| 832 | pTmpStr = xgl_print_xgl_image_view_attach_info(pImageViews, " "); |
| 833 | printf(" pImageViews (%p)\n%s\n", (void*)pImageViews, pTmpStr); |
| 834 | free(pTmpStr); |
| 835 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 836 | } |
| 837 | |
| 838 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglAttachMemoryViewDescriptors(XGL_DESCRIPTOR_SET descriptorSet, XGL_UINT startSlot, XGL_UINT slotCount, const XGL_MEMORY_VIEW_ATTACH_INFO* pMemViews) |
| 839 | { |
| 840 | nextTable.AttachMemoryViewDescriptors(descriptorSet, startSlot, slotCount, pMemViews); |
| 841 | printf("xglAttachMemoryViewDescriptors(descriptorSet = %p, startSlot = %i, slotCount = %i, pMemViews = %p)\n", (void*)descriptorSet, startSlot, slotCount, (void*)pMemViews); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 842 | char *pTmpStr; |
| 843 | if (pMemViews) { |
| 844 | pTmpStr = xgl_print_xgl_memory_view_attach_info(pMemViews, " "); |
| 845 | printf(" pMemViews (%p)\n%s\n", (void*)pMemViews, pTmpStr); |
| 846 | free(pTmpStr); |
| 847 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 848 | } |
| 849 | |
| 850 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglAttachNestedDescriptors(XGL_DESCRIPTOR_SET descriptorSet, XGL_UINT startSlot, XGL_UINT slotCount, const XGL_DESCRIPTOR_SET_ATTACH_INFO* pNestedDescriptorSets) |
| 851 | { |
| 852 | nextTable.AttachNestedDescriptors(descriptorSet, startSlot, slotCount, pNestedDescriptorSets); |
| 853 | printf("xglAttachNestedDescriptors(descriptorSet = %p, startSlot = %i, slotCount = %i, pNestedDescriptorSets = %p)\n", (void*)descriptorSet, startSlot, slotCount, (void*)pNestedDescriptorSets); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 854 | char *pTmpStr; |
| 855 | if (pNestedDescriptorSets) { |
| 856 | pTmpStr = xgl_print_xgl_descriptor_set_attach_info(pNestedDescriptorSets, " "); |
| 857 | printf(" pNestedDescriptorSets (%p)\n%s\n", (void*)pNestedDescriptorSets, pTmpStr); |
| 858 | free(pTmpStr); |
| 859 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 860 | } |
| 861 | |
| 862 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglClearDescriptorSetSlots(XGL_DESCRIPTOR_SET descriptorSet, XGL_UINT startSlot, XGL_UINT slotCount) |
| 863 | { |
| 864 | nextTable.ClearDescriptorSetSlots(descriptorSet, startSlot, slotCount); |
| 865 | printf("xglClearDescriptorSetSlots(descriptorSet = %p, startSlot = %i, slotCount = %i)\n", (void*)descriptorSet, startSlot, slotCount); |
| 866 | } |
| 867 | |
| 868 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateViewportState(XGL_DEVICE device, const XGL_VIEWPORT_STATE_CREATE_INFO* pCreateInfo, XGL_VIEWPORT_STATE_OBJECT* pState) |
| 869 | { |
| 870 | XGL_RESULT result = nextTable.CreateViewportState(device, pCreateInfo, pState); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 871 | printf("xglCreateViewportState(device = %p, pCreateInfo = %p, pState = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pState, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 872 | char *pTmpStr; |
| 873 | if (pCreateInfo) { |
| 874 | pTmpStr = xgl_print_xgl_viewport_state_create_info(pCreateInfo, " "); |
| 875 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 876 | free(pTmpStr); |
| 877 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 878 | return result; |
| 879 | } |
| 880 | |
| 881 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateRasterState(XGL_DEVICE device, const XGL_RASTER_STATE_CREATE_INFO* pCreateInfo, XGL_RASTER_STATE_OBJECT* pState) |
| 882 | { |
| 883 | XGL_RESULT result = nextTable.CreateRasterState(device, pCreateInfo, pState); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 884 | printf("xglCreateRasterState(device = %p, pCreateInfo = %p, pState = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pState, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 885 | char *pTmpStr; |
| 886 | if (pCreateInfo) { |
| 887 | pTmpStr = xgl_print_xgl_raster_state_create_info(pCreateInfo, " "); |
| 888 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 889 | free(pTmpStr); |
| 890 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 891 | return result; |
| 892 | } |
| 893 | |
| 894 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateMsaaState(XGL_DEVICE device, const XGL_MSAA_STATE_CREATE_INFO* pCreateInfo, XGL_MSAA_STATE_OBJECT* pState) |
| 895 | { |
| 896 | XGL_RESULT result = nextTable.CreateMsaaState(device, pCreateInfo, pState); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 897 | printf("xglCreateMsaaState(device = %p, pCreateInfo = %p, pState = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pState, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 898 | char *pTmpStr; |
| 899 | if (pCreateInfo) { |
| 900 | pTmpStr = xgl_print_xgl_msaa_state_create_info(pCreateInfo, " "); |
| 901 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 902 | free(pTmpStr); |
| 903 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 904 | return result; |
| 905 | } |
| 906 | |
| 907 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateColorBlendState(XGL_DEVICE device, const XGL_COLOR_BLEND_STATE_CREATE_INFO* pCreateInfo, XGL_COLOR_BLEND_STATE_OBJECT* pState) |
| 908 | { |
| 909 | XGL_RESULT result = nextTable.CreateColorBlendState(device, pCreateInfo, pState); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 910 | printf("xglCreateColorBlendState(device = %p, pCreateInfo = %p, pState = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pState, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 911 | char *pTmpStr; |
| 912 | if (pCreateInfo) { |
| 913 | pTmpStr = xgl_print_xgl_color_blend_state_create_info(pCreateInfo, " "); |
| 914 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 915 | free(pTmpStr); |
| 916 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 917 | return result; |
| 918 | } |
| 919 | |
| 920 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateDepthStencilState(XGL_DEVICE device, const XGL_DEPTH_STENCIL_STATE_CREATE_INFO* pCreateInfo, XGL_DEPTH_STENCIL_STATE_OBJECT* pState) |
| 921 | { |
| 922 | XGL_RESULT result = nextTable.CreateDepthStencilState(device, pCreateInfo, pState); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 923 | printf("xglCreateDepthStencilState(device = %p, pCreateInfo = %p, pState = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pState, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 924 | char *pTmpStr; |
| 925 | if (pCreateInfo) { |
| 926 | pTmpStr = xgl_print_xgl_depth_stencil_state_create_info(pCreateInfo, " "); |
| 927 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 928 | free(pTmpStr); |
| 929 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 930 | return result; |
| 931 | } |
| 932 | |
| 933 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateCommandBuffer(XGL_DEVICE device, const XGL_CMD_BUFFER_CREATE_INFO* pCreateInfo, XGL_CMD_BUFFER* pCmdBuffer) |
| 934 | { |
| 935 | XGL_RESULT result = nextTable.CreateCommandBuffer(device, pCreateInfo, pCmdBuffer); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 936 | printf("xglCreateCommandBuffer(device = %p, pCreateInfo = %p, pCmdBuffer = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pCmdBuffer, string_XGL_RESULT(result)); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 937 | char *pTmpStr; |
| 938 | if (pCreateInfo) { |
| 939 | pTmpStr = xgl_print_xgl_cmd_buffer_create_info(pCreateInfo, " "); |
| 940 | printf(" pCreateInfo (%p)\n%s\n", (void*)pCreateInfo, pTmpStr); |
| 941 | free(pTmpStr); |
| 942 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 943 | return result; |
| 944 | } |
| 945 | |
| 946 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglBeginCommandBuffer(XGL_CMD_BUFFER cmdBuffer, XGL_FLAGS flags) |
| 947 | { |
| 948 | XGL_RESULT result = nextTable.BeginCommandBuffer(cmdBuffer, flags); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 949 | printf("xglBeginCommandBuffer(cmdBuffer = %p, flags = %i) = %s\n", (void*)cmdBuffer, flags, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 950 | return result; |
| 951 | } |
| 952 | |
| 953 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglEndCommandBuffer(XGL_CMD_BUFFER cmdBuffer) |
| 954 | { |
| 955 | XGL_RESULT result = nextTable.EndCommandBuffer(cmdBuffer); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 956 | printf("xglEndCommandBuffer(cmdBuffer = %p) = %s\n", (void*)cmdBuffer, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 957 | return result; |
| 958 | } |
| 959 | |
| 960 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglResetCommandBuffer(XGL_CMD_BUFFER cmdBuffer) |
| 961 | { |
| 962 | XGL_RESULT result = nextTable.ResetCommandBuffer(cmdBuffer); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 963 | printf("xglResetCommandBuffer(cmdBuffer = %p) = %s\n", (void*)cmdBuffer, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 964 | return result; |
| 965 | } |
| 966 | |
| 967 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdBindPipeline(XGL_CMD_BUFFER cmdBuffer, XGL_PIPELINE_BIND_POINT pipelineBindPoint, XGL_PIPELINE pipeline) |
| 968 | { |
| 969 | nextTable.CmdBindPipeline(cmdBuffer, pipelineBindPoint, pipeline); |
| 970 | printf("xglCmdBindPipeline(cmdBuffer = %p, pipelineBindPoint = %i, pipeline = %p)\n", (void*)cmdBuffer, pipelineBindPoint, (void*)pipeline); |
| 971 | } |
| 972 | |
| 973 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdBindPipelineDelta(XGL_CMD_BUFFER cmdBuffer, XGL_PIPELINE_BIND_POINT pipelineBindPoint, XGL_PIPELINE_DELTA delta) |
| 974 | { |
| 975 | nextTable.CmdBindPipelineDelta(cmdBuffer, pipelineBindPoint, delta); |
| 976 | printf("xglCmdBindPipelineDelta(cmdBuffer = %p, pipelineBindPoint = %i, delta = %p)\n", (void*)cmdBuffer, pipelineBindPoint, (void*)delta); |
| 977 | } |
| 978 | |
| 979 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdBindStateObject(XGL_CMD_BUFFER cmdBuffer, XGL_STATE_BIND_POINT stateBindPoint, XGL_STATE_OBJECT state) |
| 980 | { |
| 981 | nextTable.CmdBindStateObject(cmdBuffer, stateBindPoint, state); |
| 982 | printf("xglCmdBindStateObject(cmdBuffer = %p, stateBindPoint = %i, state = %p)\n", (void*)cmdBuffer, stateBindPoint, (void*)state); |
| 983 | } |
| 984 | |
| 985 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdBindDescriptorSet(XGL_CMD_BUFFER cmdBuffer, XGL_PIPELINE_BIND_POINT pipelineBindPoint, XGL_UINT index, XGL_DESCRIPTOR_SET descriptorSet, XGL_UINT slotOffset) |
| 986 | { |
| 987 | nextTable.CmdBindDescriptorSet(cmdBuffer, pipelineBindPoint, index, descriptorSet, slotOffset); |
| 988 | printf("xglCmdBindDescriptorSet(cmdBuffer = %p, pipelineBindPoint = %i, index = %i, descriptorSet = %p, slotOffset = %i)\n", (void*)cmdBuffer, pipelineBindPoint, index, (void*)descriptorSet, slotOffset); |
| 989 | } |
| 990 | |
| 991 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdBindDynamicMemoryView(XGL_CMD_BUFFER cmdBuffer, XGL_PIPELINE_BIND_POINT pipelineBindPoint, const XGL_MEMORY_VIEW_ATTACH_INFO* pMemView) |
| 992 | { |
| 993 | nextTable.CmdBindDynamicMemoryView(cmdBuffer, pipelineBindPoint, pMemView); |
| 994 | printf("xglCmdBindDynamicMemoryView(cmdBuffer = %p, pipelineBindPoint = %i, pMemView = %p)\n", (void*)cmdBuffer, pipelineBindPoint, (void*)pMemView); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 995 | char *pTmpStr; |
| 996 | if (pMemView) { |
| 997 | pTmpStr = xgl_print_xgl_memory_view_attach_info(pMemView, " "); |
| 998 | printf(" pMemView (%p)\n%s\n", (void*)pMemView, pTmpStr); |
| 999 | free(pTmpStr); |
| 1000 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1001 | } |
| 1002 | |
| 1003 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdBindIndexData(XGL_CMD_BUFFER cmdBuffer, XGL_GPU_MEMORY mem, XGL_GPU_SIZE offset, XGL_INDEX_TYPE indexType) |
| 1004 | { |
| 1005 | nextTable.CmdBindIndexData(cmdBuffer, mem, offset, indexType); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 1006 | printf("xglCmdBindIndexData(cmdBuffer = %p, mem = %p, offset = %i, indexType = %s)\n", (void*)cmdBuffer, (void*)mem, offset, string_XGL_INDEX_TYPE(indexType)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1007 | } |
| 1008 | |
| 1009 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdBindAttachments(XGL_CMD_BUFFER cmdBuffer, XGL_UINT colorAttachmentCount, const XGL_COLOR_ATTACHMENT_BIND_INFO* pColorAttachments, const XGL_DEPTH_STENCIL_BIND_INFO* pDepthStencilAttachment) |
| 1010 | { |
| 1011 | nextTable.CmdBindAttachments(cmdBuffer, colorAttachmentCount, pColorAttachments, pDepthStencilAttachment); |
| 1012 | printf("xglCmdBindAttachments(cmdBuffer = %p, colorAttachmentCount = %i, pColorAttachments = %p, pDepthStencilAttachment = %p)\n", (void*)cmdBuffer, colorAttachmentCount, (void*)pColorAttachments, (void*)pDepthStencilAttachment); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 1013 | char *pTmpStr; |
| 1014 | if (pColorAttachments) { |
| 1015 | pTmpStr = xgl_print_xgl_color_attachment_bind_info(pColorAttachments, " "); |
| 1016 | printf(" pColorAttachments (%p)\n%s\n", (void*)pColorAttachments, pTmpStr); |
| 1017 | free(pTmpStr); |
| 1018 | } |
| 1019 | if (pDepthStencilAttachment) { |
| 1020 | pTmpStr = xgl_print_xgl_depth_stencil_bind_info(pDepthStencilAttachment, " "); |
| 1021 | printf(" pDepthStencilAttachment (%p)\n%s\n", (void*)pDepthStencilAttachment, pTmpStr); |
| 1022 | free(pTmpStr); |
| 1023 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1024 | } |
| 1025 | |
| 1026 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdPrepareMemoryRegions(XGL_CMD_BUFFER cmdBuffer, XGL_UINT transitionCount, const XGL_MEMORY_STATE_TRANSITION* pStateTransitions) |
| 1027 | { |
| 1028 | nextTable.CmdPrepareMemoryRegions(cmdBuffer, transitionCount, pStateTransitions); |
| 1029 | printf("xglCmdPrepareMemoryRegions(cmdBuffer = %p, transitionCount = %i, pStateTransitions = %p)\n", (void*)cmdBuffer, transitionCount, (void*)pStateTransitions); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 1030 | char *pTmpStr; |
| 1031 | if (pStateTransitions) { |
| 1032 | pTmpStr = xgl_print_xgl_memory_state_transition(pStateTransitions, " "); |
| 1033 | printf(" pStateTransitions (%p)\n%s\n", (void*)pStateTransitions, pTmpStr); |
| 1034 | free(pTmpStr); |
| 1035 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1036 | } |
| 1037 | |
| 1038 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdPrepareImages(XGL_CMD_BUFFER cmdBuffer, XGL_UINT transitionCount, const XGL_IMAGE_STATE_TRANSITION* pStateTransitions) |
| 1039 | { |
| 1040 | nextTable.CmdPrepareImages(cmdBuffer, transitionCount, pStateTransitions); |
| 1041 | printf("xglCmdPrepareImages(cmdBuffer = %p, transitionCount = %i, pStateTransitions = %p)\n", (void*)cmdBuffer, transitionCount, (void*)pStateTransitions); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 1042 | char *pTmpStr; |
| 1043 | if (pStateTransitions) { |
| 1044 | pTmpStr = xgl_print_xgl_image_state_transition(pStateTransitions, " "); |
| 1045 | printf(" pStateTransitions (%p)\n%s\n", (void*)pStateTransitions, pTmpStr); |
| 1046 | free(pTmpStr); |
| 1047 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1048 | } |
| 1049 | |
| 1050 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdDraw(XGL_CMD_BUFFER cmdBuffer, XGL_UINT firstVertex, XGL_UINT vertexCount, XGL_UINT firstInstance, XGL_UINT instanceCount) |
| 1051 | { |
| 1052 | nextTable.CmdDraw(cmdBuffer, firstVertex, vertexCount, firstInstance, instanceCount); |
| 1053 | printf("xglCmdDraw(cmdBuffer = %p, firstVertex = %i, vertexCount = %i, firstInstance = %i, instanceCount = %i)\n", (void*)cmdBuffer, firstVertex, vertexCount, firstInstance, instanceCount); |
| 1054 | } |
| 1055 | |
| 1056 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdDrawIndexed(XGL_CMD_BUFFER cmdBuffer, XGL_UINT firstIndex, XGL_UINT indexCount, XGL_INT vertexOffset, XGL_UINT firstInstance, XGL_UINT instanceCount) |
| 1057 | { |
| 1058 | nextTable.CmdDrawIndexed(cmdBuffer, firstIndex, indexCount, vertexOffset, firstInstance, instanceCount); |
| 1059 | printf("xglCmdDrawIndexed(cmdBuffer = %p, firstIndex = %i, indexCount = %i, vertexOffset = %i, firstInstance = %i, instanceCount = %i)\n", (void*)cmdBuffer, firstIndex, indexCount, vertexOffset, firstInstance, instanceCount); |
| 1060 | } |
| 1061 | |
| 1062 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdDrawIndirect(XGL_CMD_BUFFER cmdBuffer, XGL_GPU_MEMORY mem, XGL_GPU_SIZE offset, XGL_UINT32 count, XGL_UINT32 stride) |
| 1063 | { |
| 1064 | nextTable.CmdDrawIndirect(cmdBuffer, mem, offset, count, stride); |
| 1065 | printf("xglCmdDrawIndirect(cmdBuffer = %p, mem = %p, offset = %i, count = %i, stride = %i)\n", (void*)cmdBuffer, (void*)mem, offset, count, stride); |
| 1066 | } |
| 1067 | |
| 1068 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdDrawIndexedIndirect(XGL_CMD_BUFFER cmdBuffer, XGL_GPU_MEMORY mem, XGL_GPU_SIZE offset, XGL_UINT32 count, XGL_UINT32 stride) |
| 1069 | { |
| 1070 | nextTable.CmdDrawIndexedIndirect(cmdBuffer, mem, offset, count, stride); |
| 1071 | printf("xglCmdDrawIndexedIndirect(cmdBuffer = %p, mem = %p, offset = %i, count = %i, stride = %i)\n", (void*)cmdBuffer, (void*)mem, offset, count, stride); |
| 1072 | } |
| 1073 | |
| 1074 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdDispatch(XGL_CMD_BUFFER cmdBuffer, XGL_UINT x, XGL_UINT y, XGL_UINT z) |
| 1075 | { |
| 1076 | nextTable.CmdDispatch(cmdBuffer, x, y, z); |
| 1077 | printf("xglCmdDispatch(cmdBuffer = %p, x = %i, y = %i, z = %i)\n", (void*)cmdBuffer, x, y, z); |
| 1078 | } |
| 1079 | |
| 1080 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdDispatchIndirect(XGL_CMD_BUFFER cmdBuffer, XGL_GPU_MEMORY mem, XGL_GPU_SIZE offset) |
| 1081 | { |
| 1082 | nextTable.CmdDispatchIndirect(cmdBuffer, mem, offset); |
| 1083 | printf("xglCmdDispatchIndirect(cmdBuffer = %p, mem = %p, offset = %i)\n", (void*)cmdBuffer, (void*)mem, offset); |
| 1084 | } |
| 1085 | |
| 1086 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdCopyMemory(XGL_CMD_BUFFER cmdBuffer, XGL_GPU_MEMORY srcMem, XGL_GPU_MEMORY destMem, XGL_UINT regionCount, const XGL_MEMORY_COPY* pRegions) |
| 1087 | { |
| 1088 | nextTable.CmdCopyMemory(cmdBuffer, srcMem, destMem, regionCount, pRegions); |
| 1089 | printf("xglCmdCopyMemory(cmdBuffer = %p, srcMem = %p, destMem = %p, regionCount = %i, pRegions = %p)\n", (void*)cmdBuffer, (void*)srcMem, (void*)destMem, regionCount, (void*)pRegions); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 1090 | char *pTmpStr; |
| 1091 | if (pRegions) { |
| 1092 | pTmpStr = xgl_print_xgl_memory_copy(pRegions, " "); |
| 1093 | printf(" pRegions (%p)\n%s\n", (void*)pRegions, pTmpStr); |
| 1094 | free(pTmpStr); |
| 1095 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1096 | } |
| 1097 | |
| 1098 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdCopyImage(XGL_CMD_BUFFER cmdBuffer, XGL_IMAGE srcImage, XGL_IMAGE destImage, XGL_UINT regionCount, const XGL_IMAGE_COPY* pRegions) |
| 1099 | { |
| 1100 | nextTable.CmdCopyImage(cmdBuffer, srcImage, destImage, regionCount, pRegions); |
| 1101 | printf("xglCmdCopyImage(cmdBuffer = %p, srcImage = %p, destImage = %p, regionCount = %i, pRegions = %p)\n", (void*)cmdBuffer, (void*)srcImage, (void*)destImage, regionCount, (void*)pRegions); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 1102 | char *pTmpStr; |
| 1103 | if (pRegions) { |
| 1104 | pTmpStr = xgl_print_xgl_image_copy(pRegions, " "); |
| 1105 | printf(" pRegions (%p)\n%s\n", (void*)pRegions, pTmpStr); |
| 1106 | free(pTmpStr); |
| 1107 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1108 | } |
| 1109 | |
| 1110 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdCopyMemoryToImage(XGL_CMD_BUFFER cmdBuffer, XGL_GPU_MEMORY srcMem, XGL_IMAGE destImage, XGL_UINT regionCount, const XGL_MEMORY_IMAGE_COPY* pRegions) |
| 1111 | { |
| 1112 | nextTable.CmdCopyMemoryToImage(cmdBuffer, srcMem, destImage, regionCount, pRegions); |
| 1113 | printf("xglCmdCopyMemoryToImage(cmdBuffer = %p, srcMem = %p, destImage = %p, regionCount = %i, pRegions = %p)\n", (void*)cmdBuffer, (void*)srcMem, (void*)destImage, regionCount, (void*)pRegions); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 1114 | char *pTmpStr; |
| 1115 | if (pRegions) { |
| 1116 | pTmpStr = xgl_print_xgl_memory_image_copy(pRegions, " "); |
| 1117 | printf(" pRegions (%p)\n%s\n", (void*)pRegions, pTmpStr); |
| 1118 | free(pTmpStr); |
| 1119 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1120 | } |
| 1121 | |
| 1122 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdCopyImageToMemory(XGL_CMD_BUFFER cmdBuffer, XGL_IMAGE srcImage, XGL_GPU_MEMORY destMem, XGL_UINT regionCount, const XGL_MEMORY_IMAGE_COPY* pRegions) |
| 1123 | { |
| 1124 | nextTable.CmdCopyImageToMemory(cmdBuffer, srcImage, destMem, regionCount, pRegions); |
| 1125 | printf("xglCmdCopyImageToMemory(cmdBuffer = %p, srcImage = %p, destMem = %p, regionCount = %i, pRegions = %p)\n", (void*)cmdBuffer, (void*)srcImage, (void*)destMem, regionCount, (void*)pRegions); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 1126 | char *pTmpStr; |
| 1127 | if (pRegions) { |
| 1128 | pTmpStr = xgl_print_xgl_memory_image_copy(pRegions, " "); |
| 1129 | printf(" pRegions (%p)\n%s\n", (void*)pRegions, pTmpStr); |
| 1130 | free(pTmpStr); |
| 1131 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1132 | } |
| 1133 | |
| 1134 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdCloneImageData(XGL_CMD_BUFFER cmdBuffer, XGL_IMAGE srcImage, XGL_IMAGE_STATE srcImageState, XGL_IMAGE destImage, XGL_IMAGE_STATE destImageState) |
| 1135 | { |
| 1136 | nextTable.CmdCloneImageData(cmdBuffer, srcImage, srcImageState, destImage, destImageState); |
| 1137 | printf("xglCmdCloneImageData(cmdBuffer = %p, srcImage = %p, srcImageState = %p, destImage = %p, destImageState = %p)\n", (void*)cmdBuffer, (void*)srcImage, (void*)srcImageState, (void*)destImage, (void*)destImageState); |
| 1138 | } |
| 1139 | |
| 1140 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdUpdateMemory(XGL_CMD_BUFFER cmdBuffer, XGL_GPU_MEMORY destMem, XGL_GPU_SIZE destOffset, XGL_GPU_SIZE dataSize, const XGL_UINT32* pData) |
| 1141 | { |
| 1142 | nextTable.CmdUpdateMemory(cmdBuffer, destMem, destOffset, dataSize, pData); |
| 1143 | printf("xglCmdUpdateMemory(cmdBuffer = %p, destMem = %p, destOffset = %i, dataSize = %i, pData = %i)\n", (void*)cmdBuffer, (void*)destMem, destOffset, dataSize, *pData); |
| 1144 | } |
| 1145 | |
| 1146 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdFillMemory(XGL_CMD_BUFFER cmdBuffer, XGL_GPU_MEMORY destMem, XGL_GPU_SIZE destOffset, XGL_GPU_SIZE fillSize, XGL_UINT32 data) |
| 1147 | { |
| 1148 | nextTable.CmdFillMemory(cmdBuffer, destMem, destOffset, fillSize, data); |
| 1149 | printf("xglCmdFillMemory(cmdBuffer = %p, destMem = %p, destOffset = %i, fillSize = %i, data = %i)\n", (void*)cmdBuffer, (void*)destMem, destOffset, fillSize, data); |
| 1150 | } |
| 1151 | |
| 1152 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdClearColorImage(XGL_CMD_BUFFER cmdBuffer, XGL_IMAGE image, const XGL_FLOAT color[4], XGL_UINT rangeCount, const XGL_IMAGE_SUBRESOURCE_RANGE* pRanges) |
| 1153 | { |
| 1154 | nextTable.CmdClearColorImage(cmdBuffer, image, color, rangeCount, pRanges); |
| 1155 | printf("xglCmdClearColorImage(cmdBuffer = %p, image = %p, color = [%f, %f, %f, %f], rangeCount = %i, pRanges = %p)\n", (void*)cmdBuffer, (void*)image, color[0], color[1], color[2], color[3], rangeCount, (void*)pRanges); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 1156 | char *pTmpStr; |
| 1157 | if (pRanges) { |
| 1158 | pTmpStr = xgl_print_xgl_image_subresource_range(pRanges, " "); |
| 1159 | printf(" pRanges (%p)\n%s\n", (void*)pRanges, pTmpStr); |
| 1160 | free(pTmpStr); |
| 1161 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1162 | } |
| 1163 | |
| 1164 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdClearColorImageRaw(XGL_CMD_BUFFER cmdBuffer, XGL_IMAGE image, const XGL_UINT32 color[4], XGL_UINT rangeCount, const XGL_IMAGE_SUBRESOURCE_RANGE* pRanges) |
| 1165 | { |
| 1166 | nextTable.CmdClearColorImageRaw(cmdBuffer, image, color, rangeCount, pRanges); |
| 1167 | printf("xglCmdClearColorImageRaw(cmdBuffer = %p, image = %p, color = [%i, %i, %i, %i], rangeCount = %i, pRanges = %p)\n", (void*)cmdBuffer, (void*)image, color[0], color[1], color[2], color[3], rangeCount, (void*)pRanges); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 1168 | char *pTmpStr; |
| 1169 | if (pRanges) { |
| 1170 | pTmpStr = xgl_print_xgl_image_subresource_range(pRanges, " "); |
| 1171 | printf(" pRanges (%p)\n%s\n", (void*)pRanges, pTmpStr); |
| 1172 | free(pTmpStr); |
| 1173 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1174 | } |
| 1175 | |
| 1176 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdClearDepthStencil(XGL_CMD_BUFFER cmdBuffer, XGL_IMAGE image, XGL_FLOAT depth, XGL_UINT32 stencil, XGL_UINT rangeCount, const XGL_IMAGE_SUBRESOURCE_RANGE* pRanges) |
| 1177 | { |
| 1178 | nextTable.CmdClearDepthStencil(cmdBuffer, image, depth, stencil, rangeCount, pRanges); |
| 1179 | printf("xglCmdClearDepthStencil(cmdBuffer = %p, image = %p, depth = %f, stencil = %i, rangeCount = %i, pRanges = %p)\n", (void*)cmdBuffer, (void*)image, depth, stencil, rangeCount, (void*)pRanges); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 1180 | char *pTmpStr; |
| 1181 | if (pRanges) { |
| 1182 | pTmpStr = xgl_print_xgl_image_subresource_range(pRanges, " "); |
| 1183 | printf(" pRanges (%p)\n%s\n", (void*)pRanges, pTmpStr); |
| 1184 | free(pTmpStr); |
| 1185 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1186 | } |
| 1187 | |
| 1188 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdResolveImage(XGL_CMD_BUFFER cmdBuffer, XGL_IMAGE srcImage, XGL_IMAGE destImage, XGL_UINT rectCount, const XGL_IMAGE_RESOLVE* pRects) |
| 1189 | { |
| 1190 | nextTable.CmdResolveImage(cmdBuffer, srcImage, destImage, rectCount, pRects); |
| 1191 | printf("xglCmdResolveImage(cmdBuffer = %p, srcImage = %p, destImage = %p, rectCount = %i, pRects = %p)\n", (void*)cmdBuffer, (void*)srcImage, (void*)destImage, rectCount, (void*)pRects); |
Tobin Ehlis | 73ff567 | 2014-10-23 08:19:47 -0600 | [diff] [blame^] | 1192 | char *pTmpStr; |
| 1193 | if (pRects) { |
| 1194 | pTmpStr = xgl_print_xgl_image_resolve(pRects, " "); |
| 1195 | printf(" pRects (%p)\n%s\n", (void*)pRects, pTmpStr); |
| 1196 | free(pTmpStr); |
| 1197 | } |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1198 | } |
| 1199 | |
| 1200 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdSetEvent(XGL_CMD_BUFFER cmdBuffer, XGL_EVENT event) |
| 1201 | { |
| 1202 | nextTable.CmdSetEvent(cmdBuffer, event); |
| 1203 | printf("xglCmdSetEvent(cmdBuffer = %p, event = %p)\n", (void*)cmdBuffer, (void*)event); |
| 1204 | } |
| 1205 | |
| 1206 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdResetEvent(XGL_CMD_BUFFER cmdBuffer, XGL_EVENT event) |
| 1207 | { |
| 1208 | nextTable.CmdResetEvent(cmdBuffer, event); |
| 1209 | printf("xglCmdResetEvent(cmdBuffer = %p, event = %p)\n", (void*)cmdBuffer, (void*)event); |
| 1210 | } |
| 1211 | |
| 1212 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdMemoryAtomic(XGL_CMD_BUFFER cmdBuffer, XGL_GPU_MEMORY destMem, XGL_GPU_SIZE destOffset, XGL_UINT64 srcData, XGL_ATOMIC_OP atomicOp) |
| 1213 | { |
| 1214 | nextTable.CmdMemoryAtomic(cmdBuffer, destMem, destOffset, srcData, atomicOp); |
| 1215 | printf("xglCmdMemoryAtomic(cmdBuffer = %p, destMem = %p, destOffset = %i, srcData = %lu, atomicOp = %p)\n", (void*)cmdBuffer, (void*)destMem, destOffset, srcData, (void*)atomicOp); |
| 1216 | } |
| 1217 | |
| 1218 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdBeginQuery(XGL_CMD_BUFFER cmdBuffer, XGL_QUERY_POOL queryPool, XGL_UINT slot, XGL_FLAGS flags) |
| 1219 | { |
| 1220 | nextTable.CmdBeginQuery(cmdBuffer, queryPool, slot, flags); |
| 1221 | printf("xglCmdBeginQuery(cmdBuffer = %p, queryPool = %p, slot = %i, flags = %i)\n", (void*)cmdBuffer, (void*)queryPool, slot, flags); |
| 1222 | } |
| 1223 | |
| 1224 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdEndQuery(XGL_CMD_BUFFER cmdBuffer, XGL_QUERY_POOL queryPool, XGL_UINT slot) |
| 1225 | { |
| 1226 | nextTable.CmdEndQuery(cmdBuffer, queryPool, slot); |
| 1227 | printf("xglCmdEndQuery(cmdBuffer = %p, queryPool = %p, slot = %i)\n", (void*)cmdBuffer, (void*)queryPool, slot); |
| 1228 | } |
| 1229 | |
| 1230 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdResetQueryPool(XGL_CMD_BUFFER cmdBuffer, XGL_QUERY_POOL queryPool, XGL_UINT startQuery, XGL_UINT queryCount) |
| 1231 | { |
| 1232 | nextTable.CmdResetQueryPool(cmdBuffer, queryPool, startQuery, queryCount); |
| 1233 | printf("xglCmdResetQueryPool(cmdBuffer = %p, queryPool = %p, startQuery = %i, queryCount = %i)\n", (void*)cmdBuffer, (void*)queryPool, startQuery, queryCount); |
| 1234 | } |
| 1235 | |
| 1236 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdWriteTimestamp(XGL_CMD_BUFFER cmdBuffer, XGL_TIMESTAMP_TYPE timestampType, XGL_GPU_MEMORY destMem, XGL_GPU_SIZE destOffset) |
| 1237 | { |
| 1238 | nextTable.CmdWriteTimestamp(cmdBuffer, timestampType, destMem, destOffset); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 1239 | printf("xglCmdWriteTimestamp(cmdBuffer = %p, timestampType = %s, destMem = %p, destOffset = %i)\n", (void*)cmdBuffer, string_XGL_TIMESTAMP_TYPE(timestampType), (void*)destMem, destOffset); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1240 | } |
| 1241 | |
| 1242 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdInitAtomicCounters(XGL_CMD_BUFFER cmdBuffer, XGL_PIPELINE_BIND_POINT pipelineBindPoint, XGL_UINT startCounter, XGL_UINT counterCount, const XGL_UINT32* pData) |
| 1243 | { |
| 1244 | nextTable.CmdInitAtomicCounters(cmdBuffer, pipelineBindPoint, startCounter, counterCount, pData); |
| 1245 | printf("xglCmdInitAtomicCounters(cmdBuffer = %p, pipelineBindPoint = %i, startCounter = %i, counterCount = %i, pData = %i)\n", (void*)cmdBuffer, pipelineBindPoint, startCounter, counterCount, *pData); |
| 1246 | } |
| 1247 | |
| 1248 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdLoadAtomicCounters(XGL_CMD_BUFFER cmdBuffer, XGL_PIPELINE_BIND_POINT pipelineBindPoint, XGL_UINT startCounter, XGL_UINT counterCount, XGL_GPU_MEMORY srcMem, XGL_GPU_SIZE srcOffset) |
| 1249 | { |
| 1250 | nextTable.CmdLoadAtomicCounters(cmdBuffer, pipelineBindPoint, startCounter, counterCount, srcMem, srcOffset); |
| 1251 | printf("xglCmdLoadAtomicCounters(cmdBuffer = %p, pipelineBindPoint = %i, startCounter = %i, counterCount = %i, srcMem = %p, srcOffset = %i)\n", (void*)cmdBuffer, pipelineBindPoint, startCounter, counterCount, (void*)srcMem, srcOffset); |
| 1252 | } |
| 1253 | |
| 1254 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdSaveAtomicCounters(XGL_CMD_BUFFER cmdBuffer, XGL_PIPELINE_BIND_POINT pipelineBindPoint, XGL_UINT startCounter, XGL_UINT counterCount, XGL_GPU_MEMORY destMem, XGL_GPU_SIZE destOffset) |
| 1255 | { |
| 1256 | nextTable.CmdSaveAtomicCounters(cmdBuffer, pipelineBindPoint, startCounter, counterCount, destMem, destOffset); |
| 1257 | printf("xglCmdSaveAtomicCounters(cmdBuffer = %p, pipelineBindPoint = %i, startCounter = %i, counterCount = %i, destMem = %p, destOffset = %i)\n", (void*)cmdBuffer, pipelineBindPoint, startCounter, counterCount, (void*)destMem, destOffset); |
| 1258 | } |
| 1259 | |
| 1260 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDbgSetValidationLevel(XGL_DEVICE device, XGL_VALIDATION_LEVEL validationLevel) |
| 1261 | { |
| 1262 | XGL_RESULT result = nextTable.DbgSetValidationLevel(device, validationLevel); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 1263 | printf("xglDbgSetValidationLevel(device = %p, validationLevel = %p) = %s\n", (void*)device, (void*)validationLevel, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1264 | return result; |
| 1265 | } |
| 1266 | |
| 1267 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDbgRegisterMsgCallback(XGL_DBG_MSG_CALLBACK_FUNCTION pfnMsgCallback, XGL_VOID* pUserData) |
| 1268 | { |
| 1269 | XGL_RESULT result = nextTable.DbgRegisterMsgCallback(pfnMsgCallback, pUserData); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 1270 | printf("xglDbgRegisterMsgCallback(pfnMsgCallback = %p, pUserData = %p) = %s\n", (void*)pfnMsgCallback, (void*)pUserData, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1271 | return result; |
| 1272 | } |
| 1273 | |
| 1274 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDbgUnregisterMsgCallback(XGL_DBG_MSG_CALLBACK_FUNCTION pfnMsgCallback) |
| 1275 | { |
| 1276 | XGL_RESULT result = nextTable.DbgUnregisterMsgCallback(pfnMsgCallback); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 1277 | printf("xglDbgUnregisterMsgCallback(pfnMsgCallback = %p) = %s\n", (void*)pfnMsgCallback, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1278 | return result; |
| 1279 | } |
| 1280 | |
| 1281 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDbgSetMessageFilter(XGL_DEVICE device, XGL_INT msgCode, XGL_DBG_MSG_FILTER filter) |
| 1282 | { |
| 1283 | XGL_RESULT result = nextTable.DbgSetMessageFilter(device, msgCode, filter); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 1284 | printf("xglDbgSetMessageFilter(device = %p, msgCode = %i, filter = %p) = %s\n", (void*)device, msgCode, (void*)filter, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1285 | return result; |
| 1286 | } |
| 1287 | |
| 1288 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDbgSetObjectTag(XGL_BASE_OBJECT object, XGL_SIZE tagSize, const XGL_VOID* pTag) |
| 1289 | { |
| 1290 | XGL_RESULT result = nextTable.DbgSetObjectTag(object, tagSize, pTag); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 1291 | printf("xglDbgSetObjectTag(object = %p, tagSize = %i, pTag = %p) = %s\n", (void*)object, tagSize, (void*)pTag, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1292 | return result; |
| 1293 | } |
| 1294 | |
| 1295 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDbgSetGlobalOption(XGL_DBG_GLOBAL_OPTION dbgOption, XGL_SIZE dataSize, const XGL_VOID* pData) |
| 1296 | { |
| 1297 | XGL_RESULT result = nextTable.DbgSetGlobalOption(dbgOption, dataSize, pData); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 1298 | printf("xglDbgSetGlobalOption(dbgOption = %p, dataSize = %i, pData = %p) = %s\n", (void*)dbgOption, dataSize, (void*)pData, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1299 | return result; |
| 1300 | } |
| 1301 | |
| 1302 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDbgSetDeviceOption(XGL_DEVICE device, XGL_DBG_DEVICE_OPTION dbgOption, XGL_SIZE dataSize, const XGL_VOID* pData) |
| 1303 | { |
| 1304 | XGL_RESULT result = nextTable.DbgSetDeviceOption(device, dbgOption, dataSize, pData); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 1305 | printf("xglDbgSetDeviceOption(device = %p, dbgOption = %p, dataSize = %i, pData = %p) = %s\n", (void*)device, (void*)dbgOption, dataSize, (void*)pData, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1306 | return result; |
| 1307 | } |
| 1308 | |
| 1309 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdDbgMarkerBegin(XGL_CMD_BUFFER cmdBuffer, const XGL_CHAR* pMarker) |
| 1310 | { |
| 1311 | nextTable.CmdDbgMarkerBegin(cmdBuffer, pMarker); |
| 1312 | printf("xglCmdDbgMarkerBegin(cmdBuffer = %p, pMarker = %p)\n", (void*)cmdBuffer, (void*)pMarker); |
| 1313 | } |
| 1314 | |
| 1315 | XGL_LAYER_EXPORT XGL_VOID XGLAPI xglCmdDbgMarkerEnd(XGL_CMD_BUFFER cmdBuffer) |
| 1316 | { |
| 1317 | nextTable.CmdDbgMarkerEnd(cmdBuffer); |
| 1318 | printf("xglCmdDbgMarkerEnd(cmdBuffer = %p)\n", (void*)cmdBuffer); |
| 1319 | } |
| 1320 | |
| 1321 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglWsiX11AssociateConnection(XGL_PHYSICAL_GPU gpu, const XGL_WSI_X11_CONNECTION_INFO* pConnectionInfo) |
| 1322 | { |
| 1323 | XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1324 | pCurObj = gpuw; |
| 1325 | pthread_once(&tabOnce, initLayerTable); |
| 1326 | XGL_RESULT result = nextTable.WsiX11AssociateConnection((XGL_PHYSICAL_GPU)gpuw->nextObject, pConnectionInfo); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 1327 | printf("xglWsiX11AssociateConnection(gpu = %p, pConnectionInfo = %p) = %s\n", (void*)gpu, (void*)pConnectionInfo, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1328 | return result; |
| 1329 | } |
| 1330 | |
| 1331 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglWsiX11GetMSC(XGL_DEVICE device, xcb_randr_crtc_t crtc, XGL_UINT64* pMsc) |
| 1332 | { |
| 1333 | XGL_RESULT result = nextTable.WsiX11GetMSC(device, crtc, pMsc); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 1334 | printf("xglWsiX11GetMSC(device = %p, crtc = %i, pMsc = %lu) = %s\n", (void*)device, crtc, *pMsc, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1335 | return result; |
| 1336 | } |
| 1337 | |
| 1338 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglWsiX11CreatePresentableImage(XGL_DEVICE device, const XGL_WSI_X11_PRESENTABLE_IMAGE_CREATE_INFO* pCreateInfo, XGL_IMAGE* pImage, XGL_GPU_MEMORY* pMem) |
| 1339 | { |
| 1340 | XGL_RESULT result = nextTable.WsiX11CreatePresentableImage(device, pCreateInfo, pImage, pMem); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 1341 | printf("xglWsiX11CreatePresentableImage(device = %p, pCreateInfo = %p, pImage = %p, pMem = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)pImage, (void*)pMem, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1342 | return result; |
| 1343 | } |
| 1344 | |
| 1345 | XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglWsiX11QueuePresent(XGL_QUEUE queue, const XGL_WSI_X11_PRESENT_INFO* pPresentInfo, XGL_FENCE fence) |
| 1346 | { |
| 1347 | XGL_RESULT result = nextTable.WsiX11QueuePresent(queue, pPresentInfo, fence); |
Tobin Ehlis | 92dbf80 | 2014-10-22 09:06:33 -0600 | [diff] [blame] | 1348 | printf("xglWsiX11QueuePresent(queue = %p, pPresentInfo = %p, fence = %p) = %s\n", (void*)queue, (void*)pPresentInfo, (void*)fence, string_XGL_RESULT(result)); |
Tobin Ehlis | 817736c | 2014-10-21 10:47:45 -0600 | [diff] [blame] | 1349 | return result; |
| 1350 | } |
| 1351 | |
| 1352 | XGL_LAYER_EXPORT XGL_VOID* XGLAPI xglGetProcAddr(XGL_PHYSICAL_GPU gpu, const XGL_CHAR* funcName) |
| 1353 | { |
| 1354 | XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; |
| 1355 | if (gpu == NULL) |
| 1356 | return NULL; |
| 1357 | pCurObj = gpuw; |
| 1358 | pthread_once(&tabOnce, initLayerTable); |
| 1359 | |
| 1360 | if (!strncmp("xglGetProcAddr", (const char *) funcName, sizeof("xglGetProcAddr"))) |
| 1361 | return xglGetProcAddr; |
| 1362 | else if (!strncmp("xglInitAndEnumerateGpus", (const char *) funcName, sizeof("xglInitAndEnumerateGpus"))) |
| 1363 | return nextTable.InitAndEnumerateGpus; |
| 1364 | else if (!strncmp("xglGetGpuInfo", (const char *) funcName, sizeof("xglGetGpuInfo"))) |
| 1365 | return xglGetGpuInfo; |
| 1366 | else if (!strncmp("xglCreateDevice", (const char *) funcName, sizeof("xglCreateDevice"))) |
| 1367 | return xglCreateDevice; |
| 1368 | else if (!strncmp("xglDestroyDevice", (const char *) funcName, sizeof("xglDestroyDevice"))) |
| 1369 | return xglDestroyDevice; |
| 1370 | else if (!strncmp("xglGetExtensionSupport", (const char *) funcName, sizeof("xglGetExtensionSupport"))) |
| 1371 | return xglGetExtensionSupport; |
| 1372 | else if (!strncmp("xglEnumerateLayers", (const char *) funcName, sizeof("xglEnumerateLayers"))) |
| 1373 | return xglEnumerateLayers; |
| 1374 | else if (!strncmp("xglGetDeviceQueue", (const char *) funcName, sizeof("xglGetDeviceQueue"))) |
| 1375 | return xglGetDeviceQueue; |
| 1376 | else if (!strncmp("xglQueueSubmit", (const char *) funcName, sizeof("xglQueueSubmit"))) |
| 1377 | return xglQueueSubmit; |
| 1378 | else if (!strncmp("xglQueueSetGlobalMemReferences", (const char *) funcName, sizeof("xglQueueSetGlobalMemReferences"))) |
| 1379 | return xglQueueSetGlobalMemReferences; |
| 1380 | else if (!strncmp("xglQueueWaitIdle", (const char *) funcName, sizeof("xglQueueWaitIdle"))) |
| 1381 | return xglQueueWaitIdle; |
| 1382 | else if (!strncmp("xglDeviceWaitIdle", (const char *) funcName, sizeof("xglDeviceWaitIdle"))) |
| 1383 | return xglDeviceWaitIdle; |
| 1384 | else if (!strncmp("xglGetMemoryHeapCount", (const char *) funcName, sizeof("xglGetMemoryHeapCount"))) |
| 1385 | return xglGetMemoryHeapCount; |
| 1386 | else if (!strncmp("xglGetMemoryHeapInfo", (const char *) funcName, sizeof("xglGetMemoryHeapInfo"))) |
| 1387 | return xglGetMemoryHeapInfo; |
| 1388 | else if (!strncmp("xglAllocMemory", (const char *) funcName, sizeof("xglAllocMemory"))) |
| 1389 | return xglAllocMemory; |
| 1390 | else if (!strncmp("xglFreeMemory", (const char *) funcName, sizeof("xglFreeMemory"))) |
| 1391 | return xglFreeMemory; |
| 1392 | else if (!strncmp("xglSetMemoryPriority", (const char *) funcName, sizeof("xglSetMemoryPriority"))) |
| 1393 | return xglSetMemoryPriority; |
| 1394 | else if (!strncmp("xglMapMemory", (const char *) funcName, sizeof("xglMapMemory"))) |
| 1395 | return xglMapMemory; |
| 1396 | else if (!strncmp("xglUnmapMemory", (const char *) funcName, sizeof("xglUnmapMemory"))) |
| 1397 | return xglUnmapMemory; |
| 1398 | else if (!strncmp("xglPinSystemMemory", (const char *) funcName, sizeof("xglPinSystemMemory"))) |
| 1399 | return xglPinSystemMemory; |
| 1400 | else if (!strncmp("xglRemapVirtualMemoryPages", (const char *) funcName, sizeof("xglRemapVirtualMemoryPages"))) |
| 1401 | return xglRemapVirtualMemoryPages; |
| 1402 | else if (!strncmp("xglGetMultiGpuCompatibility", (const char *) funcName, sizeof("xglGetMultiGpuCompatibility"))) |
| 1403 | return xglGetMultiGpuCompatibility; |
| 1404 | else if (!strncmp("xglOpenSharedMemory", (const char *) funcName, sizeof("xglOpenSharedMemory"))) |
| 1405 | return xglOpenSharedMemory; |
| 1406 | else if (!strncmp("xglOpenSharedQueueSemaphore", (const char *) funcName, sizeof("xglOpenSharedQueueSemaphore"))) |
| 1407 | return xglOpenSharedQueueSemaphore; |
| 1408 | else if (!strncmp("xglOpenPeerMemory", (const char *) funcName, sizeof("xglOpenPeerMemory"))) |
| 1409 | return xglOpenPeerMemory; |
| 1410 | else if (!strncmp("xglOpenPeerImage", (const char *) funcName, sizeof("xglOpenPeerImage"))) |
| 1411 | return xglOpenPeerImage; |
| 1412 | else if (!strncmp("xglDestroyObject", (const char *) funcName, sizeof("xglDestroyObject"))) |
| 1413 | return xglDestroyObject; |
| 1414 | else if (!strncmp("xglGetObjectInfo", (const char *) funcName, sizeof("xglGetObjectInfo"))) |
| 1415 | return xglGetObjectInfo; |
| 1416 | else if (!strncmp("xglBindObjectMemory", (const char *) funcName, sizeof("xglBindObjectMemory"))) |
| 1417 | return xglBindObjectMemory; |
| 1418 | else if (!strncmp("xglCreateFence", (const char *) funcName, sizeof("xglCreateFence"))) |
| 1419 | return xglCreateFence; |
| 1420 | else if (!strncmp("xglGetFenceStatus", (const char *) funcName, sizeof("xglGetFenceStatus"))) |
| 1421 | return xglGetFenceStatus; |
| 1422 | else if (!strncmp("xglWaitForFences", (const char *) funcName, sizeof("xglWaitForFences"))) |
| 1423 | return xglWaitForFences; |
| 1424 | else if (!strncmp("xglCreateQueueSemaphore", (const char *) funcName, sizeof("xglCreateQueueSemaphore"))) |
| 1425 | return xglCreateQueueSemaphore; |
| 1426 | else if (!strncmp("xglSignalQueueSemaphore", (const char *) funcName, sizeof("xglSignalQueueSemaphore"))) |
| 1427 | return xglSignalQueueSemaphore; |
| 1428 | else if (!strncmp("xglWaitQueueSemaphore", (const char *) funcName, sizeof("xglWaitQueueSemaphore"))) |
| 1429 | return xglWaitQueueSemaphore; |
| 1430 | else if (!strncmp("xglCreateEvent", (const char *) funcName, sizeof("xglCreateEvent"))) |
| 1431 | return xglCreateEvent; |
| 1432 | else if (!strncmp("xglGetEventStatus", (const char *) funcName, sizeof("xglGetEventStatus"))) |
| 1433 | return xglGetEventStatus; |
| 1434 | else if (!strncmp("xglSetEvent", (const char *) funcName, sizeof("xglSetEvent"))) |
| 1435 | return xglSetEvent; |
| 1436 | else if (!strncmp("xglResetEvent", (const char *) funcName, sizeof("xglResetEvent"))) |
| 1437 | return xglResetEvent; |
| 1438 | else if (!strncmp("xglCreateQueryPool", (const char *) funcName, sizeof("xglCreateQueryPool"))) |
| 1439 | return xglCreateQueryPool; |
| 1440 | else if (!strncmp("xglGetQueryPoolResults", (const char *) funcName, sizeof("xglGetQueryPoolResults"))) |
| 1441 | return xglGetQueryPoolResults; |
| 1442 | else if (!strncmp("xglGetFormatInfo", (const char *) funcName, sizeof("xglGetFormatInfo"))) |
| 1443 | return xglGetFormatInfo; |
| 1444 | else if (!strncmp("xglCreateImage", (const char *) funcName, sizeof("xglCreateImage"))) |
| 1445 | return xglCreateImage; |
| 1446 | else if (!strncmp("xglGetImageSubresourceInfo", (const char *) funcName, sizeof("xglGetImageSubresourceInfo"))) |
| 1447 | return xglGetImageSubresourceInfo; |
| 1448 | else if (!strncmp("xglCreateImageView", (const char *) funcName, sizeof("xglCreateImageView"))) |
| 1449 | return xglCreateImageView; |
| 1450 | else if (!strncmp("xglCreateColorAttachmentView", (const char *) funcName, sizeof("xglCreateColorAttachmentView"))) |
| 1451 | return xglCreateColorAttachmentView; |
| 1452 | else if (!strncmp("xglCreateDepthStencilView", (const char *) funcName, sizeof("xglCreateDepthStencilView"))) |
| 1453 | return xglCreateDepthStencilView; |
| 1454 | else if (!strncmp("xglCreateShader", (const char *) funcName, sizeof("xglCreateShader"))) |
| 1455 | return xglCreateShader; |
| 1456 | else if (!strncmp("xglCreateGraphicsPipeline", (const char *) funcName, sizeof("xglCreateGraphicsPipeline"))) |
| 1457 | return xglCreateGraphicsPipeline; |
| 1458 | else if (!strncmp("xglCreateComputePipeline", (const char *) funcName, sizeof("xglCreateComputePipeline"))) |
| 1459 | return xglCreateComputePipeline; |
| 1460 | else if (!strncmp("xglStorePipeline", (const char *) funcName, sizeof("xglStorePipeline"))) |
| 1461 | return xglStorePipeline; |
| 1462 | else if (!strncmp("xglLoadPipeline", (const char *) funcName, sizeof("xglLoadPipeline"))) |
| 1463 | return xglLoadPipeline; |
| 1464 | else if (!strncmp("xglCreatePipelineDelta", (const char *) funcName, sizeof("xglCreatePipelineDelta"))) |
| 1465 | return xglCreatePipelineDelta; |
| 1466 | else if (!strncmp("xglCreateSampler", (const char *) funcName, sizeof("xglCreateSampler"))) |
| 1467 | return xglCreateSampler; |
| 1468 | else if (!strncmp("xglCreateDescriptorSet", (const char *) funcName, sizeof("xglCreateDescriptorSet"))) |
| 1469 | return xglCreateDescriptorSet; |
| 1470 | else if (!strncmp("xglBeginDescriptorSetUpdate", (const char *) funcName, sizeof("xglBeginDescriptorSetUpdate"))) |
| 1471 | return xglBeginDescriptorSetUpdate; |
| 1472 | else if (!strncmp("xglEndDescriptorSetUpdate", (const char *) funcName, sizeof("xglEndDescriptorSetUpdate"))) |
| 1473 | return xglEndDescriptorSetUpdate; |
| 1474 | else if (!strncmp("xglAttachSamplerDescriptors", (const char *) funcName, sizeof("xglAttachSamplerDescriptors"))) |
| 1475 | return xglAttachSamplerDescriptors; |
| 1476 | else if (!strncmp("xglAttachImageViewDescriptors", (const char *) funcName, sizeof("xglAttachImageViewDescriptors"))) |
| 1477 | return xglAttachImageViewDescriptors; |
| 1478 | else if (!strncmp("xglAttachMemoryViewDescriptors", (const char *) funcName, sizeof("xglAttachMemoryViewDescriptors"))) |
| 1479 | return xglAttachMemoryViewDescriptors; |
| 1480 | else if (!strncmp("xglAttachNestedDescriptors", (const char *) funcName, sizeof("xglAttachNestedDescriptors"))) |
| 1481 | return xglAttachNestedDescriptors; |
| 1482 | else if (!strncmp("xglClearDescriptorSetSlots", (const char *) funcName, sizeof("xglClearDescriptorSetSlots"))) |
| 1483 | return xglClearDescriptorSetSlots; |
| 1484 | else if (!strncmp("xglCreateViewportState", (const char *) funcName, sizeof("xglCreateViewportState"))) |
| 1485 | return xglCreateViewportState; |
| 1486 | else if (!strncmp("xglCreateRasterState", (const char *) funcName, sizeof("xglCreateRasterState"))) |
| 1487 | return xglCreateRasterState; |
| 1488 | else if (!strncmp("xglCreateMsaaState", (const char *) funcName, sizeof("xglCreateMsaaState"))) |
| 1489 | return xglCreateMsaaState; |
| 1490 | else if (!strncmp("xglCreateColorBlendState", (const char *) funcName, sizeof("xglCreateColorBlendState"))) |
| 1491 | return xglCreateColorBlendState; |
| 1492 | else if (!strncmp("xglCreateDepthStencilState", (const char *) funcName, sizeof("xglCreateDepthStencilState"))) |
| 1493 | return xglCreateDepthStencilState; |
| 1494 | else if (!strncmp("xglCreateCommandBuffer", (const char *) funcName, sizeof("xglCreateCommandBuffer"))) |
| 1495 | return xglCreateCommandBuffer; |
| 1496 | else if (!strncmp("xglBeginCommandBuffer", (const char *) funcName, sizeof("xglBeginCommandBuffer"))) |
| 1497 | return xglBeginCommandBuffer; |
| 1498 | else if (!strncmp("xglEndCommandBuffer", (const char *) funcName, sizeof("xglEndCommandBuffer"))) |
| 1499 | return xglEndCommandBuffer; |
| 1500 | else if (!strncmp("xglResetCommandBuffer", (const char *) funcName, sizeof("xglResetCommandBuffer"))) |
| 1501 | return xglResetCommandBuffer; |
| 1502 | else if (!strncmp("xglCmdBindPipeline", (const char *) funcName, sizeof("xglCmdBindPipeline"))) |
| 1503 | return xglCmdBindPipeline; |
| 1504 | else if (!strncmp("xglCmdBindPipelineDelta", (const char *) funcName, sizeof("xglCmdBindPipelineDelta"))) |
| 1505 | return xglCmdBindPipelineDelta; |
| 1506 | else if (!strncmp("xglCmdBindStateObject", (const char *) funcName, sizeof("xglCmdBindStateObject"))) |
| 1507 | return xglCmdBindStateObject; |
| 1508 | else if (!strncmp("xglCmdBindDescriptorSet", (const char *) funcName, sizeof("xglCmdBindDescriptorSet"))) |
| 1509 | return xglCmdBindDescriptorSet; |
| 1510 | else if (!strncmp("xglCmdBindDynamicMemoryView", (const char *) funcName, sizeof("xglCmdBindDynamicMemoryView"))) |
| 1511 | return xglCmdBindDynamicMemoryView; |
| 1512 | else if (!strncmp("xglCmdBindIndexData", (const char *) funcName, sizeof("xglCmdBindIndexData"))) |
| 1513 | return xglCmdBindIndexData; |
| 1514 | else if (!strncmp("xglCmdBindAttachments", (const char *) funcName, sizeof("xglCmdBindAttachments"))) |
| 1515 | return xglCmdBindAttachments; |
| 1516 | else if (!strncmp("xglCmdPrepareMemoryRegions", (const char *) funcName, sizeof("xglCmdPrepareMemoryRegions"))) |
| 1517 | return xglCmdPrepareMemoryRegions; |
| 1518 | else if (!strncmp("xglCmdPrepareImages", (const char *) funcName, sizeof("xglCmdPrepareImages"))) |
| 1519 | return xglCmdPrepareImages; |
| 1520 | else if (!strncmp("xglCmdDraw", (const char *) funcName, sizeof("xglCmdDraw"))) |
| 1521 | return xglCmdDraw; |
| 1522 | else if (!strncmp("xglCmdDrawIndexed", (const char *) funcName, sizeof("xglCmdDrawIndexed"))) |
| 1523 | return xglCmdDrawIndexed; |
| 1524 | else if (!strncmp("xglCmdDrawIndirect", (const char *) funcName, sizeof("xglCmdDrawIndirect"))) |
| 1525 | return xglCmdDrawIndirect; |
| 1526 | else if (!strncmp("xglCmdDrawIndexedIndirect", (const char *) funcName, sizeof("xglCmdDrawIndexedIndirect"))) |
| 1527 | return xglCmdDrawIndexedIndirect; |
| 1528 | else if (!strncmp("xglCmdDispatch", (const char *) funcName, sizeof("xglCmdDispatch"))) |
| 1529 | return xglCmdDispatch; |
| 1530 | else if (!strncmp("xglCmdDispatchIndirect", (const char *) funcName, sizeof("xglCmdDispatchIndirect"))) |
| 1531 | return xglCmdDispatchIndirect; |
| 1532 | else if (!strncmp("xglCmdCopyMemory", (const char *) funcName, sizeof("xglCmdCopyMemory"))) |
| 1533 | return xglCmdCopyMemory; |
| 1534 | else if (!strncmp("xglCmdCopyImage", (const char *) funcName, sizeof("xglCmdCopyImage"))) |
| 1535 | return xglCmdCopyImage; |
| 1536 | else if (!strncmp("xglCmdCopyMemoryToImage", (const char *) funcName, sizeof("xglCmdCopyMemoryToImage"))) |
| 1537 | return xglCmdCopyMemoryToImage; |
| 1538 | else if (!strncmp("xglCmdCopyImageToMemory", (const char *) funcName, sizeof("xglCmdCopyImageToMemory"))) |
| 1539 | return xglCmdCopyImageToMemory; |
| 1540 | else if (!strncmp("xglCmdCloneImageData", (const char *) funcName, sizeof("xglCmdCloneImageData"))) |
| 1541 | return xglCmdCloneImageData; |
| 1542 | else if (!strncmp("xglCmdUpdateMemory", (const char *) funcName, sizeof("xglCmdUpdateMemory"))) |
| 1543 | return xglCmdUpdateMemory; |
| 1544 | else if (!strncmp("xglCmdFillMemory", (const char *) funcName, sizeof("xglCmdFillMemory"))) |
| 1545 | return xglCmdFillMemory; |
| 1546 | else if (!strncmp("xglCmdClearColorImage", (const char *) funcName, sizeof("xglCmdClearColorImage"))) |
| 1547 | return xglCmdClearColorImage; |
| 1548 | else if (!strncmp("xglCmdClearColorImageRaw", (const char *) funcName, sizeof("xglCmdClearColorImageRaw"))) |
| 1549 | return xglCmdClearColorImageRaw; |
| 1550 | else if (!strncmp("xglCmdClearDepthStencil", (const char *) funcName, sizeof("xglCmdClearDepthStencil"))) |
| 1551 | return xglCmdClearDepthStencil; |
| 1552 | else if (!strncmp("xglCmdResolveImage", (const char *) funcName, sizeof("xglCmdResolveImage"))) |
| 1553 | return xglCmdResolveImage; |
| 1554 | else if (!strncmp("xglCmdSetEvent", (const char *) funcName, sizeof("xglCmdSetEvent"))) |
| 1555 | return xglCmdSetEvent; |
| 1556 | else if (!strncmp("xglCmdResetEvent", (const char *) funcName, sizeof("xglCmdResetEvent"))) |
| 1557 | return xglCmdResetEvent; |
| 1558 | else if (!strncmp("xglCmdMemoryAtomic", (const char *) funcName, sizeof("xglCmdMemoryAtomic"))) |
| 1559 | return xglCmdMemoryAtomic; |
| 1560 | else if (!strncmp("xglCmdBeginQuery", (const char *) funcName, sizeof("xglCmdBeginQuery"))) |
| 1561 | return xglCmdBeginQuery; |
| 1562 | else if (!strncmp("xglCmdEndQuery", (const char *) funcName, sizeof("xglCmdEndQuery"))) |
| 1563 | return xglCmdEndQuery; |
| 1564 | else if (!strncmp("xglCmdResetQueryPool", (const char *) funcName, sizeof("xglCmdResetQueryPool"))) |
| 1565 | return xglCmdResetQueryPool; |
| 1566 | else if (!strncmp("xglCmdWriteTimestamp", (const char *) funcName, sizeof("xglCmdWriteTimestamp"))) |
| 1567 | return xglCmdWriteTimestamp; |
| 1568 | else if (!strncmp("xglCmdInitAtomicCounters", (const char *) funcName, sizeof("xglCmdInitAtomicCounters"))) |
| 1569 | return xglCmdInitAtomicCounters; |
| 1570 | else if (!strncmp("xglCmdLoadAtomicCounters", (const char *) funcName, sizeof("xglCmdLoadAtomicCounters"))) |
| 1571 | return xglCmdLoadAtomicCounters; |
| 1572 | else if (!strncmp("xglCmdSaveAtomicCounters", (const char *) funcName, sizeof("xglCmdSaveAtomicCounters"))) |
| 1573 | return xglCmdSaveAtomicCounters; |
| 1574 | else if (!strncmp("xglDbgSetValidationLevel", (const char *) funcName, sizeof("xglDbgSetValidationLevel"))) |
| 1575 | return xglDbgSetValidationLevel; |
| 1576 | else if (!strncmp("xglDbgRegisterMsgCallback", (const char *) funcName, sizeof("xglDbgRegisterMsgCallback"))) |
| 1577 | return xglDbgRegisterMsgCallback; |
| 1578 | else if (!strncmp("xglDbgUnregisterMsgCallback", (const char *) funcName, sizeof("xglDbgUnregisterMsgCallback"))) |
| 1579 | return xglDbgUnregisterMsgCallback; |
| 1580 | else if (!strncmp("xglDbgSetMessageFilter", (const char *) funcName, sizeof("xglDbgSetMessageFilter"))) |
| 1581 | return xglDbgSetMessageFilter; |
| 1582 | else if (!strncmp("xglDbgSetObjectTag", (const char *) funcName, sizeof("xglDbgSetObjectTag"))) |
| 1583 | return xglDbgSetObjectTag; |
| 1584 | else if (!strncmp("xglDbgSetGlobalOption", (const char *) funcName, sizeof("xglDbgSetGlobalOption"))) |
| 1585 | return xglDbgSetGlobalOption; |
| 1586 | else if (!strncmp("xglDbgSetDeviceOption", (const char *) funcName, sizeof("xglDbgSetDeviceOption"))) |
| 1587 | return xglDbgSetDeviceOption; |
| 1588 | else if (!strncmp("xglCmdDbgMarkerBegin", (const char *) funcName, sizeof("xglCmdDbgMarkerBegin"))) |
| 1589 | return xglCmdDbgMarkerBegin; |
| 1590 | else if (!strncmp("xglCmdDbgMarkerEnd", (const char *) funcName, sizeof("xglCmdDbgMarkerEnd"))) |
| 1591 | return xglCmdDbgMarkerEnd; |
| 1592 | else if (!strncmp("xglWsiX11AssociateConnection", (const char *) funcName, sizeof("xglWsiX11AssociateConnection"))) |
| 1593 | return xglWsiX11AssociateConnection; |
| 1594 | else if (!strncmp("xglWsiX11GetMSC", (const char *) funcName, sizeof("xglWsiX11GetMSC"))) |
| 1595 | return xglWsiX11GetMSC; |
| 1596 | else if (!strncmp("xglWsiX11CreatePresentableImage", (const char *) funcName, sizeof("xglWsiX11CreatePresentableImage"))) |
| 1597 | return xglWsiX11CreatePresentableImage; |
| 1598 | else if (!strncmp("xglWsiX11QueuePresent", (const char *) funcName, sizeof("xglWsiX11QueuePresent"))) |
| 1599 | return xglWsiX11QueuePresent; |
| 1600 | else { |
| 1601 | XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; |
| 1602 | if (gpuw->pGPA == NULL) |
| 1603 | return NULL; |
| 1604 | return gpuw->pGPA(gpuw->nextObject, funcName); |
| 1605 | } |
| 1606 | } |
| 1607 | |