blob: ea11ae400a1a4a3eb3c5b74ea5f231e7b1b2c18e [file] [log] [blame]
Tobin Ehlis817736c2014-10-21 10:47:45 -06001/* 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 Ehlis92dbf802014-10-22 09:06:33 -060033#include "xgl_string_helper.h"
34#include "xgl_struct_string_helper.h"
Tobin Ehlis817736c2014-10-21 10:47:45 -060035
36static XGL_LAYER_DISPATCH_TABLE nextTable;
37static XGL_BASE_LAYER_OBJECT *pCurObj;
38static pthread_once_t tabOnce = PTHREAD_ONCE_INIT;
39
40
41static 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
290XGL_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 Ehlis817736c2014-10-21 10:47:45 -0600293 pCurObj = gpuw;
294 pthread_once(&tabOnce, initLayerTable);
295 XGL_RESULT result = nextTable.GetGpuInfo((XGL_PHYSICAL_GPU)gpuw->nextObject, infoType, pDataSize, pData);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600296 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 Ehlis817736c2014-10-21 10:47:45 -0600297 return result;
298}
299
300XGL_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 Ehlis817736c2014-10-21 10:47:45 -0600303 pCurObj = gpuw;
304 pthread_once(&tabOnce, initLayerTable);
305 XGL_RESULT result = nextTable.CreateDevice((XGL_PHYSICAL_GPU)gpuw->nextObject, pCreateInfo, pDevice);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600306 printf("xglCreateDevice(gpu = %p, pCreateInfo = %p, pDevice = %p) = %s\n", (void*)gpu, (void*)pCreateInfo, (void*)*pDevice, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600307 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 Ehlis817736c2014-10-21 10:47:45 -0600313 return result;
314}
315
316XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDestroyDevice(XGL_DEVICE device)
317{
318 XGL_RESULT result = nextTable.DestroyDevice(device);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600319 printf("xglDestroyDevice(device = %p) = %s\n", (void*)device, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600320 return result;
321}
322
323XGL_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 Ehlis817736c2014-10-21 10:47:45 -0600326 pCurObj = gpuw;
327 pthread_once(&tabOnce, initLayerTable);
328 XGL_RESULT result = nextTable.GetExtensionSupport((XGL_PHYSICAL_GPU)gpuw->nextObject, pExtName);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600329 printf("xglGetExtensionSupport(gpu = %p, pExtName = %p) = %s\n", (void*)gpu, (void*)pExtName, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600330 return result;
331}
332
333XGL_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 Ehlis817736c2014-10-21 10:47:45 -0600336 pCurObj = gpuw;
337 pthread_once(&tabOnce, initLayerTable);
338 XGL_RESULT result = nextTable.EnumerateLayers((XGL_PHYSICAL_GPU)gpuw->nextObject, maxLayerCount, maxStringSize, pOutLayers, pOutLayerCount);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600339 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 Ehlis817736c2014-10-21 10:47:45 -0600340 return result;
341}
342
343XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600346 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 Ehlis817736c2014-10-21 10:47:45 -0600347 return result;
348}
349
350XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600353 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 Ehlis73ff5672014-10-23 08:19:47 -0600354 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 Ehlis817736c2014-10-21 10:47:45 -0600360 return result;
361}
362
363XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600366 printf("xglQueueSetGlobalMemReferences(queue = %p, memRefCount = %i, pMemRefs = %p) = %s\n", (void*)queue, memRefCount, (void*)pMemRefs, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600367 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 Ehlis817736c2014-10-21 10:47:45 -0600373 return result;
374}
375
376XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglQueueWaitIdle(XGL_QUEUE queue)
377{
378 XGL_RESULT result = nextTable.QueueWaitIdle(queue);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600379 printf("xglQueueWaitIdle(queue = %p) = %s\n", (void*)queue, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600380 return result;
381}
382
383XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDeviceWaitIdle(XGL_DEVICE device)
384{
385 XGL_RESULT result = nextTable.DeviceWaitIdle(device);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600386 printf("xglDeviceWaitIdle(device = %p) = %s\n", (void*)device, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600387 return result;
388}
389
390XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetMemoryHeapCount(XGL_DEVICE device, XGL_UINT* pCount)
391{
392 XGL_RESULT result = nextTable.GetMemoryHeapCount(device, pCount);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600393 printf("xglGetMemoryHeapCount(device = %p, pCount = %i) = %s\n", (void*)device, *pCount, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600394 return result;
395}
396
397XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600400 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 Ehlis817736c2014-10-21 10:47:45 -0600401 return result;
402}
403
404XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600407 printf("xglAllocMemory(device = %p, pAllocInfo = %p, pMem = %p) = %s\n", (void*)device, (void*)pAllocInfo, (void*)pMem, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600408 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 Ehlis817736c2014-10-21 10:47:45 -0600414 return result;
415}
416
417XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglFreeMemory(XGL_GPU_MEMORY mem)
418{
419 XGL_RESULT result = nextTable.FreeMemory(mem);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600420 printf("xglFreeMemory(mem = %p) = %s\n", (void*)mem, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600421 return result;
422}
423
424XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglSetMemoryPriority(XGL_GPU_MEMORY mem, XGL_MEMORY_PRIORITY priority)
425{
426 XGL_RESULT result = nextTable.SetMemoryPriority(mem, priority);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600427 printf("xglSetMemoryPriority(mem = %p, priority = %p) = %s\n", (void*)mem, (void*)priority, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600428 return result;
429}
430
431XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600434 printf("xglMapMemory(mem = %p, flags = %i, ppData = %p) = %s\n", (void*)mem, flags, (void*)ppData, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600435 return result;
436}
437
438XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglUnmapMemory(XGL_GPU_MEMORY mem)
439{
440 XGL_RESULT result = nextTable.UnmapMemory(mem);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600441 printf("xglUnmapMemory(mem = %p) = %s\n", (void*)mem, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600442 return result;
443}
444
445XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600448 printf("xglPinSystemMemory(device = %p, pSysMem = %p, memSize = %i, pMem = %p) = %s\n", (void*)device, (void*)pSysMem, memSize, (void*)pMem, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600449 return result;
450}
451
452XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600455 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 Ehlis73ff5672014-10-23 08:19:47 -0600456 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 Ehlis817736c2014-10-21 10:47:45 -0600462 return result;
463}
464
465XGL_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 Ehlis817736c2014-10-21 10:47:45 -0600468 pCurObj = gpuw;
469 pthread_once(&tabOnce, initLayerTable);
470 XGL_RESULT result = nextTable.GetMultiGpuCompatibility((XGL_PHYSICAL_GPU)gpuw->nextObject, gpu1, pInfo);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600471 printf("xglGetMultiGpuCompatibility(gpu0 = %p, gpu1 = %p, pInfo = %p) = %s\n", (void*)gpu0, (void*)gpu1, (void*)pInfo, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600472 return result;
473}
474
475XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600478 printf("xglOpenSharedMemory(device = %p, pOpenInfo = %p, pMem = %p) = %s\n", (void*)device, (void*)pOpenInfo, (void*)pMem, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600479 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 Ehlis817736c2014-10-21 10:47:45 -0600485 return result;
486}
487
488XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600491 printf("xglOpenSharedQueueSemaphore(device = %p, pOpenInfo = %p, pSemaphore = %p) = %s\n", (void*)device, (void*)pOpenInfo, (void*)pSemaphore, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600492 return result;
493}
494
495XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600498 printf("xglOpenPeerMemory(device = %p, pOpenInfo = %p, pMem = %p) = %s\n", (void*)device, (void*)pOpenInfo, (void*)pMem, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600499 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 Ehlis817736c2014-10-21 10:47:45 -0600505 return result;
506}
507
508XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600511 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 Ehlis73ff5672014-10-23 08:19:47 -0600512 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 Ehlis817736c2014-10-21 10:47:45 -0600518 return result;
519}
520
521XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDestroyObject(XGL_OBJECT object)
522{
523 XGL_RESULT result = nextTable.DestroyObject(object);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600524 printf("xglDestroyObject(object = %p) = %s\n", (void*)object, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600525 return result;
526}
527
528XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600531 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 Ehlis817736c2014-10-21 10:47:45 -0600532 return result;
533}
534
535XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600538 printf("xglBindObjectMemory(object = %p, mem = %p, offset = %i) = %s\n", (void*)object, (void*)mem, offset, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600539 return result;
540}
541
542XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600545 printf("xglCreateFence(device = %p, pCreateInfo = %p, pFence = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pFence, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600546 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 Ehlis817736c2014-10-21 10:47:45 -0600552 return result;
553}
554
555XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetFenceStatus(XGL_FENCE fence)
556{
557 XGL_RESULT result = nextTable.GetFenceStatus(fence);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600558 printf("xglGetFenceStatus(fence = %p) = %s\n", (void*)fence, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600559 return result;
560}
561
562XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600565 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 Ehlis817736c2014-10-21 10:47:45 -0600566 return result;
567}
568
569XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600572 printf("xglCreateQueueSemaphore(device = %p, pCreateInfo = %p, pSemaphore = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pSemaphore, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600573 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 Ehlis817736c2014-10-21 10:47:45 -0600579 return result;
580}
581
582XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglSignalQueueSemaphore(XGL_QUEUE queue, XGL_QUEUE_SEMAPHORE semaphore)
583{
584 XGL_RESULT result = nextTable.SignalQueueSemaphore(queue, semaphore);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600585 printf("xglSignalQueueSemaphore(queue = %p, semaphore = %p) = %s\n", (void*)queue, (void*)semaphore, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600586 return result;
587}
588
589XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglWaitQueueSemaphore(XGL_QUEUE queue, XGL_QUEUE_SEMAPHORE semaphore)
590{
591 XGL_RESULT result = nextTable.WaitQueueSemaphore(queue, semaphore);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600592 printf("xglWaitQueueSemaphore(queue = %p, semaphore = %p) = %s\n", (void*)queue, (void*)semaphore, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600593 return result;
594}
595
596XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600599 printf("xglCreateEvent(device = %p, pCreateInfo = %p, pEvent = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pEvent, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600600 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 Ehlis817736c2014-10-21 10:47:45 -0600606 return result;
607}
608
609XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetEventStatus(XGL_EVENT event)
610{
611 XGL_RESULT result = nextTable.GetEventStatus(event);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600612 printf("xglGetEventStatus(event = %p) = %s\n", (void*)event, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600613 return result;
614}
615
616XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglSetEvent(XGL_EVENT event)
617{
618 XGL_RESULT result = nextTable.SetEvent(event);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600619 printf("xglSetEvent(event = %p) = %s\n", (void*)event, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600620 return result;
621}
622
623XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglResetEvent(XGL_EVENT event)
624{
625 XGL_RESULT result = nextTable.ResetEvent(event);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600626 printf("xglResetEvent(event = %p) = %s\n", (void*)event, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600627 return result;
628}
629
630XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600633 printf("xglCreateQueryPool(device = %p, pCreateInfo = %p, pQueryPool = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pQueryPool, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600634 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 Ehlis817736c2014-10-21 10:47:45 -0600640 return result;
641}
642
643XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600646 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 Ehlis817736c2014-10-21 10:47:45 -0600647 return result;
648}
649
650XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600653 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 Ehlis817736c2014-10-21 10:47:45 -0600654 return result;
655}
656
657XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600660 printf("xglCreateImage(device = %p, pCreateInfo = %p, pImage = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pImage, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600661 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 Ehlis817736c2014-10-21 10:47:45 -0600667 return result;
668}
669
670XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600673 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 Ehlis73ff5672014-10-23 08:19:47 -0600674 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 Ehlis817736c2014-10-21 10:47:45 -0600680 return result;
681}
682
683XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600686 printf("xglCreateImageView(device = %p, pCreateInfo = %p, pView = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pView, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600687 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 Ehlis817736c2014-10-21 10:47:45 -0600693 return result;
694}
695
696XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600699 printf("xglCreateColorAttachmentView(device = %p, pCreateInfo = %p, pView = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pView, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600700 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 Ehlis817736c2014-10-21 10:47:45 -0600706 return result;
707}
708
709XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600712 printf("xglCreateDepthStencilView(device = %p, pCreateInfo = %p, pView = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pView, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600713 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 Ehlis817736c2014-10-21 10:47:45 -0600719 return result;
720}
721
722XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600725 printf("xglCreateShader(device = %p, pCreateInfo = %p, pShader = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pShader, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600726 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 Ehlis817736c2014-10-21 10:47:45 -0600732 return result;
733}
734
735XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600738 printf("xglCreateGraphicsPipeline(device = %p, pCreateInfo = %p, pPipeline = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pPipeline, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600739 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 Ehlis817736c2014-10-21 10:47:45 -0600745 return result;
746}
747
748XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600751 printf("xglCreateComputePipeline(device = %p, pCreateInfo = %p, pPipeline = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pPipeline, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600752 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 Ehlis817736c2014-10-21 10:47:45 -0600758 return result;
759}
760
761XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600764 printf("xglStorePipeline(pipeline = %p, pDataSize = %i, pData = %p) = %s\n", (void*)pipeline, *pDataSize, (void*)pData, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600765 return result;
766}
767
768XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600771 printf("xglLoadPipeline(device = %p, dataSize = %i, pData = %p, pPipeline = %p) = %s\n", (void*)device, dataSize, (void*)pData, (void*)pPipeline, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600772 return result;
773}
774
775XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600778 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 Ehlis817736c2014-10-21 10:47:45 -0600779 return result;
780}
781
782XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600785 printf("xglCreateSampler(device = %p, pCreateInfo = %p, pSampler = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pSampler, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600786 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 Ehlis817736c2014-10-21 10:47:45 -0600792 return result;
793}
794
795XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600798 printf("xglCreateDescriptorSet(device = %p, pCreateInfo = %p, pDescriptorSet = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pDescriptorSet, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600799 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 Ehlis817736c2014-10-21 10:47:45 -0600805 return result;
806}
807
808XGL_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
814XGL_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
820XGL_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
826XGL_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 Ehlis73ff5672014-10-23 08:19:47 -0600830 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 Ehlis817736c2014-10-21 10:47:45 -0600836}
837
838XGL_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 Ehlis73ff5672014-10-23 08:19:47 -0600842 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 Ehlis817736c2014-10-21 10:47:45 -0600848}
849
850XGL_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 Ehlis73ff5672014-10-23 08:19:47 -0600854 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 Ehlis817736c2014-10-21 10:47:45 -0600860}
861
862XGL_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
868XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600871 printf("xglCreateViewportState(device = %p, pCreateInfo = %p, pState = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pState, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600872 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 Ehlis817736c2014-10-21 10:47:45 -0600878 return result;
879}
880
881XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600884 printf("xglCreateRasterState(device = %p, pCreateInfo = %p, pState = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pState, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600885 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 Ehlis817736c2014-10-21 10:47:45 -0600891 return result;
892}
893
894XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600897 printf("xglCreateMsaaState(device = %p, pCreateInfo = %p, pState = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pState, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600898 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 Ehlis817736c2014-10-21 10:47:45 -0600904 return result;
905}
906
907XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600910 printf("xglCreateColorBlendState(device = %p, pCreateInfo = %p, pState = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pState, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600911 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 Ehlis817736c2014-10-21 10:47:45 -0600917 return result;
918}
919
920XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600923 printf("xglCreateDepthStencilState(device = %p, pCreateInfo = %p, pState = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pState, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600924 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 Ehlis817736c2014-10-21 10:47:45 -0600930 return result;
931}
932
933XGL_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 Ehlis92dbf802014-10-22 09:06:33 -0600936 printf("xglCreateCommandBuffer(device = %p, pCreateInfo = %p, pCmdBuffer = %p) = %s\n", (void*)device, (void*)pCreateInfo, (void*)*pCmdBuffer, string_XGL_RESULT(result));
Tobin Ehlis73ff5672014-10-23 08:19:47 -0600937 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 Ehlis817736c2014-10-21 10:47:45 -0600943 return result;
944}
945
946XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglBeginCommandBuffer(XGL_CMD_BUFFER cmdBuffer, XGL_FLAGS flags)
947{
948 XGL_RESULT result = nextTable.BeginCommandBuffer(cmdBuffer, flags);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600949 printf("xglBeginCommandBuffer(cmdBuffer = %p, flags = %i) = %s\n", (void*)cmdBuffer, flags, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600950 return result;
951}
952
953XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglEndCommandBuffer(XGL_CMD_BUFFER cmdBuffer)
954{
955 XGL_RESULT result = nextTable.EndCommandBuffer(cmdBuffer);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600956 printf("xglEndCommandBuffer(cmdBuffer = %p) = %s\n", (void*)cmdBuffer, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600957 return result;
958}
959
960XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglResetCommandBuffer(XGL_CMD_BUFFER cmdBuffer)
961{
962 XGL_RESULT result = nextTable.ResetCommandBuffer(cmdBuffer);
Tobin Ehlis92dbf802014-10-22 09:06:33 -0600963 printf("xglResetCommandBuffer(cmdBuffer = %p) = %s\n", (void*)cmdBuffer, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -0600964 return result;
965}
966
967XGL_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
973XGL_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
979XGL_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
985XGL_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
991XGL_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 Ehlis73ff5672014-10-23 08:19:47 -0600995 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 Ehlis817736c2014-10-21 10:47:45 -06001001}
1002
1003XGL_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 Ehlis92dbf802014-10-22 09:06:33 -06001006 printf("xglCmdBindIndexData(cmdBuffer = %p, mem = %p, offset = %i, indexType = %s)\n", (void*)cmdBuffer, (void*)mem, offset, string_XGL_INDEX_TYPE(indexType));
Tobin Ehlis817736c2014-10-21 10:47:45 -06001007}
1008
1009XGL_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 Ehlis73ff5672014-10-23 08:19:47 -06001013 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 Ehlis817736c2014-10-21 10:47:45 -06001024}
1025
1026XGL_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 Ehlis73ff5672014-10-23 08:19:47 -06001030 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 Ehlis817736c2014-10-21 10:47:45 -06001036}
1037
1038XGL_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 Ehlis73ff5672014-10-23 08:19:47 -06001042 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 Ehlis817736c2014-10-21 10:47:45 -06001048}
1049
1050XGL_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
1056XGL_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
1062XGL_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
1068XGL_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
1074XGL_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
1080XGL_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
1086XGL_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 Ehlis73ff5672014-10-23 08:19:47 -06001090 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 Ehlis817736c2014-10-21 10:47:45 -06001096}
1097
1098XGL_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 Ehlis73ff5672014-10-23 08:19:47 -06001102 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 Ehlis817736c2014-10-21 10:47:45 -06001108}
1109
1110XGL_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 Ehlis73ff5672014-10-23 08:19:47 -06001114 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 Ehlis817736c2014-10-21 10:47:45 -06001120}
1121
1122XGL_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 Ehlis73ff5672014-10-23 08:19:47 -06001126 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 Ehlis817736c2014-10-21 10:47:45 -06001132}
1133
1134XGL_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
1140XGL_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
1146XGL_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
1152XGL_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 Ehlis73ff5672014-10-23 08:19:47 -06001156 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 Ehlis817736c2014-10-21 10:47:45 -06001162}
1163
1164XGL_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 Ehlis73ff5672014-10-23 08:19:47 -06001168 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 Ehlis817736c2014-10-21 10:47:45 -06001174}
1175
1176XGL_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 Ehlis73ff5672014-10-23 08:19:47 -06001180 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 Ehlis817736c2014-10-21 10:47:45 -06001186}
1187
1188XGL_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 Ehlis73ff5672014-10-23 08:19:47 -06001192 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 Ehlis817736c2014-10-21 10:47:45 -06001198}
1199
1200XGL_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
1206XGL_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
1212XGL_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
1218XGL_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
1224XGL_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
1230XGL_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
1236XGL_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 Ehlis92dbf802014-10-22 09:06:33 -06001239 printf("xglCmdWriteTimestamp(cmdBuffer = %p, timestampType = %s, destMem = %p, destOffset = %i)\n", (void*)cmdBuffer, string_XGL_TIMESTAMP_TYPE(timestampType), (void*)destMem, destOffset);
Tobin Ehlis817736c2014-10-21 10:47:45 -06001240}
1241
1242XGL_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
1248XGL_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
1254XGL_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
1260XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDbgSetValidationLevel(XGL_DEVICE device, XGL_VALIDATION_LEVEL validationLevel)
1261{
1262 XGL_RESULT result = nextTable.DbgSetValidationLevel(device, validationLevel);
Tobin Ehlis92dbf802014-10-22 09:06:33 -06001263 printf("xglDbgSetValidationLevel(device = %p, validationLevel = %p) = %s\n", (void*)device, (void*)validationLevel, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -06001264 return result;
1265}
1266
1267XGL_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 Ehlis92dbf802014-10-22 09:06:33 -06001270 printf("xglDbgRegisterMsgCallback(pfnMsgCallback = %p, pUserData = %p) = %s\n", (void*)pfnMsgCallback, (void*)pUserData, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -06001271 return result;
1272}
1273
1274XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDbgUnregisterMsgCallback(XGL_DBG_MSG_CALLBACK_FUNCTION pfnMsgCallback)
1275{
1276 XGL_RESULT result = nextTable.DbgUnregisterMsgCallback(pfnMsgCallback);
Tobin Ehlis92dbf802014-10-22 09:06:33 -06001277 printf("xglDbgUnregisterMsgCallback(pfnMsgCallback = %p) = %s\n", (void*)pfnMsgCallback, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -06001278 return result;
1279}
1280
1281XGL_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 Ehlis92dbf802014-10-22 09:06:33 -06001284 printf("xglDbgSetMessageFilter(device = %p, msgCode = %i, filter = %p) = %s\n", (void*)device, msgCode, (void*)filter, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -06001285 return result;
1286}
1287
1288XGL_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 Ehlis92dbf802014-10-22 09:06:33 -06001291 printf("xglDbgSetObjectTag(object = %p, tagSize = %i, pTag = %p) = %s\n", (void*)object, tagSize, (void*)pTag, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -06001292 return result;
1293}
1294
1295XGL_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 Ehlis92dbf802014-10-22 09:06:33 -06001298 printf("xglDbgSetGlobalOption(dbgOption = %p, dataSize = %i, pData = %p) = %s\n", (void*)dbgOption, dataSize, (void*)pData, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -06001299 return result;
1300}
1301
1302XGL_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 Ehlis92dbf802014-10-22 09:06:33 -06001305 printf("xglDbgSetDeviceOption(device = %p, dbgOption = %p, dataSize = %i, pData = %p) = %s\n", (void*)device, (void*)dbgOption, dataSize, (void*)pData, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -06001306 return result;
1307}
1308
1309XGL_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
1315XGL_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
1321XGL_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 Ehlis817736c2014-10-21 10:47:45 -06001324 pCurObj = gpuw;
1325 pthread_once(&tabOnce, initLayerTable);
1326 XGL_RESULT result = nextTable.WsiX11AssociateConnection((XGL_PHYSICAL_GPU)gpuw->nextObject, pConnectionInfo);
Tobin Ehlis92dbf802014-10-22 09:06:33 -06001327 printf("xglWsiX11AssociateConnection(gpu = %p, pConnectionInfo = %p) = %s\n", (void*)gpu, (void*)pConnectionInfo, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -06001328 return result;
1329}
1330
1331XGL_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 Ehlis92dbf802014-10-22 09:06:33 -06001334 printf("xglWsiX11GetMSC(device = %p, crtc = %i, pMsc = %lu) = %s\n", (void*)device, crtc, *pMsc, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -06001335 return result;
1336}
1337
1338XGL_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 Ehlis92dbf802014-10-22 09:06:33 -06001341 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 Ehlis817736c2014-10-21 10:47:45 -06001342 return result;
1343}
1344
1345XGL_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 Ehlis92dbf802014-10-22 09:06:33 -06001348 printf("xglWsiX11QueuePresent(queue = %p, pPresentInfo = %p, fence = %p) = %s\n", (void*)queue, (void*)pPresentInfo, (void*)fence, string_XGL_RESULT(result));
Tobin Ehlis817736c2014-10-21 10:47:45 -06001349 return result;
1350}
1351
1352XGL_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