From b2c81932b057c42686cc07f04cd137f7daa9a40a Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sat, 27 Dec 2014 15:16:07 +0800 Subject: remove unnecessary casting between XGL_CHAR/char Many of the changed lines are generated. That should be fixed at some point. --- demos/cube.c | 6 +- demos/tri.c | 6 +- demos/xglinfo.c | 6 +- glave-generate.py | 26 +- icd/common/icd.c | 2 +- layers/basic.cpp | 488 ++++++++++++++++----------------- layers/draw_state.c | 246 ++++++++--------- layers/mem_tracker.c | 242 ++++++++--------- layers/multi.cpp | 726 +++++++++++++++++++++++++------------------------- loader/loader.c | 488 ++++++++++++++++----------------- xgl-generate.py | 6 +- xgl-layer-generate.py | 10 +- 12 files changed, 1126 insertions(+), 1126 deletions(-) diff --git a/demos/cube.c b/demos/cube.c index cf198229..fcf65c4b 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -1242,9 +1242,9 @@ static void demo_init_xgl(struct demo *demo) const XGL_APPLICATION_INFO app = { .sType = XGL_STRUCTURE_TYPE_APPLICATION_INFO, .pNext = NULL, - .pAppName = (const XGL_CHAR *) "cube", + .pAppName = "cube", .appVersion = 0, - .pEngineName = (const XGL_CHAR *) "cube", + .pEngineName = "cube", .engineVersion = 0, .apiVersion = XGL_MAKE_VERSION(0, 22, 0), }; @@ -1258,7 +1258,7 @@ static void demo_init_xgl(struct demo *demo) .queueCount = 1, }; const XGL_CHAR *ext_names[] = { - (const XGL_CHAR *) "XGL_WSI_X11", + "XGL_WSI_X11", }; const XGL_DEVICE_CREATE_INFO device = { .sType = XGL_STRUCTURE_TYPE_DEVICE_CREATE_INFO, diff --git a/demos/tri.c b/demos/tri.c index 0ca0d24f..0059e037 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -812,9 +812,9 @@ static void demo_init_xgl(struct demo *demo) const XGL_APPLICATION_INFO app = { .sType = XGL_STRUCTURE_TYPE_APPLICATION_INFO, .pNext = NULL, - .pAppName = (const XGL_CHAR *) "tri", + .pAppName = "tri", .appVersion = 0, - .pEngineName = (const XGL_CHAR *) "tri", + .pEngineName = "tri", .engineVersion = 0, .apiVersion = XGL_MAKE_VERSION(0, 22, 0), }; @@ -828,7 +828,7 @@ static void demo_init_xgl(struct demo *demo) .queueCount = 1, }; const XGL_CHAR *ext_names[] = { - (const XGL_CHAR *) "XGL_WSI_X11", + "XGL_WSI_X11", }; const XGL_DEVICE_CREATE_INFO device = { .sType = XGL_STRUCTURE_TYPE_DEVICE_CREATE_INFO, diff --git a/demos/xglinfo.c b/demos/xglinfo.c index 84ae453f..4dec489c 100644 --- a/demos/xglinfo.c +++ b/demos/xglinfo.c @@ -291,7 +291,7 @@ static void app_gpu_init_extensions(struct app_gpu *gpu) XGL_UINT i; static const XGL_CHAR *known_extensions[] = { - (const XGL_CHAR *) "XGL_WSI_X11", + "XGL_WSI_X11", }; for (i = 0; i < ARRAY_SIZE(known_extensions); i++) { @@ -605,9 +605,9 @@ int main(int argc, char **argv) static const XGL_APPLICATION_INFO app_info = { .sType = XGL_STRUCTURE_TYPE_APPLICATION_INFO, .pNext = NULL, - .pAppName = (const XGL_CHAR *) "xglinfo", + .pAppName = "xglinfo", .appVersion = 1, - .pEngineName = (const XGL_CHAR *) "xglinfo", + .pEngineName = "xglinfo", .engineVersion = 1, .apiVersion = XGL_MAKE_VERSION(0, 22, 0), }; diff --git a/glave-generate.py b/glave-generate.py index df418509..b7dfb06d 100755 --- a/glave-generate.py +++ b/glave-generate.py @@ -430,7 +430,7 @@ class Subcommand(object): elif 'VOID' in p.ty: packet_size += 'sizeof(%s) + ' % p.name elif 'CHAR' in p.ty: - packet_size += '((%s != NULL) ? strlen((const char *)%s) + 1 : 0) + ' % (p.name, p.name) + packet_size += '((%s != NULL) ? strlen(%s) + 1 : 0) + ' % (p.name, p.name) elif 'DEVICE_CREATE_INFO' in p.ty: packet_size += 'calc_size_XGL_DEVICE_CREATE_INFO(pCreateInfo) + ' elif 'pDataSize' in p.name: @@ -466,7 +466,7 @@ class Subcommand(object): func_body.append(' XGL_SIZE totStringSize = 0;') func_body.append(' uint32_t i = 0;') func_body.append(' for (i = 0; i < *pOutLayerCount; i++)') - func_body.append(' totStringSize += (pOutLayers[i] != NULL) ? strlen((const char*)pOutLayers[i]) + 1: 0;') + func_body.append(' totStringSize += (pOutLayers[i] != NULL) ? strlen(pOutLayers[i]) + 1: 0;') func_body.append(' CREATE_TRACE_PACKET(xgl%s, totStringSize + sizeof(XGL_SIZE));' % (proto.name)) elif proto.name in ['CreateShader', 'CreateGraphicsPipeline', 'CreateComputePipeline']: func_body.append(' size_t customSize;') @@ -499,7 +499,7 @@ class Subcommand(object): func_body.append(' pPacket->maxLayerCount = maxLayerCount;') func_body.append(' pPacket->maxStringSize = maxStringSize;') func_body.append(' for (i = 0; i < *pOutLayerCount; i++) {') - func_body.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&(pPacket->pOutLayers[i]), ((pOutLayers[i] != NULL) ? strlen((const char *)pOutLayers[i]) + 1 : 0), pOutLayers[i]);') + func_body.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&(pPacket->pOutLayers[i]), ((pOutLayers[i] != NULL) ? strlen(pOutLayers[i]) + 1 : 0), pOutLayers[i]);') func_body.append(' glv_finalize_buffer_address(pHeader, (void**)&(pPacket->pOutLayers[i]));') func_body.append(' }') func_body.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&(pPacket->pOutLayerCount), sizeof(XGL_SIZE), pOutLayerCount);') @@ -514,7 +514,7 @@ class Subcommand(object): if 'DEVICE_CREATE_INFO' in proto.params[idx].ty: func_body.append(' add_XGL_DEVICE_CREATE_INFO_to_packet(pHeader, (XGL_DEVICE_CREATE_INFO**) &(pPacket->pCreateInfo), pCreateInfo);') elif 'CHAR' in proto.params[idx].ty: - func_body.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&(pPacket->%s), ((%s != NULL) ? strlen((const char *)%s) + 1 : 0), %s);' % (proto.params[idx].name, proto.params[idx].name, proto.params[idx].name, proto.params[idx].name)) + func_body.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&(pPacket->%s), ((%s != NULL) ? strlen(%s) + 1 : 0), %s);' % (proto.params[idx].name, proto.params[idx].name, proto.params[idx].name, proto.params[idx].name)) elif 'Count' in proto.params[idx-1].name and 'queryCount' != proto.params[idx-1].name: func_body.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&(pPacket->%s), %s*sizeof(%s), %s);' % (proto.params[idx].name, proto.params[idx-1].name, proto.params[idx].ty.strip('*').strip('const '), proto.params[idx].name)) elif 'dataSize' == proto.params[idx].name: @@ -572,7 +572,7 @@ class Subcommand(object): packet_size += p.name if '*' in p.ty and 'pSysMem' != p.name: if 'CHAR' in p.ty: - packet_size += '((%s != NULL) ? strlen((const char *)%s) + 1 : 0) + ' % (p.name, p.name) + packet_size += '((%s != NULL) ? strlen(%s) + 1 : 0) + ' % (p.name, p.name) elif 'Size' not in packet_size: packet_size += 'sizeof(%s) + ' % p.ty.strip('*').strip('const ') buff_ptr_indices.append(proto.params.index(p)) @@ -599,7 +599,7 @@ class Subcommand(object): func_body.append(packet_update_txt.strip('\n')) for idx in buff_ptr_indices: if 'CHAR' in proto.params[idx].ty: - func_body.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&(pPacket->%s), ((%s != NULL) ? strlen((const char *)%s) + 1 : 0), %s);' % (proto.params[idx].name, proto.params[idx].name, proto.params[idx].name, proto.params[idx].name)) + func_body.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&(pPacket->%s), ((%s != NULL) ? strlen(%s) + 1 : 0), %s);' % (proto.params[idx].name, proto.params[idx].name, proto.params[idx].name, proto.params[idx].name)) elif 'Size' in proto.params[idx-1].name: func_body.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&(pPacket->%s), %s, %s);' % (proto.params[idx].name, proto.params[idx-1].name, proto.params[idx].name)) else: @@ -1069,13 +1069,13 @@ class Subcommand(object): pid_enum.append('//=============================================================================') pid_enum.append('static uint64_t calc_size_XGL_APPLICATION_INFO(const XGL_APPLICATION_INFO* pStruct)') pid_enum.append('{') - pid_enum.append(' return ((pStruct == NULL) ? 0 : sizeof(XGL_APPLICATION_INFO)) + strlen((const char *)pStruct->pAppName) + 1 + strlen((const char *)pStruct->pEngineName) + 1;') + pid_enum.append(' return ((pStruct == NULL) ? 0 : sizeof(XGL_APPLICATION_INFO)) + strlen(pStruct->pAppName) + 1 + strlen(pStruct->pEngineName) + 1;') pid_enum.append('}\n') pid_enum.append('static void add_XGL_APPLICATION_INFO_to_packet(glv_trace_packet_header* pHeader, XGL_APPLICATION_INFO** ppStruct, const XGL_APPLICATION_INFO *pInStruct)') pid_enum.append('{') pid_enum.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)ppStruct, sizeof(XGL_APPLICATION_INFO), pInStruct);') - pid_enum.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&((*ppStruct)->pAppName), strlen((const char *)pInStruct->pAppName) + 1, (const char *)pInStruct->pAppName);') - pid_enum.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&((*ppStruct)->pEngineName), strlen((const char *)pInStruct->pEngineName) + 1, (const char *)pInStruct->pEngineName);') + pid_enum.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&((*ppStruct)->pAppName), strlen(pInStruct->pAppName) + 1, pInStruct->pAppName);') + pid_enum.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&((*ppStruct)->pEngineName), strlen(pInStruct->pEngineName) + 1, pInStruct->pEngineName);') pid_enum.append(' glv_finalize_buffer_address(pHeader, (void**)&((*ppStruct)->pAppName));') pid_enum.append(' glv_finalize_buffer_address(pHeader, (void**)&((*ppStruct)->pEngineName));') pid_enum.append(' glv_finalize_buffer_address(pHeader, (void**)&*ppStruct);') @@ -1087,7 +1087,7 @@ class Subcommand(object): pid_enum.append(' uint32_t i;') pid_enum.append(' for (i = 0; i < pStruct->extensionCount; i++)') pid_enum.append(' {') - pid_enum.append(' total_size_ppEnabledExtensionNames += strlen((const char *)pStruct->ppEnabledExtensionNames[i]) + 1;') + pid_enum.append(' total_size_ppEnabledExtensionNames += strlen(pStruct->ppEnabledExtensionNames[i]) + 1;') pid_enum.append(' }') pid_enum.append(' return sizeof(XGL_DEVICE_CREATE_INFO) + (pStruct->queueRecordCount*sizeof(XGL_DEVICE_CREATE_INFO)) + total_size_ppEnabledExtensionNames;') pid_enum.append('}\n') @@ -1102,7 +1102,7 @@ class Subcommand(object): pid_enum.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)(&(*ppStruct)->ppEnabledExtensionNames), pInStruct->extensionCount * sizeof(XGL_CHAR *), pInStruct->ppEnabledExtensionNames);') pid_enum.append(' for (i = 0; i < pInStruct->extensionCount; i++)') pid_enum.append(' {') - pid_enum.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)(&((*ppStruct)->ppEnabledExtensionNames[i])), strlen((const char *)pInStruct->ppEnabledExtensionNames[i]) + 1, (const char *)pInStruct->ppEnabledExtensionNames[i]);') + pid_enum.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)(&((*ppStruct)->ppEnabledExtensionNames[i])), strlen(pInStruct->ppEnabledExtensionNames[i]) + 1, pInStruct->ppEnabledExtensionNames[i]);') pid_enum.append(' glv_finalize_buffer_address(pHeader, (void**)(&((*ppStruct)->ppEnabledExtensionNames[i])));') pid_enum.append(' }') pid_enum.append(' glv_finalize_buffer_address(pHeader, (void **)&(*ppStruct)->ppEnabledExtensionNames);') @@ -2006,10 +2006,10 @@ class Subcommand(object): ges_body.append(' if (replayResult == XGL_SUCCESS) {') ges_body.append(' for (unsigned int ext = 0; ext < sizeof(g_extensions) / sizeof(g_extensions[0]); ext++)') ges_body.append(' {') - ges_body.append(' if (!strncmp((const char *)g_extensions[ext], (const char *)pPacket->pExtName, strlen(g_extensions[ext]))) {') + ges_body.append(' if (!strncmp(g_extensions[ext], pPacket->pExtName, strlen(g_extensions[ext]))) {') ges_body.append(' bool extInList = false;') ges_body.append(' for (unsigned int j = 0; j < m_display->m_extensions.size(); ++j) {') - ges_body.append(' if (!strncmp((const char *)m_display->m_extensions[j], (const char *)g_extensions[ext], strlen(g_extensions[ext])))') + ges_body.append(' if (!strncmp(m_display->m_extensions[j], g_extensions[ext], strlen(g_extensions[ext])))') ges_body.append(' extInList = true;') ges_body.append(' break;') ges_body.append(' }') diff --git a/icd/common/icd.c b/icd/common/icd.c index 90487f32..2fc8977c 100644 --- a/icd/common/icd.c +++ b/icd/common/icd.c @@ -87,7 +87,7 @@ void icd_msg(XGL_DBG_MSG_TYPE msg_type, while (cb) { cb->func(msg_type, XGL_VALIDATION_LEVEL_0, XGL_NULL_HANDLE, 0, - msg_code, (const XGL_CHAR *) msg, cb->data); + msg_code, msg, cb->data); cb = cb->next; } diff --git a/layers/basic.cpp b/layers/basic.cpp index 221dc98b..8e9efd0c 100644 --- a/layers/basic.cpp +++ b/layers/basic.cpp @@ -47,126 +47,126 @@ static XGL_LAYER_DISPATCH_TABLE * initLayerTable(const XGL_BASE_LAYER_OBJECT *gp fpGPA = gpuw->pGPA; assert(fpGPA); pTable->GetProcAddr = fpGPA; - pTable->InitAndEnumerateGpus = (InitAndEnumerateGpusType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglInitAndEnumerateGpus"); - pTable->GetGpuInfo = (GetGpuInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetGpuInfo"); - pTable->CreateDevice = (CreateDeviceType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateDevice"); - pTable->DestroyDevice = (DestroyDeviceType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDestroyDevice"); - pTable->GetExtensionSupport = (GetExtensionSupportType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetExtensionSupport"); - pTable->EnumerateLayers = (EnumerateLayersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglEnumerateLayers"); - pTable->GetDeviceQueue = (GetDeviceQueueType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetDeviceQueue"); - pTable->QueueSubmit = (QueueSubmitType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglQueueSubmit"); - pTable->QueueSetGlobalMemReferences = (QueueSetGlobalMemReferencesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglQueueSetGlobalMemReferences"); - pTable->QueueWaitIdle = (QueueWaitIdleType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglQueueWaitIdle"); - pTable->DeviceWaitIdle = (DeviceWaitIdleType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDeviceWaitIdle"); - pTable->GetMemoryHeapCount = (GetMemoryHeapCountType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetMemoryHeapCount"); - pTable->GetMemoryHeapInfo = (GetMemoryHeapInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetMemoryHeapInfo"); - pTable->AllocMemory = (AllocMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglAllocMemory"); - pTable->FreeMemory = (FreeMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglFreeMemory"); - pTable->SetMemoryPriority = (SetMemoryPriorityType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglSetMemoryPriority"); - pTable->MapMemory = (MapMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglMapMemory"); - pTable->UnmapMemory = (UnmapMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglUnmapMemory"); - pTable->PinSystemMemory = (PinSystemMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglPinSystemMemory"); - pTable->RemapVirtualMemoryPages = (RemapVirtualMemoryPagesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglRemapVirtualMemoryPages"); - pTable->GetMultiGpuCompatibility = (GetMultiGpuCompatibilityType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetMultiGpuCompatibility"); - pTable->OpenSharedMemory = (OpenSharedMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglOpenSharedMemory"); - pTable->OpenSharedQueueSemaphore = (OpenSharedQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglOpenSharedQueueSemaphore"); - pTable->OpenPeerMemory = (OpenPeerMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglOpenPeerMemory"); - pTable->OpenPeerImage = (OpenPeerImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglOpenPeerImage"); - pTable->DestroyObject = (DestroyObjectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDestroyObject"); - pTable->GetObjectInfo = (GetObjectInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetObjectInfo"); - pTable->BindObjectMemory = (BindObjectMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglBindObjectMemory"); - pTable->CreateFence = (CreateFenceType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateFence"); - pTable->GetFenceStatus = (GetFenceStatusType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetFenceStatus"); - pTable->WaitForFences = (WaitForFencesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglWaitForFences"); - pTable->CreateQueueSemaphore = (CreateQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateQueueSemaphore"); - pTable->SignalQueueSemaphore = (SignalQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglSignalQueueSemaphore"); - pTable->WaitQueueSemaphore = (WaitQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglWaitQueueSemaphore"); - pTable->CreateEvent = (CreateEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateEvent"); - pTable->GetEventStatus = (GetEventStatusType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetEventStatus"); - pTable->SetEvent = (SetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglSetEvent"); - pTable->ResetEvent = (ResetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglResetEvent"); - pTable->CreateQueryPool = (CreateQueryPoolType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateQueryPool"); - pTable->GetQueryPoolResults = (GetQueryPoolResultsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetQueryPoolResults"); - pTable->GetFormatInfo = (GetFormatInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetFormatInfo"); - pTable->CreateImage = (CreateImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateImage"); - pTable->GetImageSubresourceInfo = (GetImageSubresourceInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetImageSubresourceInfo"); - pTable->CreateImageView = (CreateImageViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateImageView"); - pTable->CreateColorAttachmentView = (CreateColorAttachmentViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateColorAttachmentView"); - pTable->CreateDepthStencilView = (CreateDepthStencilViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateDepthStencilView"); - pTable->CreateShader = (CreateShaderType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateShader"); - pTable->CreateGraphicsPipeline = (CreateGraphicsPipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateGraphicsPipeline"); - pTable->CreateComputePipeline = (CreateComputePipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateComputePipeline"); - pTable->StorePipeline = (StorePipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglStorePipeline"); - pTable->LoadPipeline = (LoadPipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglLoadPipeline"); - pTable->CreatePipelineDelta = (CreatePipelineDeltaType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreatePipelineDelta"); - pTable->CreateSampler = (CreateSamplerType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateSampler"); - pTable->CreateDescriptorSet = (CreateDescriptorSetType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateDescriptorSet"); - pTable->BeginDescriptorSetUpdate = (BeginDescriptorSetUpdateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglBeginDescriptorSetUpdate"); - pTable->EndDescriptorSetUpdate = (EndDescriptorSetUpdateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglEndDescriptorSetUpdate"); - pTable->AttachSamplerDescriptors = (AttachSamplerDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglAttachSamplerDescriptors"); - pTable->AttachImageViewDescriptors = (AttachImageViewDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglAttachImageViewDescriptors"); - pTable->AttachMemoryViewDescriptors = (AttachMemoryViewDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglAttachMemoryViewDescriptors"); - pTable->AttachNestedDescriptors = (AttachNestedDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglAttachNestedDescriptors"); - pTable->ClearDescriptorSetSlots = (ClearDescriptorSetSlotsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglClearDescriptorSetSlots"); - pTable->CreateViewportState = (CreateViewportStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateViewportState"); - pTable->CreateRasterState = (CreateRasterStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateRasterState"); - pTable->CreateMsaaState = (CreateMsaaStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateMsaaState"); - pTable->CreateColorBlendState = (CreateColorBlendStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateColorBlendState"); - pTable->CreateDepthStencilState = (CreateDepthStencilStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateDepthStencilState"); - pTable->CreateCommandBuffer = (CreateCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateCommandBuffer"); - pTable->BeginCommandBuffer = (BeginCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglBeginCommandBuffer"); - pTable->EndCommandBuffer = (EndCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglEndCommandBuffer"); - pTable->ResetCommandBuffer = (ResetCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglResetCommandBuffer"); - pTable->CmdBindPipeline = (CmdBindPipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindPipeline"); - pTable->CmdBindPipelineDelta = (CmdBindPipelineDeltaType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindPipelineDelta"); - pTable->CmdBindStateObject = (CmdBindStateObjectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindStateObject"); - pTable->CmdBindDescriptorSet = (CmdBindDescriptorSetType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindDescriptorSet"); - pTable->CmdBindDynamicMemoryView = (CmdBindDynamicMemoryViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindDynamicMemoryView"); - pTable->CmdBindVertexData = (CmdBindVertexDataType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindVertexData"); - pTable->CmdBindIndexData = (CmdBindIndexDataType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindIndexData"); - pTable->CmdBindAttachments = (CmdBindAttachmentsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindAttachments"); - pTable->CmdPrepareMemoryRegions = (CmdPrepareMemoryRegionsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdPrepareMemoryRegions"); - pTable->CmdPrepareImages = (CmdPrepareImagesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdPrepareImages"); - pTable->CmdDraw = (CmdDrawType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDraw"); - pTable->CmdDrawIndexed = (CmdDrawIndexedType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDrawIndexed"); - pTable->CmdDrawIndirect = (CmdDrawIndirectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDrawIndirect"); - pTable->CmdDrawIndexedIndirect = (CmdDrawIndexedIndirectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDrawIndexedIndirect"); - pTable->CmdDispatch = (CmdDispatchType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDispatch"); - pTable->CmdDispatchIndirect = (CmdDispatchIndirectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDispatchIndirect"); - pTable->CmdCopyMemory = (CmdCopyMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdCopyMemory"); - pTable->CmdCopyImage = (CmdCopyImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdCopyImage"); - pTable->CmdCopyMemoryToImage = (CmdCopyMemoryToImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdCopyMemoryToImage"); - pTable->CmdCopyImageToMemory = (CmdCopyImageToMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdCopyImageToMemory"); - pTable->CmdCloneImageData = (CmdCloneImageDataType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdCloneImageData"); - pTable->CmdUpdateMemory = (CmdUpdateMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdUpdateMemory"); - pTable->CmdFillMemory = (CmdFillMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdFillMemory"); - pTable->CmdClearColorImage = (CmdClearColorImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdClearColorImage"); - pTable->CmdClearColorImageRaw = (CmdClearColorImageRawType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdClearColorImageRaw"); - pTable->CmdClearDepthStencil = (CmdClearDepthStencilType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdClearDepthStencil"); - pTable->CmdResolveImage = (CmdResolveImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdResolveImage"); - pTable->CmdSetEvent = (CmdSetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdSetEvent"); - pTable->CmdResetEvent = (CmdResetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdResetEvent"); - pTable->CmdMemoryAtomic = (CmdMemoryAtomicType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdMemoryAtomic"); - pTable->CmdBeginQuery = (CmdBeginQueryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBeginQuery"); - pTable->CmdEndQuery = (CmdEndQueryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdEndQuery"); - pTable->CmdResetQueryPool = (CmdResetQueryPoolType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdResetQueryPool"); - pTable->CmdWriteTimestamp = (CmdWriteTimestampType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdWriteTimestamp"); - pTable->CmdInitAtomicCounters = (CmdInitAtomicCountersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdInitAtomicCounters"); - pTable->CmdLoadAtomicCounters = (CmdLoadAtomicCountersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdLoadAtomicCounters"); - pTable->CmdSaveAtomicCounters = (CmdSaveAtomicCountersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdSaveAtomicCounters"); - pTable->DbgSetValidationLevel = (DbgSetValidationLevelType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgSetValidationLevel"); - pTable->DbgRegisterMsgCallback = (DbgRegisterMsgCallbackType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgRegisterMsgCallback"); - pTable->DbgUnregisterMsgCallback = (DbgUnregisterMsgCallbackType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgUnregisterMsgCallback"); - pTable->DbgSetMessageFilter = (DbgSetMessageFilterType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgSetMessageFilter"); - pTable->DbgSetObjectTag = (DbgSetObjectTagType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgSetObjectTag"); - pTable->DbgSetGlobalOption = (DbgSetGlobalOptionType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgSetGlobalOption"); - pTable->DbgSetDeviceOption = (DbgSetDeviceOptionType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgSetDeviceOption"); - pTable->CmdDbgMarkerBegin = (CmdDbgMarkerBeginType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDbgMarkerBegin"); - pTable->CmdDbgMarkerEnd = (CmdDbgMarkerEndType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDbgMarkerEnd"); - pTable->WsiX11AssociateConnection = (WsiX11AssociateConnectionType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglWsiX11AssociateConnection"); - pTable->WsiX11GetMSC = (WsiX11GetMSCType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglWsiX11GetMSC"); - pTable->WsiX11CreatePresentableImage = (WsiX11CreatePresentableImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglWsiX11CreatePresentableImage"); - pTable->WsiX11QueuePresent = (WsiX11QueuePresentType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglWsiX11QueuePresent"); + pTable->InitAndEnumerateGpus = (InitAndEnumerateGpusType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglInitAndEnumerateGpus"); + pTable->GetGpuInfo = (GetGpuInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetGpuInfo"); + pTable->CreateDevice = (CreateDeviceType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateDevice"); + pTable->DestroyDevice = (DestroyDeviceType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDestroyDevice"); + pTable->GetExtensionSupport = (GetExtensionSupportType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetExtensionSupport"); + pTable->EnumerateLayers = (EnumerateLayersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglEnumerateLayers"); + pTable->GetDeviceQueue = (GetDeviceQueueType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetDeviceQueue"); + pTable->QueueSubmit = (QueueSubmitType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglQueueSubmit"); + pTable->QueueSetGlobalMemReferences = (QueueSetGlobalMemReferencesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglQueueSetGlobalMemReferences"); + pTable->QueueWaitIdle = (QueueWaitIdleType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglQueueWaitIdle"); + pTable->DeviceWaitIdle = (DeviceWaitIdleType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDeviceWaitIdle"); + pTable->GetMemoryHeapCount = (GetMemoryHeapCountType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetMemoryHeapCount"); + pTable->GetMemoryHeapInfo = (GetMemoryHeapInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetMemoryHeapInfo"); + pTable->AllocMemory = (AllocMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglAllocMemory"); + pTable->FreeMemory = (FreeMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglFreeMemory"); + pTable->SetMemoryPriority = (SetMemoryPriorityType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglSetMemoryPriority"); + pTable->MapMemory = (MapMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglMapMemory"); + pTable->UnmapMemory = (UnmapMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglUnmapMemory"); + pTable->PinSystemMemory = (PinSystemMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglPinSystemMemory"); + pTable->RemapVirtualMemoryPages = (RemapVirtualMemoryPagesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglRemapVirtualMemoryPages"); + pTable->GetMultiGpuCompatibility = (GetMultiGpuCompatibilityType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetMultiGpuCompatibility"); + pTable->OpenSharedMemory = (OpenSharedMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglOpenSharedMemory"); + pTable->OpenSharedQueueSemaphore = (OpenSharedQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglOpenSharedQueueSemaphore"); + pTable->OpenPeerMemory = (OpenPeerMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglOpenPeerMemory"); + pTable->OpenPeerImage = (OpenPeerImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglOpenPeerImage"); + pTable->DestroyObject = (DestroyObjectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDestroyObject"); + pTable->GetObjectInfo = (GetObjectInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetObjectInfo"); + pTable->BindObjectMemory = (BindObjectMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglBindObjectMemory"); + pTable->CreateFence = (CreateFenceType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateFence"); + pTable->GetFenceStatus = (GetFenceStatusType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetFenceStatus"); + pTable->WaitForFences = (WaitForFencesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglWaitForFences"); + pTable->CreateQueueSemaphore = (CreateQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateQueueSemaphore"); + pTable->SignalQueueSemaphore = (SignalQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglSignalQueueSemaphore"); + pTable->WaitQueueSemaphore = (WaitQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglWaitQueueSemaphore"); + pTable->CreateEvent = (CreateEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateEvent"); + pTable->GetEventStatus = (GetEventStatusType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetEventStatus"); + pTable->SetEvent = (SetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglSetEvent"); + pTable->ResetEvent = (ResetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglResetEvent"); + pTable->CreateQueryPool = (CreateQueryPoolType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateQueryPool"); + pTable->GetQueryPoolResults = (GetQueryPoolResultsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetQueryPoolResults"); + pTable->GetFormatInfo = (GetFormatInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetFormatInfo"); + pTable->CreateImage = (CreateImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateImage"); + pTable->GetImageSubresourceInfo = (GetImageSubresourceInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetImageSubresourceInfo"); + pTable->CreateImageView = (CreateImageViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateImageView"); + pTable->CreateColorAttachmentView = (CreateColorAttachmentViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateColorAttachmentView"); + pTable->CreateDepthStencilView = (CreateDepthStencilViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateDepthStencilView"); + pTable->CreateShader = (CreateShaderType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateShader"); + pTable->CreateGraphicsPipeline = (CreateGraphicsPipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateGraphicsPipeline"); + pTable->CreateComputePipeline = (CreateComputePipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateComputePipeline"); + pTable->StorePipeline = (StorePipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglStorePipeline"); + pTable->LoadPipeline = (LoadPipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglLoadPipeline"); + pTable->CreatePipelineDelta = (CreatePipelineDeltaType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreatePipelineDelta"); + pTable->CreateSampler = (CreateSamplerType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateSampler"); + pTable->CreateDescriptorSet = (CreateDescriptorSetType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateDescriptorSet"); + pTable->BeginDescriptorSetUpdate = (BeginDescriptorSetUpdateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglBeginDescriptorSetUpdate"); + pTable->EndDescriptorSetUpdate = (EndDescriptorSetUpdateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglEndDescriptorSetUpdate"); + pTable->AttachSamplerDescriptors = (AttachSamplerDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglAttachSamplerDescriptors"); + pTable->AttachImageViewDescriptors = (AttachImageViewDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglAttachImageViewDescriptors"); + pTable->AttachMemoryViewDescriptors = (AttachMemoryViewDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglAttachMemoryViewDescriptors"); + pTable->AttachNestedDescriptors = (AttachNestedDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglAttachNestedDescriptors"); + pTable->ClearDescriptorSetSlots = (ClearDescriptorSetSlotsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglClearDescriptorSetSlots"); + pTable->CreateViewportState = (CreateViewportStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateViewportState"); + pTable->CreateRasterState = (CreateRasterStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateRasterState"); + pTable->CreateMsaaState = (CreateMsaaStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateMsaaState"); + pTable->CreateColorBlendState = (CreateColorBlendStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateColorBlendState"); + pTable->CreateDepthStencilState = (CreateDepthStencilStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateDepthStencilState"); + pTable->CreateCommandBuffer = (CreateCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateCommandBuffer"); + pTable->BeginCommandBuffer = (BeginCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglBeginCommandBuffer"); + pTable->EndCommandBuffer = (EndCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglEndCommandBuffer"); + pTable->ResetCommandBuffer = (ResetCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglResetCommandBuffer"); + pTable->CmdBindPipeline = (CmdBindPipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindPipeline"); + pTable->CmdBindPipelineDelta = (CmdBindPipelineDeltaType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindPipelineDelta"); + pTable->CmdBindStateObject = (CmdBindStateObjectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindStateObject"); + pTable->CmdBindDescriptorSet = (CmdBindDescriptorSetType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindDescriptorSet"); + pTable->CmdBindDynamicMemoryView = (CmdBindDynamicMemoryViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindDynamicMemoryView"); + pTable->CmdBindVertexData = (CmdBindVertexDataType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindVertexData"); + pTable->CmdBindIndexData = (CmdBindIndexDataType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindIndexData"); + pTable->CmdBindAttachments = (CmdBindAttachmentsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindAttachments"); + pTable->CmdPrepareMemoryRegions = (CmdPrepareMemoryRegionsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdPrepareMemoryRegions"); + pTable->CmdPrepareImages = (CmdPrepareImagesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdPrepareImages"); + pTable->CmdDraw = (CmdDrawType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDraw"); + pTable->CmdDrawIndexed = (CmdDrawIndexedType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDrawIndexed"); + pTable->CmdDrawIndirect = (CmdDrawIndirectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDrawIndirect"); + pTable->CmdDrawIndexedIndirect = (CmdDrawIndexedIndirectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDrawIndexedIndirect"); + pTable->CmdDispatch = (CmdDispatchType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDispatch"); + pTable->CmdDispatchIndirect = (CmdDispatchIndirectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDispatchIndirect"); + pTable->CmdCopyMemory = (CmdCopyMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdCopyMemory"); + pTable->CmdCopyImage = (CmdCopyImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdCopyImage"); + pTable->CmdCopyMemoryToImage = (CmdCopyMemoryToImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdCopyMemoryToImage"); + pTable->CmdCopyImageToMemory = (CmdCopyImageToMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdCopyImageToMemory"); + pTable->CmdCloneImageData = (CmdCloneImageDataType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdCloneImageData"); + pTable->CmdUpdateMemory = (CmdUpdateMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdUpdateMemory"); + pTable->CmdFillMemory = (CmdFillMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdFillMemory"); + pTable->CmdClearColorImage = (CmdClearColorImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdClearColorImage"); + pTable->CmdClearColorImageRaw = (CmdClearColorImageRawType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdClearColorImageRaw"); + pTable->CmdClearDepthStencil = (CmdClearDepthStencilType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdClearDepthStencil"); + pTable->CmdResolveImage = (CmdResolveImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdResolveImage"); + pTable->CmdSetEvent = (CmdSetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdSetEvent"); + pTable->CmdResetEvent = (CmdResetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdResetEvent"); + pTable->CmdMemoryAtomic = (CmdMemoryAtomicType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdMemoryAtomic"); + pTable->CmdBeginQuery = (CmdBeginQueryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBeginQuery"); + pTable->CmdEndQuery = (CmdEndQueryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdEndQuery"); + pTable->CmdResetQueryPool = (CmdResetQueryPoolType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdResetQueryPool"); + pTable->CmdWriteTimestamp = (CmdWriteTimestampType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdWriteTimestamp"); + pTable->CmdInitAtomicCounters = (CmdInitAtomicCountersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdInitAtomicCounters"); + pTable->CmdLoadAtomicCounters = (CmdLoadAtomicCountersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdLoadAtomicCounters"); + pTable->CmdSaveAtomicCounters = (CmdSaveAtomicCountersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdSaveAtomicCounters"); + pTable->DbgSetValidationLevel = (DbgSetValidationLevelType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgSetValidationLevel"); + pTable->DbgRegisterMsgCallback = (DbgRegisterMsgCallbackType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgRegisterMsgCallback"); + pTable->DbgUnregisterMsgCallback = (DbgUnregisterMsgCallbackType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgUnregisterMsgCallback"); + pTable->DbgSetMessageFilter = (DbgSetMessageFilterType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgSetMessageFilter"); + pTable->DbgSetObjectTag = (DbgSetObjectTagType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgSetObjectTag"); + pTable->DbgSetGlobalOption = (DbgSetGlobalOptionType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgSetGlobalOption"); + pTable->DbgSetDeviceOption = (DbgSetDeviceOptionType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgSetDeviceOption"); + pTable->CmdDbgMarkerBegin = (CmdDbgMarkerBeginType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDbgMarkerBegin"); + pTable->CmdDbgMarkerEnd = (CmdDbgMarkerEndType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDbgMarkerEnd"); + pTable->WsiX11AssociateConnection = (WsiX11AssociateConnectionType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglWsiX11AssociateConnection"); + pTable->WsiX11GetMSC = (WsiX11GetMSCType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglWsiX11GetMSC"); + pTable->WsiX11CreatePresentableImage = (WsiX11CreatePresentableImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglWsiX11CreatePresentableImage"); + pTable->WsiX11QueuePresent = (WsiX11QueuePresentType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglWsiX11QueuePresent"); return pTable; } @@ -184,7 +184,7 @@ XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetExtensionSupport(XGL_PHYSICAL_GPU gpu, XGL_LAYER_DISPATCH_TABLE* pTable = initLayerTable(gpuw); printf("At start of wrapped xglGetExtensionSupport() call w/ gpu: %p\n", (void*)gpu); - if (!strncmp((const char *) pExtName, "xglLayerExtension1", strlen("xglLayerExtension1"))) + if (!strncmp(pExtName, "xglLayerExtension1", strlen("xglLayerExtension1"))) result = XGL_SUCCESS; else result = pTable->GetExtensionSupport((XGL_PHYSICAL_GPU)gpuw->nextObject, pExtName); @@ -234,7 +234,7 @@ XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglEnumerateLayers(XGL_PHYSICAL_GPU gpu, XGL_ GetGpuInfoType fpGetGpuInfo; XGL_PHYSICAL_GPU_PROPERTIES gpuProps; XGL_SIZE dataSize = sizeof(XGL_PHYSICAL_GPU_PROPERTIES); - fpGetGpuInfo = (GetGpuInfoType) gpuw->pGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetGpuInfo"); + fpGetGpuInfo = (GetGpuInfoType) gpuw->pGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetGpuInfo"); fpGetGpuInfo((XGL_PHYSICAL_GPU) gpuw->nextObject, XGL_INFO_TYPE_PHYSICAL_GPU_PROPERTIES, &dataSize, &gpuProps); if (gpuProps.vendorId == 0x8086) { @@ -255,249 +255,249 @@ XGL_LAYER_EXPORT XGL_VOID * XGLAPI xglGetProcAddr(XGL_PHYSICAL_GPU gpu, const XG if (gpu == NULL) return NULL; pTable = initLayerTable((const XGL_BASE_LAYER_OBJECT *) gpu); - if (!strncmp("xglGetProcAddr", (const char *) pName, sizeof("xglGetProcAddr"))) + if (!strncmp("xglGetProcAddr", pName, sizeof("xglGetProcAddr"))) return (XGL_VOID *) xglGetProcAddr; - else if (!strncmp("xglInitAndEnumerateGpus", (const char *) pName, sizeof("xglInitAndEnumerateGpus"))) + else if (!strncmp("xglInitAndEnumerateGpus", pName, sizeof("xglInitAndEnumerateGpus"))) return (XGL_VOID *) pTable->InitAndEnumerateGpus; - if (!strncmp("xglGetGpuInfo", (const char *) pName, sizeof ("xglGetGpuInfo"))) + if (!strncmp("xglGetGpuInfo", pName, sizeof ("xglGetGpuInfo"))) return (XGL_VOID *) pTable->GetGpuInfo; - else if (!strncmp("xglCreateDevice", (const char *) pName, sizeof ("xglCreateDevice"))) + else if (!strncmp("xglCreateDevice", pName, sizeof ("xglCreateDevice"))) return (XGL_VOID *) xglCreateDevice; - else if (!strncmp("xglDestroyDevice", (const char *) pName, sizeof ("xglDestroyDevice"))) + else if (!strncmp("xglDestroyDevice", pName, sizeof ("xglDestroyDevice"))) return (XGL_VOID *) pTable->DestroyDevice; - else if (!strncmp("xglGetExtensionSupport", (const char *) pName, sizeof ("xglGetExtensionSupport"))) + else if (!strncmp("xglGetExtensionSupport", pName, sizeof ("xglGetExtensionSupport"))) return (XGL_VOID *) xglGetExtensionSupport; - else if (!strncmp("xglEnumerateLayers", (const char *) pName, sizeof ("xglEnumerateLayers"))) + else if (!strncmp("xglEnumerateLayers", pName, sizeof ("xglEnumerateLayers"))) return (XGL_VOID *) xglEnumerateLayers; - else if (!strncmp("xglGetDeviceQueue", (const char *) pName, sizeof ("xglGetDeviceQueue"))) + else if (!strncmp("xglGetDeviceQueue", pName, sizeof ("xglGetDeviceQueue"))) return (XGL_VOID *) pTable->GetDeviceQueue; - else if (!strncmp("xglQueueSubmit", (const char *) pName, sizeof ("xglQueueSubmit"))) + else if (!strncmp("xglQueueSubmit", pName, sizeof ("xglQueueSubmit"))) return (XGL_VOID *) pTable->QueueSubmit; - else if (!strncmp("xglQueueSetGlobalMemReferences", (const char *) pName, sizeof ("xglQueueSetGlobalMemReferences"))) + else if (!strncmp("xglQueueSetGlobalMemReferences", pName, sizeof ("xglQueueSetGlobalMemReferences"))) return (XGL_VOID *) pTable->QueueSetGlobalMemReferences; - else if (!strncmp("xglQueueWaitIdle", (const char *) pName, sizeof ("xglQueueWaitIdle"))) + else if (!strncmp("xglQueueWaitIdle", pName, sizeof ("xglQueueWaitIdle"))) return (XGL_VOID *) pTable->QueueWaitIdle; - else if (!strncmp("xglDeviceWaitIdle", (const char *) pName, sizeof ("xglDeviceWaitIdle"))) + else if (!strncmp("xglDeviceWaitIdle", pName, sizeof ("xglDeviceWaitIdle"))) return (XGL_VOID *) pTable->DeviceWaitIdle; - else if (!strncmp("xglGetMemoryHeapCount", (const char *) pName, sizeof ("xglGetMemoryHeapCount"))) + else if (!strncmp("xglGetMemoryHeapCount", pName, sizeof ("xglGetMemoryHeapCount"))) return (XGL_VOID *) pTable->GetMemoryHeapCount; - else if (!strncmp("xglGetMemoryHeapInfo", (const char *) pName, sizeof ("xglGetMemoryHeapInfo"))) + else if (!strncmp("xglGetMemoryHeapInfo", pName, sizeof ("xglGetMemoryHeapInfo"))) return (XGL_VOID *) pTable->GetMemoryHeapInfo; - else if (!strncmp("xglAllocMemory", (const char *) pName, sizeof ("xglAllocMemory"))) + else if (!strncmp("xglAllocMemory", pName, sizeof ("xglAllocMemory"))) return (XGL_VOID *) pTable->AllocMemory; - else if (!strncmp("xglFreeMemory", (const char *) pName, sizeof ("xglFreeMemory"))) + else if (!strncmp("xglFreeMemory", pName, sizeof ("xglFreeMemory"))) return (XGL_VOID *) pTable->FreeMemory; - else if (!strncmp("xglSetMemoryPriority", (const char *) pName, sizeof ("xglSetMemoryPriority"))) + else if (!strncmp("xglSetMemoryPriority", pName, sizeof ("xglSetMemoryPriority"))) return (XGL_VOID *) pTable->SetMemoryPriority; - else if (!strncmp("xglMapMemory", (const char *) pName, sizeof ("xglMapMemory"))) + else if (!strncmp("xglMapMemory", pName, sizeof ("xglMapMemory"))) return (XGL_VOID *) pTable->MapMemory; - else if (!strncmp("xglUnmapMemory", (const char *) pName, sizeof ("xglUnmapMemory"))) + else if (!strncmp("xglUnmapMemory", pName, sizeof ("xglUnmapMemory"))) return (XGL_VOID *) pTable->UnmapMemory; - else if (!strncmp("xglPinSystemMemory", (const char *) pName, sizeof ("xglPinSystemMemory"))) + else if (!strncmp("xglPinSystemMemory", pName, sizeof ("xglPinSystemMemory"))) return (XGL_VOID *) pTable->PinSystemMemory; - else if (!strncmp("xglRemapVirtualMemoryPages", (const char *) pName, sizeof ("xglRemapVirtualMemoryPages"))) + else if (!strncmp("xglRemapVirtualMemoryPages", pName, sizeof ("xglRemapVirtualMemoryPages"))) return (XGL_VOID *) pTable->RemapVirtualMemoryPages; - else if (!strncmp("xglGetMultiGpuCompatibility", (const char *) pName, sizeof ("xglGetMultiGpuCompatibility"))) + else if (!strncmp("xglGetMultiGpuCompatibility", pName, sizeof ("xglGetMultiGpuCompatibility"))) return (XGL_VOID *) pTable->GetMultiGpuCompatibility; - else if (!strncmp("xglOpenSharedMemory", (const char *) pName, sizeof ("xglOpenSharedMemory"))) + else if (!strncmp("xglOpenSharedMemory", pName, sizeof ("xglOpenSharedMemory"))) return (XGL_VOID *) pTable->OpenSharedMemory; - else if (!strncmp("xglOpenSharedQueueSemaphore", (const char *) pName, sizeof ("xglOpenSharedQueueSemaphore"))) + else if (!strncmp("xglOpenSharedQueueSemaphore", pName, sizeof ("xglOpenSharedQueueSemaphore"))) return (XGL_VOID *) pTable->OpenSharedQueueSemaphore; - else if (!strncmp("xglOpenPeerMemory", (const char *) pName, sizeof ("xglOpenPeerMemory"))) + else if (!strncmp("xglOpenPeerMemory", pName, sizeof ("xglOpenPeerMemory"))) return (XGL_VOID *) pTable->OpenPeerMemory; - else if (!strncmp("xglOpenPeerImage", (const char *) pName, sizeof ("xglOpenPeerImage"))) + else if (!strncmp("xglOpenPeerImage", pName, sizeof ("xglOpenPeerImage"))) return (XGL_VOID *) pTable->OpenPeerImage; - else if (!strncmp("xglDestroyObject", (const char *) pName, sizeof ("xglDestroyObject"))) + else if (!strncmp("xglDestroyObject", pName, sizeof ("xglDestroyObject"))) return (XGL_VOID *) pTable->DestroyObject; - else if (!strncmp("xglGetObjectInfo", (const char *) pName, sizeof ("xglGetObjectInfo"))) + else if (!strncmp("xglGetObjectInfo", pName, sizeof ("xglGetObjectInfo"))) return (XGL_VOID *) pTable->GetObjectInfo; - else if (!strncmp("xglBindObjectMemory", (const char *) pName, sizeof ("xglBindObjectMemory"))) + else if (!strncmp("xglBindObjectMemory", pName, sizeof ("xglBindObjectMemory"))) return (XGL_VOID *) pTable->BindObjectMemory; - else if (!strncmp("xglCreateFence", (const char *) pName, sizeof ("xgllCreateFence"))) + else if (!strncmp("xglCreateFence", pName, sizeof ("xgllCreateFence"))) return (XGL_VOID *) pTable->CreateFence; - else if (!strncmp("xglGetFenceStatus", (const char *) pName, sizeof ("xglGetFenceStatus"))) + else if (!strncmp("xglGetFenceStatus", pName, sizeof ("xglGetFenceStatus"))) return (XGL_VOID *) pTable->GetFenceStatus; - else if (!strncmp("xglWaitForFences", (const char *) pName, sizeof ("xglWaitForFences"))) + else if (!strncmp("xglWaitForFences", pName, sizeof ("xglWaitForFences"))) return (XGL_VOID *) pTable->WaitForFences; - else if (!strncmp("xglCreateQueueSemaphore", (const char *) pName, sizeof ("xgllCreateQueueSemaphore"))) + else if (!strncmp("xglCreateQueueSemaphore", pName, sizeof ("xgllCreateQueueSemaphore"))) return (XGL_VOID *) pTable->CreateQueueSemaphore; - else if (!strncmp("xglSignalQueueSemaphore", (const char *) pName, sizeof ("xglSignalQueueSemaphore"))) + else if (!strncmp("xglSignalQueueSemaphore", pName, sizeof ("xglSignalQueueSemaphore"))) return (XGL_VOID *) pTable->SignalQueueSemaphore; - else if (!strncmp("xglWaitQueueSemaphore", (const char *) pName, sizeof ("xglWaitQueueSemaphore"))) + else if (!strncmp("xglWaitQueueSemaphore", pName, sizeof ("xglWaitQueueSemaphore"))) return (XGL_VOID *) pTable->WaitQueueSemaphore; - else if (!strncmp("xglCreateEvent", (const char *) pName, sizeof ("xgllCreateEvent"))) + else if (!strncmp("xglCreateEvent", pName, sizeof ("xgllCreateEvent"))) return (XGL_VOID *) pTable->CreateEvent; - else if (!strncmp("xglGetEventStatus", (const char *) pName, sizeof ("xglGetEventStatus"))) + else if (!strncmp("xglGetEventStatus", pName, sizeof ("xglGetEventStatus"))) return (XGL_VOID *) pTable->GetEventStatus; - else if (!strncmp("xglSetEvent", (const char *) pName, sizeof ("xglSetEvent"))) + else if (!strncmp("xglSetEvent", pName, sizeof ("xglSetEvent"))) return (XGL_VOID *) pTable->SetEvent; - else if (!strncmp("xglResetEvent", (const char *) pName, sizeof ("xgllResetEvent"))) + else if (!strncmp("xglResetEvent", pName, sizeof ("xgllResetEvent"))) return (XGL_VOID *) pTable->ResetEvent; - else if (!strncmp("xglCreateQueryPool", (const char *) pName, sizeof ("xglCreateQueryPool"))) + else if (!strncmp("xglCreateQueryPool", pName, sizeof ("xglCreateQueryPool"))) return (XGL_VOID *) pTable->CreateQueryPool; - else if (!strncmp("xglGetQueryPoolResults", (const char *) pName, sizeof ("xglGetQueryPoolResults"))) + else if (!strncmp("xglGetQueryPoolResults", pName, sizeof ("xglGetQueryPoolResults"))) return (XGL_VOID *) pTable->GetQueryPoolResults; - else if (!strncmp("xglGetFormatInfo", (const char *) pName, sizeof ("xglGetFormatInfo"))) + else if (!strncmp("xglGetFormatInfo", pName, sizeof ("xglGetFormatInfo"))) return (XGL_VOID *) xglGetFormatInfo; - else if (!strncmp("xglCreateImage", (const char *) pName, sizeof ("xglCreateImage"))) + else if (!strncmp("xglCreateImage", pName, sizeof ("xglCreateImage"))) return (XGL_VOID *) pTable->CreateImage; - else if (!strncmp("xglGetImageSubresourceInfo", (const char *) pName, sizeof ("xglGetImageSubresourceInfo"))) + else if (!strncmp("xglGetImageSubresourceInfo", pName, sizeof ("xglGetImageSubresourceInfo"))) return (XGL_VOID *) pTable->GetImageSubresourceInfo; - else if (!strncmp("xglCreateImageView", (const char *) pName, sizeof ("xglCreateImageView"))) + else if (!strncmp("xglCreateImageView", pName, sizeof ("xglCreateImageView"))) return (XGL_VOID *) pTable->CreateImageView; - else if (!strncmp("xglCreateColorAttachmentView", (const char *) pName, sizeof ("xglCreateColorAttachmentView"))) + else if (!strncmp("xglCreateColorAttachmentView", pName, sizeof ("xglCreateColorAttachmentView"))) return (XGL_VOID *) pTable->CreateColorAttachmentView; - else if (!strncmp("xglCreateDepthStencilView", (const char *) pName, sizeof ("xglCreateDepthStencilView"))) + else if (!strncmp("xglCreateDepthStencilView", pName, sizeof ("xglCreateDepthStencilView"))) return (XGL_VOID *) pTable->CreateDepthStencilView; - else if (!strncmp("xglCreateShader", (const char *) pName, sizeof ("xglCreateShader"))) + else if (!strncmp("xglCreateShader", pName, sizeof ("xglCreateShader"))) return (XGL_VOID *) pTable->CreateShader; - else if (!strncmp("xglCreateGraphicsPipeline", (const char *) pName, sizeof ("xglCreateGraphicsPipeline"))) + else if (!strncmp("xglCreateGraphicsPipeline", pName, sizeof ("xglCreateGraphicsPipeline"))) return (XGL_VOID *) pTable->CreateGraphicsPipeline; - else if (!strncmp("xglCreateComputePipeline", (const char *) pName, sizeof ("xglCreateComputePipeline"))) + else if (!strncmp("xglCreateComputePipeline", pName, sizeof ("xglCreateComputePipeline"))) return (XGL_VOID *) pTable->CreateComputePipeline; - else if (!strncmp("xglStorePipeline", (const char *) pName, sizeof ("xglStorePipeline"))) + else if (!strncmp("xglStorePipeline", pName, sizeof ("xglStorePipeline"))) return (XGL_VOID *) pTable->StorePipeline; - else if (!strncmp("xglLoadPipeline", (const char *) pName, sizeof ("xglLoadPipeline"))) + else if (!strncmp("xglLoadPipeline", pName, sizeof ("xglLoadPipeline"))) return (XGL_VOID *) pTable->LoadPipeline; - else if (!strncmp("xglCreatePipelineDelta", (const char *) pName, sizeof ("xglCreatePipelineDelta"))) + else if (!strncmp("xglCreatePipelineDelta", pName, sizeof ("xglCreatePipelineDelta"))) return (XGL_VOID *) pTable->CreatePipelineDelta; - else if (!strncmp("xglCreateSampler", (const char *) pName, sizeof ("xglCreateSampler"))) + else if (!strncmp("xglCreateSampler", pName, sizeof ("xglCreateSampler"))) return (XGL_VOID *) pTable->CreateSampler; - else if (!strncmp("xglCreateDescriptorSet", (const char *) pName, sizeof ("xglCreateDescriptorSet"))) + else if (!strncmp("xglCreateDescriptorSet", pName, sizeof ("xglCreateDescriptorSet"))) return (XGL_VOID *) pTable->CreateDescriptorSet; - else if (!strncmp("xglBeginDescriptorSetUpdate", (const char *) pName, sizeof ("xglBeginDescriptorSetUpdate"))) + else if (!strncmp("xglBeginDescriptorSetUpdate", pName, sizeof ("xglBeginDescriptorSetUpdate"))) return (XGL_VOID *) pTable->BeginDescriptorSetUpdate; - else if (!strncmp("xglEndDescriptorSetUpdate", (const char *) pName, sizeof ("xglEndDescriptorSetUpdate"))) + else if (!strncmp("xglEndDescriptorSetUpdate", pName, sizeof ("xglEndDescriptorSetUpdate"))) return (XGL_VOID *) pTable->EndDescriptorSetUpdate; - else if (!strncmp("xglAttachSamplerDescriptors", (const char *) pName, sizeof ("xglAttachSamplerDescriptors"))) + else if (!strncmp("xglAttachSamplerDescriptors", pName, sizeof ("xglAttachSamplerDescriptors"))) return (XGL_VOID *) pTable->AttachSamplerDescriptors; - else if (!strncmp("xglAttachImageViewDescriptors", (const char *) pName, sizeof ("xglAttachImageViewDescriptors"))) + else if (!strncmp("xglAttachImageViewDescriptors", pName, sizeof ("xglAttachImageViewDescriptors"))) return (XGL_VOID *) pTable->AttachImageViewDescriptors; - else if (!strncmp("xglAttachMemoryViewDescriptors", (const char *) pName, sizeof ("xglAttachMemoryViewDescriptors"))) + else if (!strncmp("xglAttachMemoryViewDescriptors", pName, sizeof ("xglAttachMemoryViewDescriptors"))) return (XGL_VOID *) pTable->AttachMemoryViewDescriptors; - else if (!strncmp("xglAttachNestedDescriptors", (const char *) pName, sizeof ("xglAttachNestedDescriptors"))) + else if (!strncmp("xglAttachNestedDescriptors", pName, sizeof ("xglAttachNestedDescriptors"))) return (XGL_VOID *) pTable->AttachNestedDescriptors; - else if (!strncmp("xglClearDescriptorSetSlots", (const char *) pName, sizeof ("xglClearDescriptorSetSlots"))) + else if (!strncmp("xglClearDescriptorSetSlots", pName, sizeof ("xglClearDescriptorSetSlots"))) return (XGL_VOID *) pTable->ClearDescriptorSetSlots; - else if (!strncmp("xglCreateViewportState", (const char *) pName, sizeof ("xglCreateViewportState"))) + else if (!strncmp("xglCreateViewportState", pName, sizeof ("xglCreateViewportState"))) return (XGL_VOID *) pTable->CreateViewportState; - else if (!strncmp("xglCreateRasterState", (const char *) pName, sizeof ("xglCreateRasterState"))) + else if (!strncmp("xglCreateRasterState", pName, sizeof ("xglCreateRasterState"))) return (XGL_VOID *) pTable->CreateRasterState; - else if (!strncmp("xglCreateMsaaState", (const char *) pName, sizeof ("xglCreateMsaaState"))) + else if (!strncmp("xglCreateMsaaState", pName, sizeof ("xglCreateMsaaState"))) return (XGL_VOID *) pTable->CreateMsaaState; - else if (!strncmp("xglCreateColorBlendState", (const char *) pName, sizeof ("xglCreateColorBlendState"))) + else if (!strncmp("xglCreateColorBlendState", pName, sizeof ("xglCreateColorBlendState"))) return (XGL_VOID *) pTable->CreateColorBlendState; - else if (!strncmp("xglCreateDepthStencilState", (const char *) pName, sizeof ("xglCreateDepthStencilState"))) + else if (!strncmp("xglCreateDepthStencilState", pName, sizeof ("xglCreateDepthStencilState"))) return (XGL_VOID *) pTable->CreateDepthStencilState; - else if (!strncmp("xglCreateCommandBuffer", (const char *) pName, sizeof ("xglCreateCommandBuffer"))) + else if (!strncmp("xglCreateCommandBuffer", pName, sizeof ("xglCreateCommandBuffer"))) return (XGL_VOID *) pTable->CreateCommandBuffer; - else if (!strncmp("xglBeginCommandBuffer", (const char *) pName, sizeof ("xglBeginCommandBuffer"))) + else if (!strncmp("xglBeginCommandBuffer", pName, sizeof ("xglBeginCommandBuffer"))) return (XGL_VOID *) pTable->BeginCommandBuffer; - else if (!strncmp("xglEndCommandBuffer", (const char *) pName, sizeof ("xglEndCommandBuffer"))) + else if (!strncmp("xglEndCommandBuffer", pName, sizeof ("xglEndCommandBuffer"))) return (XGL_VOID *) pTable->EndCommandBuffer; - else if (!strncmp("xglResetCommandBuffer", (const char *) pName, sizeof ("xglResetCommandBuffer"))) + else if (!strncmp("xglResetCommandBuffer", pName, sizeof ("xglResetCommandBuffer"))) return (XGL_VOID *) pTable->ResetCommandBuffer; - else if (!strncmp("xglCmdBindPipeline", (const char *) pName, sizeof ("xglCmdBindPipeline"))) + else if (!strncmp("xglCmdBindPipeline", pName, sizeof ("xglCmdBindPipeline"))) return (XGL_VOID *) pTable->CmdBindPipeline; - else if (!strncmp("xglCmdBindPipelineDelta", (const char *) pName, sizeof ("xglCmdBindPipelineDelta"))) + else if (!strncmp("xglCmdBindPipelineDelta", pName, sizeof ("xglCmdBindPipelineDelta"))) return (XGL_VOID *) pTable->CmdBindPipelineDelta; - else if (!strncmp("xglCmdBindStateObject", (const char *) pName, sizeof ("xglCmdBindStateObject"))) + else if (!strncmp("xglCmdBindStateObject", pName, sizeof ("xglCmdBindStateObject"))) return (XGL_VOID *) pTable->CmdBindStateObject; - else if (!strncmp("xglCmdBindDescriptorSet", (const char *) pName, sizeof ("xglCmdBindDescriptorSet"))) + else if (!strncmp("xglCmdBindDescriptorSet", pName, sizeof ("xglCmdBindDescriptorSet"))) return (XGL_VOID *) pTable->CmdBindDescriptorSet; - else if (!strncmp("xglCmdBindDynamicMemoryView", (const char *) pName, sizeof ("xglCmdBindDynamicMemoryView"))) + else if (!strncmp("xglCmdBindDynamicMemoryView", pName, sizeof ("xglCmdBindDynamicMemoryView"))) return (XGL_VOID *) pTable->CmdBindDynamicMemoryView; - else if (!strncmp("xglCmdBindVertexData", (const char *) pName, sizeof ("xglCmdBindVertexData"))) + else if (!strncmp("xglCmdBindVertexData", pName, sizeof ("xglCmdBindVertexData"))) return (XGL_VOID *) pTable->CmdBindVertexData; - else if (!strncmp("xglCmdBindIndexData", (const char *) pName, sizeof ("xglCmdBindIndexData"))) + else if (!strncmp("xglCmdBindIndexData", pName, sizeof ("xglCmdBindIndexData"))) return (XGL_VOID *) pTable->CmdBindIndexData; - else if (!strncmp("xglCmdBindAttachments", (const char *) pName, sizeof ("xglCmdBindAttachments"))) + else if (!strncmp("xglCmdBindAttachments", pName, sizeof ("xglCmdBindAttachments"))) return (XGL_VOID *) pTable->CmdBindAttachments; - else if (!strncmp("xglCmdPrepareMemoryRegions", (const char *) pName, sizeof ("xglCmdPrepareMemoryRegions"))) + else if (!strncmp("xglCmdPrepareMemoryRegions", pName, sizeof ("xglCmdPrepareMemoryRegions"))) return (XGL_VOID *) pTable->CmdPrepareMemoryRegions; - else if (!strncmp("xglCmdPrepareImages", (const char *) pName, sizeof ("xglCmdPrepareImages"))) + else if (!strncmp("xglCmdPrepareImages", pName, sizeof ("xglCmdPrepareImages"))) return (XGL_VOID *) pTable->CmdPrepareImages; - else if (!strncmp("xglCmdDraw", (const char *) pName, sizeof ("xglCmdDraw"))) + else if (!strncmp("xglCmdDraw", pName, sizeof ("xglCmdDraw"))) return (XGL_VOID *) pTable->CmdDraw; - else if (!strncmp("xglCmdDrawIndexed", (const char *) pName, sizeof ("xglCmdDrawIndexed"))) + else if (!strncmp("xglCmdDrawIndexed", pName, sizeof ("xglCmdDrawIndexed"))) return (XGL_VOID *) pTable->CmdDrawIndexed; - else if (!strncmp("xglCmdDrawIndirect", (const char *) pName, sizeof ("xglCmdDrawIndirect"))) + else if (!strncmp("xglCmdDrawIndirect", pName, sizeof ("xglCmdDrawIndirect"))) return (XGL_VOID *) pTable->CmdDrawIndirect; - else if (!strncmp("xglCmdDrawIndexedIndirect", (const char *) pName, sizeof ("xglCmdDrawIndexedIndirect"))) + else if (!strncmp("xglCmdDrawIndexedIndirect", pName, sizeof ("xglCmdDrawIndexedIndirect"))) return (XGL_VOID *) pTable->CmdDrawIndexedIndirect; - else if (!strncmp("xglCmdDispatch", (const char *) pName, sizeof ("xglCmdDispatch"))) + else if (!strncmp("xglCmdDispatch", pName, sizeof ("xglCmdDispatch"))) return (XGL_VOID *) pTable->CmdDispatch; - else if (!strncmp("xglCmdDispatchIndirect", (const char *) pName, sizeof ("xglCmdDispatchIndirect"))) + else if (!strncmp("xglCmdDispatchIndirect", pName, sizeof ("xglCmdDispatchIndirect"))) return (XGL_VOID *) pTable->CmdDispatchIndirect; - else if (!strncmp("xglCmdCopyMemory", (const char *) pName, sizeof ("xglCmdCopyMemory"))) + else if (!strncmp("xglCmdCopyMemory", pName, sizeof ("xglCmdCopyMemory"))) return (XGL_VOID *) pTable->CmdCopyMemory; - else if (!strncmp("xglCmdCopyImage", (const char *) pName, sizeof ("xglCmdCopyImage"))) + else if (!strncmp("xglCmdCopyImage", pName, sizeof ("xglCmdCopyImage"))) return (XGL_VOID *) pTable->CmdCopyImage; - else if (!strncmp("xglCmdCopyMemoryToImage", (const char *) pName, sizeof ("xglCmdCopyMemoryToImage"))) + else if (!strncmp("xglCmdCopyMemoryToImage", pName, sizeof ("xglCmdCopyMemoryToImage"))) return (XGL_VOID *) pTable->CmdCopyMemoryToImage; - else if (!strncmp("xglCmdCopyImageToMemory", (const char *) pName, sizeof ("xglCmdCopyImageToMemory"))) + else if (!strncmp("xglCmdCopyImageToMemory", pName, sizeof ("xglCmdCopyImageToMemory"))) return (XGL_VOID *) pTable->CmdCopyImageToMemory; - else if (!strncmp("xglCmdCloneImageData", (const char *) pName, sizeof ("xglCmdCloneImageData"))) + else if (!strncmp("xglCmdCloneImageData", pName, sizeof ("xglCmdCloneImageData"))) return (XGL_VOID *) pTable->CmdCloneImageData; - else if (!strncmp("xglCmdUpdateMemory", (const char *) pName, sizeof ("xglCmdUpdateMemory"))) + else if (!strncmp("xglCmdUpdateMemory", pName, sizeof ("xglCmdUpdateMemory"))) return (XGL_VOID *) pTable->CmdUpdateMemory; - else if (!strncmp("xglCmdFillMemory", (const char *) pName, sizeof ("xglCmdFillMemory"))) + else if (!strncmp("xglCmdFillMemory", pName, sizeof ("xglCmdFillMemory"))) return (XGL_VOID *) pTable->CmdFillMemory; - else if (!strncmp("xglCmdClearColorImage", (const char *) pName, sizeof ("xglCmdClearColorImage"))) + else if (!strncmp("xglCmdClearColorImage", pName, sizeof ("xglCmdClearColorImage"))) return (XGL_VOID *) pTable->CmdClearColorImage; - else if (!strncmp("xglCmdClearColorImageRaw", (const char *) pName, sizeof ("xglCmdClearColorImageRaw"))) + else if (!strncmp("xglCmdClearColorImageRaw", pName, sizeof ("xglCmdClearColorImageRaw"))) return (XGL_VOID *) pTable->CmdClearColorImageRaw; - else if (!strncmp("xglCmdClearDepthStencil", (const char *) pName, sizeof ("xglCmdClearDepthStencil"))) + else if (!strncmp("xglCmdClearDepthStencil", pName, sizeof ("xglCmdClearDepthStencil"))) return (XGL_VOID *) pTable->CmdClearDepthStencil; - else if (!strncmp("xglCmdResolveImage", (const char *) pName, sizeof ("xglCmdResolveImage"))) + else if (!strncmp("xglCmdResolveImage", pName, sizeof ("xglCmdResolveImage"))) return (XGL_VOID *) pTable->CmdResolveImage; - else if (!strncmp("xglCmdSetEvent", (const char *) pName, sizeof ("xglCmdSetEvent"))) + else if (!strncmp("xglCmdSetEvent", pName, sizeof ("xglCmdSetEvent"))) return (XGL_VOID *) pTable->CmdSetEvent; - else if (!strncmp("xglCmdResetEvent", (const char *) pName, sizeof ("xglCmdResetEvent"))) + else if (!strncmp("xglCmdResetEvent", pName, sizeof ("xglCmdResetEvent"))) return (XGL_VOID *) pTable->CmdResetEvent; - else if (!strncmp("xglCmdMemoryAtomic", (const char *) pName, sizeof ("xglCmdMemoryAtomic"))) + else if (!strncmp("xglCmdMemoryAtomic", pName, sizeof ("xglCmdMemoryAtomic"))) return (XGL_VOID *) pTable->CmdMemoryAtomic; - else if (!strncmp("xglCmdBeginQuery", (const char *) pName, sizeof ("xglCmdBeginQuery"))) + else if (!strncmp("xglCmdBeginQuery", pName, sizeof ("xglCmdBeginQuery"))) return (XGL_VOID *) pTable->CmdBeginQuery; - else if (!strncmp("xglCmdEndQuery", (const char *) pName, sizeof ("xglCmdEndQuery"))) + else if (!strncmp("xglCmdEndQuery", pName, sizeof ("xglCmdEndQuery"))) return (XGL_VOID *) pTable->CmdEndQuery; - else if (!strncmp("xglCmdResetQueryPool", (const char *) pName, sizeof ("xglCmdResetQueryPool"))) + else if (!strncmp("xglCmdResetQueryPool", pName, sizeof ("xglCmdResetQueryPool"))) return (XGL_VOID *) pTable->CmdResetQueryPool; - else if (!strncmp("xglCmdWriteTimestamp", (const char *) pName, sizeof ("xglCmdWriteTimestamp"))) + else if (!strncmp("xglCmdWriteTimestamp", pName, sizeof ("xglCmdWriteTimestamp"))) return (XGL_VOID *) pTable->CmdWriteTimestamp; - else if (!strncmp("xglCmdInitAtomicCounters", (const char *) pName, sizeof ("xglCmdInitAtomicCounters"))) + else if (!strncmp("xglCmdInitAtomicCounters", pName, sizeof ("xglCmdInitAtomicCounters"))) return (XGL_VOID *) pTable->CmdInitAtomicCounters; - else if (!strncmp("xglCmdLoadAtomicCounters", (const char *) pName, sizeof ("xglCmdLoadAtomicCounters"))) + else if (!strncmp("xglCmdLoadAtomicCounters", pName, sizeof ("xglCmdLoadAtomicCounters"))) return (XGL_VOID *) pTable->CmdLoadAtomicCounters; - else if (!strncmp("xglCmdSaveAtomicCounters", (const char *) pName, sizeof ("xglCmdSaveAtomicCounters"))) + else if (!strncmp("xglCmdSaveAtomicCounters", pName, sizeof ("xglCmdSaveAtomicCounters"))) return (XGL_VOID *) pTable->CmdSaveAtomicCounters; - else if (!strncmp("xglDbgSetValidationLevel", (const char *) pName, sizeof ("xglDbgSetValidationLevel"))) + else if (!strncmp("xglDbgSetValidationLevel", pName, sizeof ("xglDbgSetValidationLevel"))) return (XGL_VOID *) pTable->DbgSetValidationLevel; - else if (!strncmp("xglDbgRegisterMsgCallback", (const char *) pName, sizeof ("xglDbgRegisterMsgCallback"))) + else if (!strncmp("xglDbgRegisterMsgCallback", pName, sizeof ("xglDbgRegisterMsgCallback"))) return (XGL_VOID *) pTable->DbgRegisterMsgCallback; - else if (!strncmp("xglDbgUnregisterMsgCallback", (const char *) pName, sizeof ("xglDbgUnregisterMsgCallback"))) + else if (!strncmp("xglDbgUnregisterMsgCallback", pName, sizeof ("xglDbgUnregisterMsgCallback"))) return (XGL_VOID *) pTable->DbgUnregisterMsgCallback; - else if (!strncmp("xglDbgSetMessageFilter", (const char *) pName, sizeof ("xglDbgSetMessageFilter"))) + else if (!strncmp("xglDbgSetMessageFilter", pName, sizeof ("xglDbgSetMessageFilter"))) return (XGL_VOID *) pTable->DbgSetMessageFilter; - else if (!strncmp("xglDbgSetObjectTag", (const char *) pName, sizeof ("xglDbgSetObjectTag"))) + else if (!strncmp("xglDbgSetObjectTag", pName, sizeof ("xglDbgSetObjectTag"))) return (XGL_VOID *) pTable->DbgSetObjectTag; - else if (!strncmp("xglDbgSetGlobalOption", (const char *) pName, sizeof ("xglDbgSetGlobalOption"))) + else if (!strncmp("xglDbgSetGlobalOption", pName, sizeof ("xglDbgSetGlobalOption"))) return (XGL_VOID *) pTable->DbgSetGlobalOption; - else if (!strncmp("xglDbgSetDeviceOption", (const char *) pName, sizeof ("xglDbgSetDeviceOption"))) + else if (!strncmp("xglDbgSetDeviceOption", pName, sizeof ("xglDbgSetDeviceOption"))) return (XGL_VOID *) pTable->DbgSetDeviceOption; - else if (!strncmp("xglCmdDbgMarkerBegin", (const char *) pName, sizeof ("xglCmdDbgMarkerBegin"))) + else if (!strncmp("xglCmdDbgMarkerBegin", pName, sizeof ("xglCmdDbgMarkerBegin"))) return (XGL_VOID *) pTable->CmdDbgMarkerBegin; - else if (!strncmp("xglCmdDbgMarkerEnd", (const char *) pName, sizeof ("xglCmdDbgMarkerEnd"))) + else if (!strncmp("xglCmdDbgMarkerEnd", pName, sizeof ("xglCmdDbgMarkerEnd"))) return (XGL_VOID *) pTable->CmdDbgMarkerEnd; - else if (!strncmp("xglWsiX11AssociateConnection", (const char *) pName, sizeof("xglWsiX11AssociateConnection"))) + else if (!strncmp("xglWsiX11AssociateConnection", pName, sizeof("xglWsiX11AssociateConnection"))) return (XGL_VOID *) pTable->WsiX11AssociateConnection; - else if (!strncmp("xglWsiX11GetMSC", (const char *) pName, sizeof("xglWsiX11GetMSC"))) + else if (!strncmp("xglWsiX11GetMSC", pName, sizeof("xglWsiX11GetMSC"))) return (XGL_VOID *) pTable->WsiX11GetMSC; - else if (!strncmp("xglWsiX11CreatePresentableImage", (const char *) pName, sizeof("xglWsiX11CreatePresentableImage"))) + else if (!strncmp("xglWsiX11CreatePresentableImage", pName, sizeof("xglWsiX11CreatePresentableImage"))) return (XGL_VOID *) pTable->WsiX11CreatePresentableImage; - else if (!strncmp("xglWsiX11QueuePresent", (const char *) pName, sizeof("xglWsiX11QueuePresent"))) + else if (!strncmp("xglWsiX11QueuePresent", pName, sizeof("xglWsiX11QueuePresent"))) return (XGL_VOID *) pTable->WsiX11QueuePresent; - else if (!strncmp("xglLayerExtension1", (const char *) pName, sizeof("xglLayerExtension1"))) + else if (!strncmp("xglLayerExtension1", pName, sizeof("xglLayerExtension1"))) return (XGL_VOID *) xglLayerExtension1; else { XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; diff --git a/layers/draw_state.c b/layers/draw_state.c index ce1e365a..143b3c30 100644 --- a/layers/draw_state.c +++ b/layers/draw_state.c @@ -52,7 +52,7 @@ static XGL_VOID layerCbMsg(XGL_DBG_MSG_TYPE msgType, XGL_LAYER_DBG_FUNCTION_NODE *pTrav = pDbgFunctionHead; if (pTrav) { while (pTrav) { - pTrav->pfnMsgCallback(msgType, validationLevel, srcObject, location, msgCode, (const XGL_CHAR *) pMsg, pTrav->pUserData); + pTrav->pfnMsgCallback(msgType, validationLevel, srcObject, location, msgCode, pMsg, pTrav->pUserData); pTrav = pTrav->pNext; } } @@ -2066,249 +2066,249 @@ XGL_LAYER_EXPORT XGL_VOID* XGLAPI xglGetProcAddr(XGL_PHYSICAL_GPU gpu, const XGL pCurObj = gpuw; pthread_once(&tabOnce, initLayerTable); - if (!strncmp("xglGetProcAddr", (const char *) funcName, sizeof("xglGetProcAddr"))) + if (!strncmp("xglGetProcAddr", funcName, sizeof("xglGetProcAddr"))) return xglGetProcAddr; - else if (!strncmp("xglInitAndEnumerateGpus", (const char *) funcName, sizeof("xglInitAndEnumerateGpus"))) + else if (!strncmp("xglInitAndEnumerateGpus", funcName, sizeof("xglInitAndEnumerateGpus"))) return nextTable.InitAndEnumerateGpus; - else if (!strncmp("xglGetGpuInfo", (const char *) funcName, sizeof("xglGetGpuInfo"))) + else if (!strncmp("xglGetGpuInfo", funcName, sizeof("xglGetGpuInfo"))) return xglGetGpuInfo; - else if (!strncmp("xglCreateDevice", (const char *) funcName, sizeof("xglCreateDevice"))) + else if (!strncmp("xglCreateDevice", funcName, sizeof("xglCreateDevice"))) return xglCreateDevice; - else if (!strncmp("xglDestroyDevice", (const char *) funcName, sizeof("xglDestroyDevice"))) + else if (!strncmp("xglDestroyDevice", funcName, sizeof("xglDestroyDevice"))) return xglDestroyDevice; - else if (!strncmp("xglGetExtensionSupport", (const char *) funcName, sizeof("xglGetExtensionSupport"))) + else if (!strncmp("xglGetExtensionSupport", funcName, sizeof("xglGetExtensionSupport"))) return xglGetExtensionSupport; - else if (!strncmp("xglEnumerateLayers", (const char *) funcName, sizeof("xglEnumerateLayers"))) + else if (!strncmp("xglEnumerateLayers", funcName, sizeof("xglEnumerateLayers"))) return xglEnumerateLayers; - else if (!strncmp("xglGetDeviceQueue", (const char *) funcName, sizeof("xglGetDeviceQueue"))) + else if (!strncmp("xglGetDeviceQueue", funcName, sizeof("xglGetDeviceQueue"))) return xglGetDeviceQueue; - else if (!strncmp("xglQueueSubmit", (const char *) funcName, sizeof("xglQueueSubmit"))) + else if (!strncmp("xglQueueSubmit", funcName, sizeof("xglQueueSubmit"))) return xglQueueSubmit; - else if (!strncmp("xglQueueSetGlobalMemReferences", (const char *) funcName, sizeof("xglQueueSetGlobalMemReferences"))) + else if (!strncmp("xglQueueSetGlobalMemReferences", funcName, sizeof("xglQueueSetGlobalMemReferences"))) return xglQueueSetGlobalMemReferences; - else if (!strncmp("xglQueueWaitIdle", (const char *) funcName, sizeof("xglQueueWaitIdle"))) + else if (!strncmp("xglQueueWaitIdle", funcName, sizeof("xglQueueWaitIdle"))) return xglQueueWaitIdle; - else if (!strncmp("xglDeviceWaitIdle", (const char *) funcName, sizeof("xglDeviceWaitIdle"))) + else if (!strncmp("xglDeviceWaitIdle", funcName, sizeof("xglDeviceWaitIdle"))) return xglDeviceWaitIdle; - else if (!strncmp("drawStateDumpDotFile", (const char *) funcName, sizeof("drawStateDumpDotFile"))) + else if (!strncmp("drawStateDumpDotFile", funcName, sizeof("drawStateDumpDotFile"))) return drawStateDumpDotFile; - else if (!strncmp("drawStateDumpPngFile", (const char *) funcName, sizeof("drawStateDumpPngFile"))) + else if (!strncmp("drawStateDumpPngFile", funcName, sizeof("drawStateDumpPngFile"))) return drawStateDumpPngFile; - else if (!strncmp("xglGetMemoryHeapCount", (const char *) funcName, sizeof("xglGetMemoryHeapCount"))) + else if (!strncmp("xglGetMemoryHeapCount", funcName, sizeof("xglGetMemoryHeapCount"))) return xglGetMemoryHeapCount; - else if (!strncmp("xglGetMemoryHeapInfo", (const char *) funcName, sizeof("xglGetMemoryHeapInfo"))) + else if (!strncmp("xglGetMemoryHeapInfo", funcName, sizeof("xglGetMemoryHeapInfo"))) return xglGetMemoryHeapInfo; - else if (!strncmp("xglAllocMemory", (const char *) funcName, sizeof("xglAllocMemory"))) + else if (!strncmp("xglAllocMemory", funcName, sizeof("xglAllocMemory"))) return xglAllocMemory; - else if (!strncmp("xglFreeMemory", (const char *) funcName, sizeof("xglFreeMemory"))) + else if (!strncmp("xglFreeMemory", funcName, sizeof("xglFreeMemory"))) return xglFreeMemory; - else if (!strncmp("xglSetMemoryPriority", (const char *) funcName, sizeof("xglSetMemoryPriority"))) + else if (!strncmp("xglSetMemoryPriority", funcName, sizeof("xglSetMemoryPriority"))) return xglSetMemoryPriority; - else if (!strncmp("xglMapMemory", (const char *) funcName, sizeof("xglMapMemory"))) + else if (!strncmp("xglMapMemory", funcName, sizeof("xglMapMemory"))) return xglMapMemory; - else if (!strncmp("xglUnmapMemory", (const char *) funcName, sizeof("xglUnmapMemory"))) + else if (!strncmp("xglUnmapMemory", funcName, sizeof("xglUnmapMemory"))) return xglUnmapMemory; - else if (!strncmp("xglPinSystemMemory", (const char *) funcName, sizeof("xglPinSystemMemory"))) + else if (!strncmp("xglPinSystemMemory", funcName, sizeof("xglPinSystemMemory"))) return xglPinSystemMemory; - else if (!strncmp("xglRemapVirtualMemoryPages", (const char *) funcName, sizeof("xglRemapVirtualMemoryPages"))) + else if (!strncmp("xglRemapVirtualMemoryPages", funcName, sizeof("xglRemapVirtualMemoryPages"))) return xglRemapVirtualMemoryPages; - else if (!strncmp("xglGetMultiGpuCompatibility", (const char *) funcName, sizeof("xglGetMultiGpuCompatibility"))) + else if (!strncmp("xglGetMultiGpuCompatibility", funcName, sizeof("xglGetMultiGpuCompatibility"))) return xglGetMultiGpuCompatibility; - else if (!strncmp("xglOpenSharedMemory", (const char *) funcName, sizeof("xglOpenSharedMemory"))) + else if (!strncmp("xglOpenSharedMemory", funcName, sizeof("xglOpenSharedMemory"))) return xglOpenSharedMemory; - else if (!strncmp("xglOpenSharedQueueSemaphore", (const char *) funcName, sizeof("xglOpenSharedQueueSemaphore"))) + else if (!strncmp("xglOpenSharedQueueSemaphore", funcName, sizeof("xglOpenSharedQueueSemaphore"))) return xglOpenSharedQueueSemaphore; - else if (!strncmp("xglOpenPeerMemory", (const char *) funcName, sizeof("xglOpenPeerMemory"))) + else if (!strncmp("xglOpenPeerMemory", funcName, sizeof("xglOpenPeerMemory"))) return xglOpenPeerMemory; - else if (!strncmp("xglOpenPeerImage", (const char *) funcName, sizeof("xglOpenPeerImage"))) + else if (!strncmp("xglOpenPeerImage", funcName, sizeof("xglOpenPeerImage"))) return xglOpenPeerImage; - else if (!strncmp("xglDestroyObject", (const char *) funcName, sizeof("xglDestroyObject"))) + else if (!strncmp("xglDestroyObject", funcName, sizeof("xglDestroyObject"))) return xglDestroyObject; - else if (!strncmp("xglGetObjectInfo", (const char *) funcName, sizeof("xglGetObjectInfo"))) + else if (!strncmp("xglGetObjectInfo", funcName, sizeof("xglGetObjectInfo"))) return xglGetObjectInfo; - else if (!strncmp("xglBindObjectMemory", (const char *) funcName, sizeof("xglBindObjectMemory"))) + else if (!strncmp("xglBindObjectMemory", funcName, sizeof("xglBindObjectMemory"))) return xglBindObjectMemory; - else if (!strncmp("xglCreateFence", (const char *) funcName, sizeof("xglCreateFence"))) + else if (!strncmp("xglCreateFence", funcName, sizeof("xglCreateFence"))) return xglCreateFence; - else if (!strncmp("xglGetFenceStatus", (const char *) funcName, sizeof("xglGetFenceStatus"))) + else if (!strncmp("xglGetFenceStatus", funcName, sizeof("xglGetFenceStatus"))) return xglGetFenceStatus; - else if (!strncmp("xglWaitForFences", (const char *) funcName, sizeof("xglWaitForFences"))) + else if (!strncmp("xglWaitForFences", funcName, sizeof("xglWaitForFences"))) return xglWaitForFences; - else if (!strncmp("xglCreateQueueSemaphore", (const char *) funcName, sizeof("xglCreateQueueSemaphore"))) + else if (!strncmp("xglCreateQueueSemaphore", funcName, sizeof("xglCreateQueueSemaphore"))) return xglCreateQueueSemaphore; - else if (!strncmp("xglSignalQueueSemaphore", (const char *) funcName, sizeof("xglSignalQueueSemaphore"))) + else if (!strncmp("xglSignalQueueSemaphore", funcName, sizeof("xglSignalQueueSemaphore"))) return xglSignalQueueSemaphore; - else if (!strncmp("xglWaitQueueSemaphore", (const char *) funcName, sizeof("xglWaitQueueSemaphore"))) + else if (!strncmp("xglWaitQueueSemaphore", funcName, sizeof("xglWaitQueueSemaphore"))) return xglWaitQueueSemaphore; - else if (!strncmp("xglCreateEvent", (const char *) funcName, sizeof("xglCreateEvent"))) + else if (!strncmp("xglCreateEvent", funcName, sizeof("xglCreateEvent"))) return xglCreateEvent; - else if (!strncmp("xglGetEventStatus", (const char *) funcName, sizeof("xglGetEventStatus"))) + else if (!strncmp("xglGetEventStatus", funcName, sizeof("xglGetEventStatus"))) return xglGetEventStatus; - else if (!strncmp("xglSetEvent", (const char *) funcName, sizeof("xglSetEvent"))) + else if (!strncmp("xglSetEvent", funcName, sizeof("xglSetEvent"))) return xglSetEvent; - else if (!strncmp("xglResetEvent", (const char *) funcName, sizeof("xglResetEvent"))) + else if (!strncmp("xglResetEvent", funcName, sizeof("xglResetEvent"))) return xglResetEvent; - else if (!strncmp("xglCreateQueryPool", (const char *) funcName, sizeof("xglCreateQueryPool"))) + else if (!strncmp("xglCreateQueryPool", funcName, sizeof("xglCreateQueryPool"))) return xglCreateQueryPool; - else if (!strncmp("xglGetQueryPoolResults", (const char *) funcName, sizeof("xglGetQueryPoolResults"))) + else if (!strncmp("xglGetQueryPoolResults", funcName, sizeof("xglGetQueryPoolResults"))) return xglGetQueryPoolResults; - else if (!strncmp("xglGetFormatInfo", (const char *) funcName, sizeof("xglGetFormatInfo"))) + else if (!strncmp("xglGetFormatInfo", funcName, sizeof("xglGetFormatInfo"))) return xglGetFormatInfo; - else if (!strncmp("xglCreateImage", (const char *) funcName, sizeof("xglCreateImage"))) + else if (!strncmp("xglCreateImage", funcName, sizeof("xglCreateImage"))) return xglCreateImage; - else if (!strncmp("xglGetImageSubresourceInfo", (const char *) funcName, sizeof("xglGetImageSubresourceInfo"))) + else if (!strncmp("xglGetImageSubresourceInfo", funcName, sizeof("xglGetImageSubresourceInfo"))) return xglGetImageSubresourceInfo; - else if (!strncmp("xglCreateImageView", (const char *) funcName, sizeof("xglCreateImageView"))) + else if (!strncmp("xglCreateImageView", funcName, sizeof("xglCreateImageView"))) return xglCreateImageView; - else if (!strncmp("xglCreateColorAttachmentView", (const char *) funcName, sizeof("xglCreateColorAttachmentView"))) + else if (!strncmp("xglCreateColorAttachmentView", funcName, sizeof("xglCreateColorAttachmentView"))) return xglCreateColorAttachmentView; - else if (!strncmp("xglCreateDepthStencilView", (const char *) funcName, sizeof("xglCreateDepthStencilView"))) + else if (!strncmp("xglCreateDepthStencilView", funcName, sizeof("xglCreateDepthStencilView"))) return xglCreateDepthStencilView; - else if (!strncmp("xglCreateShader", (const char *) funcName, sizeof("xglCreateShader"))) + else if (!strncmp("xglCreateShader", funcName, sizeof("xglCreateShader"))) return xglCreateShader; - else if (!strncmp("xglCreateGraphicsPipeline", (const char *) funcName, sizeof("xglCreateGraphicsPipeline"))) + else if (!strncmp("xglCreateGraphicsPipeline", funcName, sizeof("xglCreateGraphicsPipeline"))) return xglCreateGraphicsPipeline; - else if (!strncmp("xglCreateComputePipeline", (const char *) funcName, sizeof("xglCreateComputePipeline"))) + else if (!strncmp("xglCreateComputePipeline", funcName, sizeof("xglCreateComputePipeline"))) return xglCreateComputePipeline; - else if (!strncmp("xglStorePipeline", (const char *) funcName, sizeof("xglStorePipeline"))) + else if (!strncmp("xglStorePipeline", funcName, sizeof("xglStorePipeline"))) return xglStorePipeline; - else if (!strncmp("xglLoadPipeline", (const char *) funcName, sizeof("xglLoadPipeline"))) + else if (!strncmp("xglLoadPipeline", funcName, sizeof("xglLoadPipeline"))) return xglLoadPipeline; - else if (!strncmp("xglCreatePipelineDelta", (const char *) funcName, sizeof("xglCreatePipelineDelta"))) + else if (!strncmp("xglCreatePipelineDelta", funcName, sizeof("xglCreatePipelineDelta"))) return xglCreatePipelineDelta; - else if (!strncmp("xglCreateSampler", (const char *) funcName, sizeof("xglCreateSampler"))) + else if (!strncmp("xglCreateSampler", funcName, sizeof("xglCreateSampler"))) return xglCreateSampler; - else if (!strncmp("xglCreateDescriptorSet", (const char *) funcName, sizeof("xglCreateDescriptorSet"))) + else if (!strncmp("xglCreateDescriptorSet", funcName, sizeof("xglCreateDescriptorSet"))) return xglCreateDescriptorSet; - else if (!strncmp("xglBeginDescriptorSetUpdate", (const char *) funcName, sizeof("xglBeginDescriptorSetUpdate"))) + else if (!strncmp("xglBeginDescriptorSetUpdate", funcName, sizeof("xglBeginDescriptorSetUpdate"))) return xglBeginDescriptorSetUpdate; - else if (!strncmp("xglEndDescriptorSetUpdate", (const char *) funcName, sizeof("xglEndDescriptorSetUpdate"))) + else if (!strncmp("xglEndDescriptorSetUpdate", funcName, sizeof("xglEndDescriptorSetUpdate"))) return xglEndDescriptorSetUpdate; - else if (!strncmp("xglAttachSamplerDescriptors", (const char *) funcName, sizeof("xglAttachSamplerDescriptors"))) + else if (!strncmp("xglAttachSamplerDescriptors", funcName, sizeof("xglAttachSamplerDescriptors"))) return xglAttachSamplerDescriptors; - else if (!strncmp("xglAttachImageViewDescriptors", (const char *) funcName, sizeof("xglAttachImageViewDescriptors"))) + else if (!strncmp("xglAttachImageViewDescriptors", funcName, sizeof("xglAttachImageViewDescriptors"))) return xglAttachImageViewDescriptors; - else if (!strncmp("xglAttachMemoryViewDescriptors", (const char *) funcName, sizeof("xglAttachMemoryViewDescriptors"))) + else if (!strncmp("xglAttachMemoryViewDescriptors", funcName, sizeof("xglAttachMemoryViewDescriptors"))) return xglAttachMemoryViewDescriptors; - else if (!strncmp("xglAttachNestedDescriptors", (const char *) funcName, sizeof("xglAttachNestedDescriptors"))) + else if (!strncmp("xglAttachNestedDescriptors", funcName, sizeof("xglAttachNestedDescriptors"))) return xglAttachNestedDescriptors; - else if (!strncmp("xglClearDescriptorSetSlots", (const char *) funcName, sizeof("xglClearDescriptorSetSlots"))) + else if (!strncmp("xglClearDescriptorSetSlots", funcName, sizeof("xglClearDescriptorSetSlots"))) return xglClearDescriptorSetSlots; - else if (!strncmp("xglCreateViewportState", (const char *) funcName, sizeof("xglCreateViewportState"))) + else if (!strncmp("xglCreateViewportState", funcName, sizeof("xglCreateViewportState"))) return xglCreateViewportState; - else if (!strncmp("xglCreateRasterState", (const char *) funcName, sizeof("xglCreateRasterState"))) + else if (!strncmp("xglCreateRasterState", funcName, sizeof("xglCreateRasterState"))) return xglCreateRasterState; - else if (!strncmp("xglCreateMsaaState", (const char *) funcName, sizeof("xglCreateMsaaState"))) + else if (!strncmp("xglCreateMsaaState", funcName, sizeof("xglCreateMsaaState"))) return xglCreateMsaaState; - else if (!strncmp("xglCreateColorBlendState", (const char *) funcName, sizeof("xglCreateColorBlendState"))) + else if (!strncmp("xglCreateColorBlendState", funcName, sizeof("xglCreateColorBlendState"))) return xglCreateColorBlendState; - else if (!strncmp("xglCreateDepthStencilState", (const char *) funcName, sizeof("xglCreateDepthStencilState"))) + else if (!strncmp("xglCreateDepthStencilState", funcName, sizeof("xglCreateDepthStencilState"))) return xglCreateDepthStencilState; - else if (!strncmp("xglCreateCommandBuffer", (const char *) funcName, sizeof("xglCreateCommandBuffer"))) + else if (!strncmp("xglCreateCommandBuffer", funcName, sizeof("xglCreateCommandBuffer"))) return xglCreateCommandBuffer; - else if (!strncmp("xglBeginCommandBuffer", (const char *) funcName, sizeof("xglBeginCommandBuffer"))) + else if (!strncmp("xglBeginCommandBuffer", funcName, sizeof("xglBeginCommandBuffer"))) return xglBeginCommandBuffer; - else if (!strncmp("xglEndCommandBuffer", (const char *) funcName, sizeof("xglEndCommandBuffer"))) + else if (!strncmp("xglEndCommandBuffer", funcName, sizeof("xglEndCommandBuffer"))) return xglEndCommandBuffer; - else if (!strncmp("xglResetCommandBuffer", (const char *) funcName, sizeof("xglResetCommandBuffer"))) + else if (!strncmp("xglResetCommandBuffer", funcName, sizeof("xglResetCommandBuffer"))) return xglResetCommandBuffer; - else if (!strncmp("xglCmdBindPipeline", (const char *) funcName, sizeof("xglCmdBindPipeline"))) + else if (!strncmp("xglCmdBindPipeline", funcName, sizeof("xglCmdBindPipeline"))) return xglCmdBindPipeline; - else if (!strncmp("xglCmdBindPipelineDelta", (const char *) funcName, sizeof("xglCmdBindPipelineDelta"))) + else if (!strncmp("xglCmdBindPipelineDelta", funcName, sizeof("xglCmdBindPipelineDelta"))) return xglCmdBindPipelineDelta; - else if (!strncmp("xglCmdBindStateObject", (const char *) funcName, sizeof("xglCmdBindStateObject"))) + else if (!strncmp("xglCmdBindStateObject", funcName, sizeof("xglCmdBindStateObject"))) return xglCmdBindStateObject; - else if (!strncmp("xglCmdBindDescriptorSet", (const char *) funcName, sizeof("xglCmdBindDescriptorSet"))) + else if (!strncmp("xglCmdBindDescriptorSet", funcName, sizeof("xglCmdBindDescriptorSet"))) return xglCmdBindDescriptorSet; - else if (!strncmp("xglCmdBindDynamicMemoryView", (const char *) funcName, sizeof("xglCmdBindDynamicMemoryView"))) + else if (!strncmp("xglCmdBindDynamicMemoryView", funcName, sizeof("xglCmdBindDynamicMemoryView"))) return xglCmdBindDynamicMemoryView; - else if (!strncmp("xglCmdBindIndexData", (const char *) funcName, sizeof("xglCmdBindIndexData"))) + else if (!strncmp("xglCmdBindIndexData", funcName, sizeof("xglCmdBindIndexData"))) return xglCmdBindIndexData; - else if (!strncmp("xglCmdBindAttachments", (const char *) funcName, sizeof("xglCmdBindAttachments"))) + else if (!strncmp("xglCmdBindAttachments", funcName, sizeof("xglCmdBindAttachments"))) return xglCmdBindAttachments; - else if (!strncmp("xglCmdPrepareMemoryRegions", (const char *) funcName, sizeof("xglCmdPrepareMemoryRegions"))) + else if (!strncmp("xglCmdPrepareMemoryRegions", funcName, sizeof("xglCmdPrepareMemoryRegions"))) return xglCmdPrepareMemoryRegions; - else if (!strncmp("xglCmdPrepareImages", (const char *) funcName, sizeof("xglCmdPrepareImages"))) + else if (!strncmp("xglCmdPrepareImages", funcName, sizeof("xglCmdPrepareImages"))) return xglCmdPrepareImages; - else if (!strncmp("xglCmdDraw", (const char *) funcName, sizeof("xglCmdDraw"))) + else if (!strncmp("xglCmdDraw", funcName, sizeof("xglCmdDraw"))) return xglCmdDraw; - else if (!strncmp("xglCmdDrawIndexed", (const char *) funcName, sizeof("xglCmdDrawIndexed"))) + else if (!strncmp("xglCmdDrawIndexed", funcName, sizeof("xglCmdDrawIndexed"))) return xglCmdDrawIndexed; - else if (!strncmp("xglCmdDrawIndirect", (const char *) funcName, sizeof("xglCmdDrawIndirect"))) + else if (!strncmp("xglCmdDrawIndirect", funcName, sizeof("xglCmdDrawIndirect"))) return xglCmdDrawIndirect; - else if (!strncmp("xglCmdDrawIndexedIndirect", (const char *) funcName, sizeof("xglCmdDrawIndexedIndirect"))) + else if (!strncmp("xglCmdDrawIndexedIndirect", funcName, sizeof("xglCmdDrawIndexedIndirect"))) return xglCmdDrawIndexedIndirect; - else if (!strncmp("xglCmdDispatch", (const char *) funcName, sizeof("xglCmdDispatch"))) + else if (!strncmp("xglCmdDispatch", funcName, sizeof("xglCmdDispatch"))) return xglCmdDispatch; - else if (!strncmp("xglCmdDispatchIndirect", (const char *) funcName, sizeof("xglCmdDispatchIndirect"))) + else if (!strncmp("xglCmdDispatchIndirect", funcName, sizeof("xglCmdDispatchIndirect"))) return xglCmdDispatchIndirect; - else if (!strncmp("xglCmdCopyMemory", (const char *) funcName, sizeof("xglCmdCopyMemory"))) + else if (!strncmp("xglCmdCopyMemory", funcName, sizeof("xglCmdCopyMemory"))) return xglCmdCopyMemory; - else if (!strncmp("xglCmdCopyImage", (const char *) funcName, sizeof("xglCmdCopyImage"))) + else if (!strncmp("xglCmdCopyImage", funcName, sizeof("xglCmdCopyImage"))) return xglCmdCopyImage; - else if (!strncmp("xglCmdCopyMemoryToImage", (const char *) funcName, sizeof("xglCmdCopyMemoryToImage"))) + else if (!strncmp("xglCmdCopyMemoryToImage", funcName, sizeof("xglCmdCopyMemoryToImage"))) return xglCmdCopyMemoryToImage; - else if (!strncmp("xglCmdCopyImageToMemory", (const char *) funcName, sizeof("xglCmdCopyImageToMemory"))) + else if (!strncmp("xglCmdCopyImageToMemory", funcName, sizeof("xglCmdCopyImageToMemory"))) return xglCmdCopyImageToMemory; - else if (!strncmp("xglCmdCloneImageData", (const char *) funcName, sizeof("xglCmdCloneImageData"))) + else if (!strncmp("xglCmdCloneImageData", funcName, sizeof("xglCmdCloneImageData"))) return xglCmdCloneImageData; - else if (!strncmp("xglCmdUpdateMemory", (const char *) funcName, sizeof("xglCmdUpdateMemory"))) + else if (!strncmp("xglCmdUpdateMemory", funcName, sizeof("xglCmdUpdateMemory"))) return xglCmdUpdateMemory; - else if (!strncmp("xglCmdFillMemory", (const char *) funcName, sizeof("xglCmdFillMemory"))) + else if (!strncmp("xglCmdFillMemory", funcName, sizeof("xglCmdFillMemory"))) return xglCmdFillMemory; - else if (!strncmp("xglCmdClearColorImage", (const char *) funcName, sizeof("xglCmdClearColorImage"))) + else if (!strncmp("xglCmdClearColorImage", funcName, sizeof("xglCmdClearColorImage"))) return xglCmdClearColorImage; - else if (!strncmp("xglCmdClearColorImageRaw", (const char *) funcName, sizeof("xglCmdClearColorImageRaw"))) + else if (!strncmp("xglCmdClearColorImageRaw", funcName, sizeof("xglCmdClearColorImageRaw"))) return xglCmdClearColorImageRaw; - else if (!strncmp("xglCmdClearDepthStencil", (const char *) funcName, sizeof("xglCmdClearDepthStencil"))) + else if (!strncmp("xglCmdClearDepthStencil", funcName, sizeof("xglCmdClearDepthStencil"))) return xglCmdClearDepthStencil; - else if (!strncmp("xglCmdResolveImage", (const char *) funcName, sizeof("xglCmdResolveImage"))) + else if (!strncmp("xglCmdResolveImage", funcName, sizeof("xglCmdResolveImage"))) return xglCmdResolveImage; - else if (!strncmp("xglCmdSetEvent", (const char *) funcName, sizeof("xglCmdSetEvent"))) + else if (!strncmp("xglCmdSetEvent", funcName, sizeof("xglCmdSetEvent"))) return xglCmdSetEvent; - else if (!strncmp("xglCmdResetEvent", (const char *) funcName, sizeof("xglCmdResetEvent"))) + else if (!strncmp("xglCmdResetEvent", funcName, sizeof("xglCmdResetEvent"))) return xglCmdResetEvent; - else if (!strncmp("xglCmdMemoryAtomic", (const char *) funcName, sizeof("xglCmdMemoryAtomic"))) + else if (!strncmp("xglCmdMemoryAtomic", funcName, sizeof("xglCmdMemoryAtomic"))) return xglCmdMemoryAtomic; - else if (!strncmp("xglCmdBeginQuery", (const char *) funcName, sizeof("xglCmdBeginQuery"))) + else if (!strncmp("xglCmdBeginQuery", funcName, sizeof("xglCmdBeginQuery"))) return xglCmdBeginQuery; - else if (!strncmp("xglCmdEndQuery", (const char *) funcName, sizeof("xglCmdEndQuery"))) + else if (!strncmp("xglCmdEndQuery", funcName, sizeof("xglCmdEndQuery"))) return xglCmdEndQuery; - else if (!strncmp("xglCmdResetQueryPool", (const char *) funcName, sizeof("xglCmdResetQueryPool"))) + else if (!strncmp("xglCmdResetQueryPool", funcName, sizeof("xglCmdResetQueryPool"))) return xglCmdResetQueryPool; - else if (!strncmp("xglCmdWriteTimestamp", (const char *) funcName, sizeof("xglCmdWriteTimestamp"))) + else if (!strncmp("xglCmdWriteTimestamp", funcName, sizeof("xglCmdWriteTimestamp"))) return xglCmdWriteTimestamp; - else if (!strncmp("xglCmdInitAtomicCounters", (const char *) funcName, sizeof("xglCmdInitAtomicCounters"))) + else if (!strncmp("xglCmdInitAtomicCounters", funcName, sizeof("xglCmdInitAtomicCounters"))) return xglCmdInitAtomicCounters; - else if (!strncmp("xglCmdLoadAtomicCounters", (const char *) funcName, sizeof("xglCmdLoadAtomicCounters"))) + else if (!strncmp("xglCmdLoadAtomicCounters", funcName, sizeof("xglCmdLoadAtomicCounters"))) return xglCmdLoadAtomicCounters; - else if (!strncmp("xglCmdSaveAtomicCounters", (const char *) funcName, sizeof("xglCmdSaveAtomicCounters"))) + else if (!strncmp("xglCmdSaveAtomicCounters", funcName, sizeof("xglCmdSaveAtomicCounters"))) return xglCmdSaveAtomicCounters; - else if (!strncmp("xglDbgSetValidationLevel", (const char *) funcName, sizeof("xglDbgSetValidationLevel"))) + else if (!strncmp("xglDbgSetValidationLevel", funcName, sizeof("xglDbgSetValidationLevel"))) return xglDbgSetValidationLevel; - else if (!strncmp("xglDbgRegisterMsgCallback", (const char *) funcName, sizeof("xglDbgRegisterMsgCallback"))) + else if (!strncmp("xglDbgRegisterMsgCallback", funcName, sizeof("xglDbgRegisterMsgCallback"))) return xglDbgRegisterMsgCallback; - else if (!strncmp("xglDbgUnregisterMsgCallback", (const char *) funcName, sizeof("xglDbgUnregisterMsgCallback"))) + else if (!strncmp("xglDbgUnregisterMsgCallback", funcName, sizeof("xglDbgUnregisterMsgCallback"))) return xglDbgUnregisterMsgCallback; - else if (!strncmp("xglDbgSetMessageFilter", (const char *) funcName, sizeof("xglDbgSetMessageFilter"))) + else if (!strncmp("xglDbgSetMessageFilter", funcName, sizeof("xglDbgSetMessageFilter"))) return xglDbgSetMessageFilter; - else if (!strncmp("xglDbgSetObjectTag", (const char *) funcName, sizeof("xglDbgSetObjectTag"))) + else if (!strncmp("xglDbgSetObjectTag", funcName, sizeof("xglDbgSetObjectTag"))) return xglDbgSetObjectTag; - else if (!strncmp("xglDbgSetGlobalOption", (const char *) funcName, sizeof("xglDbgSetGlobalOption"))) + else if (!strncmp("xglDbgSetGlobalOption", funcName, sizeof("xglDbgSetGlobalOption"))) return xglDbgSetGlobalOption; - else if (!strncmp("xglDbgSetDeviceOption", (const char *) funcName, sizeof("xglDbgSetDeviceOption"))) + else if (!strncmp("xglDbgSetDeviceOption", funcName, sizeof("xglDbgSetDeviceOption"))) return xglDbgSetDeviceOption; - else if (!strncmp("xglCmdDbgMarkerBegin", (const char *) funcName, sizeof("xglCmdDbgMarkerBegin"))) + else if (!strncmp("xglCmdDbgMarkerBegin", funcName, sizeof("xglCmdDbgMarkerBegin"))) return xglCmdDbgMarkerBegin; - else if (!strncmp("xglCmdDbgMarkerEnd", (const char *) funcName, sizeof("xglCmdDbgMarkerEnd"))) + else if (!strncmp("xglCmdDbgMarkerEnd", funcName, sizeof("xglCmdDbgMarkerEnd"))) return xglCmdDbgMarkerEnd; - else if (!strncmp("xglWsiX11AssociateConnection", (const char *) funcName, sizeof("xglWsiX11AssociateConnection"))) + else if (!strncmp("xglWsiX11AssociateConnection", funcName, sizeof("xglWsiX11AssociateConnection"))) return xglWsiX11AssociateConnection; - else if (!strncmp("xglWsiX11GetMSC", (const char *) funcName, sizeof("xglWsiX11GetMSC"))) + else if (!strncmp("xglWsiX11GetMSC", funcName, sizeof("xglWsiX11GetMSC"))) return xglWsiX11GetMSC; - else if (!strncmp("xglWsiX11CreatePresentableImage", (const char *) funcName, sizeof("xglWsiX11CreatePresentableImage"))) + else if (!strncmp("xglWsiX11CreatePresentableImage", funcName, sizeof("xglWsiX11CreatePresentableImage"))) return xglWsiX11CreatePresentableImage; - else if (!strncmp("xglWsiX11QueuePresent", (const char *) funcName, sizeof("xglWsiX11QueuePresent"))) + else if (!strncmp("xglWsiX11QueuePresent", funcName, sizeof("xglWsiX11QueuePresent"))) return xglWsiX11QueuePresent; else { XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; diff --git a/layers/mem_tracker.c b/layers/mem_tracker.c index fd79e6a5..e26ab0ed 100644 --- a/layers/mem_tracker.c +++ b/layers/mem_tracker.c @@ -48,7 +48,7 @@ static XGL_VOID layerCbMsg(XGL_DBG_MSG_TYPE msgType, XGL_LAYER_DBG_FUNCTION_NODE *pTrav = pDbgFunctionHead; if (pTrav) { while (pTrav) { - pTrav->pfnMsgCallback(msgType, validationLevel, srcObject, location, msgCode, (const XGL_CHAR *) pMsg, pTrav->pUserData); + pTrav->pfnMsgCallback(msgType, validationLevel, srcObject, location, msgCode, pMsg, pTrav->pUserData); pTrav = pTrav->pNext; } } @@ -2064,245 +2064,245 @@ XGL_LAYER_EXPORT XGL_VOID* XGLAPI xglGetProcAddr(XGL_PHYSICAL_GPU gpu, const XGL pCurObj = gpuw; pthread_once(&tabOnce, initLayerTable); - if (!strncmp("xglGetProcAddr", (const char *) funcName, sizeof("xglGetProcAddr"))) + if (!strncmp("xglGetProcAddr", funcName, sizeof("xglGetProcAddr"))) return xglGetProcAddr; - else if (!strncmp("xglInitAndEnumerateGpus", (const char *) funcName, sizeof("xglInitAndEnumerateGpus"))) + else if (!strncmp("xglInitAndEnumerateGpus", funcName, sizeof("xglInitAndEnumerateGpus"))) return nextTable.InitAndEnumerateGpus; - else if (!strncmp("xglGetGpuInfo", (const char *) funcName, sizeof("xglGetGpuInfo"))) + else if (!strncmp("xglGetGpuInfo", funcName, sizeof("xglGetGpuInfo"))) return xglGetGpuInfo; - else if (!strncmp("xglCreateDevice", (const char *) funcName, sizeof("xglCreateDevice"))) + else if (!strncmp("xglCreateDevice", funcName, sizeof("xglCreateDevice"))) return xglCreateDevice; - else if (!strncmp("xglDestroyDevice", (const char *) funcName, sizeof("xglDestroyDevice"))) + else if (!strncmp("xglDestroyDevice", funcName, sizeof("xglDestroyDevice"))) return xglDestroyDevice; - else if (!strncmp("xglGetExtensionSupport", (const char *) funcName, sizeof("xglGetExtensionSupport"))) + else if (!strncmp("xglGetExtensionSupport", funcName, sizeof("xglGetExtensionSupport"))) return xglGetExtensionSupport; - else if (!strncmp("xglEnumerateLayers", (const char *) funcName, sizeof("xglEnumerateLayers"))) + else if (!strncmp("xglEnumerateLayers", funcName, sizeof("xglEnumerateLayers"))) return xglEnumerateLayers; - else if (!strncmp("xglGetDeviceQueue", (const char *) funcName, sizeof("xglGetDeviceQueue"))) + else if (!strncmp("xglGetDeviceQueue", funcName, sizeof("xglGetDeviceQueue"))) return xglGetDeviceQueue; - else if (!strncmp("xglQueueSubmit", (const char *) funcName, sizeof("xglQueueSubmit"))) + else if (!strncmp("xglQueueSubmit", funcName, sizeof("xglQueueSubmit"))) return xglQueueSubmit; - else if (!strncmp("xglQueueSetGlobalMemReferences", (const char *) funcName, sizeof("xglQueueSetGlobalMemReferences"))) + else if (!strncmp("xglQueueSetGlobalMemReferences", funcName, sizeof("xglQueueSetGlobalMemReferences"))) return xglQueueSetGlobalMemReferences; - else if (!strncmp("xglQueueWaitIdle", (const char *) funcName, sizeof("xglQueueWaitIdle"))) + else if (!strncmp("xglQueueWaitIdle", funcName, sizeof("xglQueueWaitIdle"))) return xglQueueWaitIdle; - else if (!strncmp("xglDeviceWaitIdle", (const char *) funcName, sizeof("xglDeviceWaitIdle"))) + else if (!strncmp("xglDeviceWaitIdle", funcName, sizeof("xglDeviceWaitIdle"))) return xglDeviceWaitIdle; - else if (!strncmp("xglGetMemoryHeapCount", (const char *) funcName, sizeof("xglGetMemoryHeapCount"))) + else if (!strncmp("xglGetMemoryHeapCount", funcName, sizeof("xglGetMemoryHeapCount"))) return xglGetMemoryHeapCount; - else if (!strncmp("xglGetMemoryHeapInfo", (const char *) funcName, sizeof("xglGetMemoryHeapInfo"))) + else if (!strncmp("xglGetMemoryHeapInfo", funcName, sizeof("xglGetMemoryHeapInfo"))) return xglGetMemoryHeapInfo; - else if (!strncmp("xglAllocMemory", (const char *) funcName, sizeof("xglAllocMemory"))) + else if (!strncmp("xglAllocMemory", funcName, sizeof("xglAllocMemory"))) return xglAllocMemory; - else if (!strncmp("xglFreeMemory", (const char *) funcName, sizeof("xglFreeMemory"))) + else if (!strncmp("xglFreeMemory", funcName, sizeof("xglFreeMemory"))) return xglFreeMemory; - else if (!strncmp("xglSetMemoryPriority", (const char *) funcName, sizeof("xglSetMemoryPriority"))) + else if (!strncmp("xglSetMemoryPriority", funcName, sizeof("xglSetMemoryPriority"))) return xglSetMemoryPriority; - else if (!strncmp("xglMapMemory", (const char *) funcName, sizeof("xglMapMemory"))) + else if (!strncmp("xglMapMemory", funcName, sizeof("xglMapMemory"))) return xglMapMemory; - else if (!strncmp("xglUnmapMemory", (const char *) funcName, sizeof("xglUnmapMemory"))) + else if (!strncmp("xglUnmapMemory", funcName, sizeof("xglUnmapMemory"))) return xglUnmapMemory; - else if (!strncmp("xglPinSystemMemory", (const char *) funcName, sizeof("xglPinSystemMemory"))) + else if (!strncmp("xglPinSystemMemory", funcName, sizeof("xglPinSystemMemory"))) return xglPinSystemMemory; - else if (!strncmp("xglRemapVirtualMemoryPages", (const char *) funcName, sizeof("xglRemapVirtualMemoryPages"))) + else if (!strncmp("xglRemapVirtualMemoryPages", funcName, sizeof("xglRemapVirtualMemoryPages"))) return xglRemapVirtualMemoryPages; - else if (!strncmp("xglGetMultiGpuCompatibility", (const char *) funcName, sizeof("xglGetMultiGpuCompatibility"))) + else if (!strncmp("xglGetMultiGpuCompatibility", funcName, sizeof("xglGetMultiGpuCompatibility"))) return xglGetMultiGpuCompatibility; - else if (!strncmp("xglOpenSharedMemory", (const char *) funcName, sizeof("xglOpenSharedMemory"))) + else if (!strncmp("xglOpenSharedMemory", funcName, sizeof("xglOpenSharedMemory"))) return xglOpenSharedMemory; - else if (!strncmp("xglOpenSharedQueueSemaphore", (const char *) funcName, sizeof("xglOpenSharedQueueSemaphore"))) + else if (!strncmp("xglOpenSharedQueueSemaphore", funcName, sizeof("xglOpenSharedQueueSemaphore"))) return xglOpenSharedQueueSemaphore; - else if (!strncmp("xglOpenPeerMemory", (const char *) funcName, sizeof("xglOpenPeerMemory"))) + else if (!strncmp("xglOpenPeerMemory", funcName, sizeof("xglOpenPeerMemory"))) return xglOpenPeerMemory; - else if (!strncmp("xglOpenPeerImage", (const char *) funcName, sizeof("xglOpenPeerImage"))) + else if (!strncmp("xglOpenPeerImage", funcName, sizeof("xglOpenPeerImage"))) return xglOpenPeerImage; - else if (!strncmp("xglDestroyObject", (const char *) funcName, sizeof("xglDestroyObject"))) + else if (!strncmp("xglDestroyObject", funcName, sizeof("xglDestroyObject"))) return xglDestroyObject; - else if (!strncmp("xglGetObjectInfo", (const char *) funcName, sizeof("xglGetObjectInfo"))) + else if (!strncmp("xglGetObjectInfo", funcName, sizeof("xglGetObjectInfo"))) return xglGetObjectInfo; - else if (!strncmp("xglBindObjectMemory", (const char *) funcName, sizeof("xglBindObjectMemory"))) + else if (!strncmp("xglBindObjectMemory", funcName, sizeof("xglBindObjectMemory"))) return xglBindObjectMemory; - else if (!strncmp("xglCreateFence", (const char *) funcName, sizeof("xglCreateFence"))) + else if (!strncmp("xglCreateFence", funcName, sizeof("xglCreateFence"))) return xglCreateFence; - else if (!strncmp("xglGetFenceStatus", (const char *) funcName, sizeof("xglGetFenceStatus"))) + else if (!strncmp("xglGetFenceStatus", funcName, sizeof("xglGetFenceStatus"))) return xglGetFenceStatus; - else if (!strncmp("xglWaitForFences", (const char *) funcName, sizeof("xglWaitForFences"))) + else if (!strncmp("xglWaitForFences", funcName, sizeof("xglWaitForFences"))) return xglWaitForFences; - else if (!strncmp("xglCreateQueueSemaphore", (const char *) funcName, sizeof("xglCreateQueueSemaphore"))) + else if (!strncmp("xglCreateQueueSemaphore", funcName, sizeof("xglCreateQueueSemaphore"))) return xglCreateQueueSemaphore; - else if (!strncmp("xglSignalQueueSemaphore", (const char *) funcName, sizeof("xglSignalQueueSemaphore"))) + else if (!strncmp("xglSignalQueueSemaphore", funcName, sizeof("xglSignalQueueSemaphore"))) return xglSignalQueueSemaphore; - else if (!strncmp("xglWaitQueueSemaphore", (const char *) funcName, sizeof("xglWaitQueueSemaphore"))) + else if (!strncmp("xglWaitQueueSemaphore", funcName, sizeof("xglWaitQueueSemaphore"))) return xglWaitQueueSemaphore; - else if (!strncmp("xglCreateEvent", (const char *) funcName, sizeof("xglCreateEvent"))) + else if (!strncmp("xglCreateEvent", funcName, sizeof("xglCreateEvent"))) return xglCreateEvent; - else if (!strncmp("xglGetEventStatus", (const char *) funcName, sizeof("xglGetEventStatus"))) + else if (!strncmp("xglGetEventStatus", funcName, sizeof("xglGetEventStatus"))) return xglGetEventStatus; - else if (!strncmp("xglSetEvent", (const char *) funcName, sizeof("xglSetEvent"))) + else if (!strncmp("xglSetEvent", funcName, sizeof("xglSetEvent"))) return xglSetEvent; - else if (!strncmp("xglResetEvent", (const char *) funcName, sizeof("xglResetEvent"))) + else if (!strncmp("xglResetEvent", funcName, sizeof("xglResetEvent"))) return xglResetEvent; - else if (!strncmp("xglCreateQueryPool", (const char *) funcName, sizeof("xglCreateQueryPool"))) + else if (!strncmp("xglCreateQueryPool", funcName, sizeof("xglCreateQueryPool"))) return xglCreateQueryPool; - else if (!strncmp("xglGetQueryPoolResults", (const char *) funcName, sizeof("xglGetQueryPoolResults"))) + else if (!strncmp("xglGetQueryPoolResults", funcName, sizeof("xglGetQueryPoolResults"))) return xglGetQueryPoolResults; - else if (!strncmp("xglGetFormatInfo", (const char *) funcName, sizeof("xglGetFormatInfo"))) + else if (!strncmp("xglGetFormatInfo", funcName, sizeof("xglGetFormatInfo"))) return xglGetFormatInfo; - else if (!strncmp("xglCreateImage", (const char *) funcName, sizeof("xglCreateImage"))) + else if (!strncmp("xglCreateImage", funcName, sizeof("xglCreateImage"))) return xglCreateImage; - else if (!strncmp("xglGetImageSubresourceInfo", (const char *) funcName, sizeof("xglGetImageSubresourceInfo"))) + else if (!strncmp("xglGetImageSubresourceInfo", funcName, sizeof("xglGetImageSubresourceInfo"))) return xglGetImageSubresourceInfo; - else if (!strncmp("xglCreateImageView", (const char *) funcName, sizeof("xglCreateImageView"))) + else if (!strncmp("xglCreateImageView", funcName, sizeof("xglCreateImageView"))) return xglCreateImageView; - else if (!strncmp("xglCreateColorAttachmentView", (const char *) funcName, sizeof("xglCreateColorAttachmentView"))) + else if (!strncmp("xglCreateColorAttachmentView", funcName, sizeof("xglCreateColorAttachmentView"))) return xglCreateColorAttachmentView; - else if (!strncmp("xglCreateDepthStencilView", (const char *) funcName, sizeof("xglCreateDepthStencilView"))) + else if (!strncmp("xglCreateDepthStencilView", funcName, sizeof("xglCreateDepthStencilView"))) return xglCreateDepthStencilView; - else if (!strncmp("xglCreateShader", (const char *) funcName, sizeof("xglCreateShader"))) + else if (!strncmp("xglCreateShader", funcName, sizeof("xglCreateShader"))) return xglCreateShader; - else if (!strncmp("xglCreateGraphicsPipeline", (const char *) funcName, sizeof("xglCreateGraphicsPipeline"))) + else if (!strncmp("xglCreateGraphicsPipeline", funcName, sizeof("xglCreateGraphicsPipeline"))) return xglCreateGraphicsPipeline; - else if (!strncmp("xglCreateComputePipeline", (const char *) funcName, sizeof("xglCreateComputePipeline"))) + else if (!strncmp("xglCreateComputePipeline", funcName, sizeof("xglCreateComputePipeline"))) return xglCreateComputePipeline; - else if (!strncmp("xglStorePipeline", (const char *) funcName, sizeof("xglStorePipeline"))) + else if (!strncmp("xglStorePipeline", funcName, sizeof("xglStorePipeline"))) return xglStorePipeline; - else if (!strncmp("xglLoadPipeline", (const char *) funcName, sizeof("xglLoadPipeline"))) + else if (!strncmp("xglLoadPipeline", funcName, sizeof("xglLoadPipeline"))) return xglLoadPipeline; - else if (!strncmp("xglCreatePipelineDelta", (const char *) funcName, sizeof("xglCreatePipelineDelta"))) + else if (!strncmp("xglCreatePipelineDelta", funcName, sizeof("xglCreatePipelineDelta"))) return xglCreatePipelineDelta; - else if (!strncmp("xglCreateSampler", (const char *) funcName, sizeof("xglCreateSampler"))) + else if (!strncmp("xglCreateSampler", funcName, sizeof("xglCreateSampler"))) return xglCreateSampler; - else if (!strncmp("xglCreateDescriptorSet", (const char *) funcName, sizeof("xglCreateDescriptorSet"))) + else if (!strncmp("xglCreateDescriptorSet", funcName, sizeof("xglCreateDescriptorSet"))) return xglCreateDescriptorSet; - else if (!strncmp("xglBeginDescriptorSetUpdate", (const char *) funcName, sizeof("xglBeginDescriptorSetUpdate"))) + else if (!strncmp("xglBeginDescriptorSetUpdate", funcName, sizeof("xglBeginDescriptorSetUpdate"))) return xglBeginDescriptorSetUpdate; - else if (!strncmp("xglEndDescriptorSetUpdate", (const char *) funcName, sizeof("xglEndDescriptorSetUpdate"))) + else if (!strncmp("xglEndDescriptorSetUpdate", funcName, sizeof("xglEndDescriptorSetUpdate"))) return xglEndDescriptorSetUpdate; - else if (!strncmp("xglAttachSamplerDescriptors", (const char *) funcName, sizeof("xglAttachSamplerDescriptors"))) + else if (!strncmp("xglAttachSamplerDescriptors", funcName, sizeof("xglAttachSamplerDescriptors"))) return xglAttachSamplerDescriptors; - else if (!strncmp("xglAttachImageViewDescriptors", (const char *) funcName, sizeof("xglAttachImageViewDescriptors"))) + else if (!strncmp("xglAttachImageViewDescriptors", funcName, sizeof("xglAttachImageViewDescriptors"))) return xglAttachImageViewDescriptors; - else if (!strncmp("xglAttachMemoryViewDescriptors", (const char *) funcName, sizeof("xglAttachMemoryViewDescriptors"))) + else if (!strncmp("xglAttachMemoryViewDescriptors", funcName, sizeof("xglAttachMemoryViewDescriptors"))) return xglAttachMemoryViewDescriptors; - else if (!strncmp("xglAttachNestedDescriptors", (const char *) funcName, sizeof("xglAttachNestedDescriptors"))) + else if (!strncmp("xglAttachNestedDescriptors", funcName, sizeof("xglAttachNestedDescriptors"))) return xglAttachNestedDescriptors; - else if (!strncmp("xglClearDescriptorSetSlots", (const char *) funcName, sizeof("xglClearDescriptorSetSlots"))) + else if (!strncmp("xglClearDescriptorSetSlots", funcName, sizeof("xglClearDescriptorSetSlots"))) return xglClearDescriptorSetSlots; - else if (!strncmp("xglCreateViewportState", (const char *) funcName, sizeof("xglCreateViewportState"))) + else if (!strncmp("xglCreateViewportState", funcName, sizeof("xglCreateViewportState"))) return xglCreateViewportState; - else if (!strncmp("xglCreateRasterState", (const char *) funcName, sizeof("xglCreateRasterState"))) + else if (!strncmp("xglCreateRasterState", funcName, sizeof("xglCreateRasterState"))) return xglCreateRasterState; - else if (!strncmp("xglCreateMsaaState", (const char *) funcName, sizeof("xglCreateMsaaState"))) + else if (!strncmp("xglCreateMsaaState", funcName, sizeof("xglCreateMsaaState"))) return xglCreateMsaaState; - else if (!strncmp("xglCreateColorBlendState", (const char *) funcName, sizeof("xglCreateColorBlendState"))) + else if (!strncmp("xglCreateColorBlendState", funcName, sizeof("xglCreateColorBlendState"))) return xglCreateColorBlendState; - else if (!strncmp("xglCreateDepthStencilState", (const char *) funcName, sizeof("xglCreateDepthStencilState"))) + else if (!strncmp("xglCreateDepthStencilState", funcName, sizeof("xglCreateDepthStencilState"))) return xglCreateDepthStencilState; - else if (!strncmp("xglCreateCommandBuffer", (const char *) funcName, sizeof("xglCreateCommandBuffer"))) + else if (!strncmp("xglCreateCommandBuffer", funcName, sizeof("xglCreateCommandBuffer"))) return xglCreateCommandBuffer; - else if (!strncmp("xglBeginCommandBuffer", (const char *) funcName, sizeof("xglBeginCommandBuffer"))) + else if (!strncmp("xglBeginCommandBuffer", funcName, sizeof("xglBeginCommandBuffer"))) return xglBeginCommandBuffer; - else if (!strncmp("xglEndCommandBuffer", (const char *) funcName, sizeof("xglEndCommandBuffer"))) + else if (!strncmp("xglEndCommandBuffer", funcName, sizeof("xglEndCommandBuffer"))) return xglEndCommandBuffer; - else if (!strncmp("xglResetCommandBuffer", (const char *) funcName, sizeof("xglResetCommandBuffer"))) + else if (!strncmp("xglResetCommandBuffer", funcName, sizeof("xglResetCommandBuffer"))) return xglResetCommandBuffer; - else if (!strncmp("xglCmdBindPipeline", (const char *) funcName, sizeof("xglCmdBindPipeline"))) + else if (!strncmp("xglCmdBindPipeline", funcName, sizeof("xglCmdBindPipeline"))) return xglCmdBindPipeline; - else if (!strncmp("xglCmdBindPipelineDelta", (const char *) funcName, sizeof("xglCmdBindPipelineDelta"))) + else if (!strncmp("xglCmdBindPipelineDelta", funcName, sizeof("xglCmdBindPipelineDelta"))) return xglCmdBindPipelineDelta; - else if (!strncmp("xglCmdBindStateObject", (const char *) funcName, sizeof("xglCmdBindStateObject"))) + else if (!strncmp("xglCmdBindStateObject", funcName, sizeof("xglCmdBindStateObject"))) return xglCmdBindStateObject; - else if (!strncmp("xglCmdBindDescriptorSet", (const char *) funcName, sizeof("xglCmdBindDescriptorSet"))) + else if (!strncmp("xglCmdBindDescriptorSet", funcName, sizeof("xglCmdBindDescriptorSet"))) return xglCmdBindDescriptorSet; - else if (!strncmp("xglCmdBindDynamicMemoryView", (const char *) funcName, sizeof("xglCmdBindDynamicMemoryView"))) + else if (!strncmp("xglCmdBindDynamicMemoryView", funcName, sizeof("xglCmdBindDynamicMemoryView"))) return xglCmdBindDynamicMemoryView; - else if (!strncmp("xglCmdBindIndexData", (const char *) funcName, sizeof("xglCmdBindIndexData"))) + else if (!strncmp("xglCmdBindIndexData", funcName, sizeof("xglCmdBindIndexData"))) return xglCmdBindIndexData; - else if (!strncmp("xglCmdBindAttachments", (const char *) funcName, sizeof("xglCmdBindAttachments"))) + else if (!strncmp("xglCmdBindAttachments", funcName, sizeof("xglCmdBindAttachments"))) return xglCmdBindAttachments; - else if (!strncmp("xglCmdPrepareMemoryRegions", (const char *) funcName, sizeof("xglCmdPrepareMemoryRegions"))) + else if (!strncmp("xglCmdPrepareMemoryRegions", funcName, sizeof("xglCmdPrepareMemoryRegions"))) return xglCmdPrepareMemoryRegions; - else if (!strncmp("xglCmdPrepareImages", (const char *) funcName, sizeof("xglCmdPrepareImages"))) + else if (!strncmp("xglCmdPrepareImages", funcName, sizeof("xglCmdPrepareImages"))) return xglCmdPrepareImages; - else if (!strncmp("xglCmdDraw", (const char *) funcName, sizeof("xglCmdDraw"))) + else if (!strncmp("xglCmdDraw", funcName, sizeof("xglCmdDraw"))) return xglCmdDraw; - else if (!strncmp("xglCmdDrawIndexed", (const char *) funcName, sizeof("xglCmdDrawIndexed"))) + else if (!strncmp("xglCmdDrawIndexed", funcName, sizeof("xglCmdDrawIndexed"))) return xglCmdDrawIndexed; - else if (!strncmp("xglCmdDrawIndirect", (const char *) funcName, sizeof("xglCmdDrawIndirect"))) + else if (!strncmp("xglCmdDrawIndirect", funcName, sizeof("xglCmdDrawIndirect"))) return xglCmdDrawIndirect; - else if (!strncmp("xglCmdDrawIndexedIndirect", (const char *) funcName, sizeof("xglCmdDrawIndexedIndirect"))) + else if (!strncmp("xglCmdDrawIndexedIndirect", funcName, sizeof("xglCmdDrawIndexedIndirect"))) return xglCmdDrawIndexedIndirect; - else if (!strncmp("xglCmdDispatch", (const char *) funcName, sizeof("xglCmdDispatch"))) + else if (!strncmp("xglCmdDispatch", funcName, sizeof("xglCmdDispatch"))) return xglCmdDispatch; - else if (!strncmp("xglCmdDispatchIndirect", (const char *) funcName, sizeof("xglCmdDispatchIndirect"))) + else if (!strncmp("xglCmdDispatchIndirect", funcName, sizeof("xglCmdDispatchIndirect"))) return xglCmdDispatchIndirect; - else if (!strncmp("xglCmdCopyMemory", (const char *) funcName, sizeof("xglCmdCopyMemory"))) + else if (!strncmp("xglCmdCopyMemory", funcName, sizeof("xglCmdCopyMemory"))) return xglCmdCopyMemory; - else if (!strncmp("xglCmdCopyImage", (const char *) funcName, sizeof("xglCmdCopyImage"))) + else if (!strncmp("xglCmdCopyImage", funcName, sizeof("xglCmdCopyImage"))) return xglCmdCopyImage; - else if (!strncmp("xglCmdCopyMemoryToImage", (const char *) funcName, sizeof("xglCmdCopyMemoryToImage"))) + else if (!strncmp("xglCmdCopyMemoryToImage", funcName, sizeof("xglCmdCopyMemoryToImage"))) return xglCmdCopyMemoryToImage; - else if (!strncmp("xglCmdCopyImageToMemory", (const char *) funcName, sizeof("xglCmdCopyImageToMemory"))) + else if (!strncmp("xglCmdCopyImageToMemory", funcName, sizeof("xglCmdCopyImageToMemory"))) return xglCmdCopyImageToMemory; - else if (!strncmp("xglCmdCloneImageData", (const char *) funcName, sizeof("xglCmdCloneImageData"))) + else if (!strncmp("xglCmdCloneImageData", funcName, sizeof("xglCmdCloneImageData"))) return xglCmdCloneImageData; - else if (!strncmp("xglCmdUpdateMemory", (const char *) funcName, sizeof("xglCmdUpdateMemory"))) + else if (!strncmp("xglCmdUpdateMemory", funcName, sizeof("xglCmdUpdateMemory"))) return xglCmdUpdateMemory; - else if (!strncmp("xglCmdFillMemory", (const char *) funcName, sizeof("xglCmdFillMemory"))) + else if (!strncmp("xglCmdFillMemory", funcName, sizeof("xglCmdFillMemory"))) return xglCmdFillMemory; - else if (!strncmp("xglCmdClearColorImage", (const char *) funcName, sizeof("xglCmdClearColorImage"))) + else if (!strncmp("xglCmdClearColorImage", funcName, sizeof("xglCmdClearColorImage"))) return xglCmdClearColorImage; - else if (!strncmp("xglCmdClearColorImageRaw", (const char *) funcName, sizeof("xglCmdClearColorImageRaw"))) + else if (!strncmp("xglCmdClearColorImageRaw", funcName, sizeof("xglCmdClearColorImageRaw"))) return xglCmdClearColorImageRaw; - else if (!strncmp("xglCmdClearDepthStencil", (const char *) funcName, sizeof("xglCmdClearDepthStencil"))) + else if (!strncmp("xglCmdClearDepthStencil", funcName, sizeof("xglCmdClearDepthStencil"))) return xglCmdClearDepthStencil; - else if (!strncmp("xglCmdResolveImage", (const char *) funcName, sizeof("xglCmdResolveImage"))) + else if (!strncmp("xglCmdResolveImage", funcName, sizeof("xglCmdResolveImage"))) return xglCmdResolveImage; - else if (!strncmp("xglCmdSetEvent", (const char *) funcName, sizeof("xglCmdSetEvent"))) + else if (!strncmp("xglCmdSetEvent", funcName, sizeof("xglCmdSetEvent"))) return xglCmdSetEvent; - else if (!strncmp("xglCmdResetEvent", (const char *) funcName, sizeof("xglCmdResetEvent"))) + else if (!strncmp("xglCmdResetEvent", funcName, sizeof("xglCmdResetEvent"))) return xglCmdResetEvent; - else if (!strncmp("xglCmdMemoryAtomic", (const char *) funcName, sizeof("xglCmdMemoryAtomic"))) + else if (!strncmp("xglCmdMemoryAtomic", funcName, sizeof("xglCmdMemoryAtomic"))) return xglCmdMemoryAtomic; - else if (!strncmp("xglCmdBeginQuery", (const char *) funcName, sizeof("xglCmdBeginQuery"))) + else if (!strncmp("xglCmdBeginQuery", funcName, sizeof("xglCmdBeginQuery"))) return xglCmdBeginQuery; - else if (!strncmp("xglCmdEndQuery", (const char *) funcName, sizeof("xglCmdEndQuery"))) + else if (!strncmp("xglCmdEndQuery", funcName, sizeof("xglCmdEndQuery"))) return xglCmdEndQuery; - else if (!strncmp("xglCmdResetQueryPool", (const char *) funcName, sizeof("xglCmdResetQueryPool"))) + else if (!strncmp("xglCmdResetQueryPool", funcName, sizeof("xglCmdResetQueryPool"))) return xglCmdResetQueryPool; - else if (!strncmp("xglCmdWriteTimestamp", (const char *) funcName, sizeof("xglCmdWriteTimestamp"))) + else if (!strncmp("xglCmdWriteTimestamp", funcName, sizeof("xglCmdWriteTimestamp"))) return xglCmdWriteTimestamp; - else if (!strncmp("xglCmdInitAtomicCounters", (const char *) funcName, sizeof("xglCmdInitAtomicCounters"))) + else if (!strncmp("xglCmdInitAtomicCounters", funcName, sizeof("xglCmdInitAtomicCounters"))) return xglCmdInitAtomicCounters; - else if (!strncmp("xglCmdLoadAtomicCounters", (const char *) funcName, sizeof("xglCmdLoadAtomicCounters"))) + else if (!strncmp("xglCmdLoadAtomicCounters", funcName, sizeof("xglCmdLoadAtomicCounters"))) return xglCmdLoadAtomicCounters; - else if (!strncmp("xglCmdSaveAtomicCounters", (const char *) funcName, sizeof("xglCmdSaveAtomicCounters"))) + else if (!strncmp("xglCmdSaveAtomicCounters", funcName, sizeof("xglCmdSaveAtomicCounters"))) return xglCmdSaveAtomicCounters; - else if (!strncmp("xglDbgSetValidationLevel", (const char *) funcName, sizeof("xglDbgSetValidationLevel"))) + else if (!strncmp("xglDbgSetValidationLevel", funcName, sizeof("xglDbgSetValidationLevel"))) return xglDbgSetValidationLevel; - else if (!strncmp("xglDbgRegisterMsgCallback", (const char *) funcName, sizeof("xglDbgRegisterMsgCallback"))) + else if (!strncmp("xglDbgRegisterMsgCallback", funcName, sizeof("xglDbgRegisterMsgCallback"))) return xglDbgRegisterMsgCallback; - else if (!strncmp("xglDbgUnregisterMsgCallback", (const char *) funcName, sizeof("xglDbgUnregisterMsgCallback"))) + else if (!strncmp("xglDbgUnregisterMsgCallback", funcName, sizeof("xglDbgUnregisterMsgCallback"))) return xglDbgUnregisterMsgCallback; - else if (!strncmp("xglDbgSetMessageFilter", (const char *) funcName, sizeof("xglDbgSetMessageFilter"))) + else if (!strncmp("xglDbgSetMessageFilter", funcName, sizeof("xglDbgSetMessageFilter"))) return xglDbgSetMessageFilter; - else if (!strncmp("xglDbgSetObjectTag", (const char *) funcName, sizeof("xglDbgSetObjectTag"))) + else if (!strncmp("xglDbgSetObjectTag", funcName, sizeof("xglDbgSetObjectTag"))) return xglDbgSetObjectTag; - else if (!strncmp("xglDbgSetGlobalOption", (const char *) funcName, sizeof("xglDbgSetGlobalOption"))) + else if (!strncmp("xglDbgSetGlobalOption", funcName, sizeof("xglDbgSetGlobalOption"))) return xglDbgSetGlobalOption; - else if (!strncmp("xglDbgSetDeviceOption", (const char *) funcName, sizeof("xglDbgSetDeviceOption"))) + else if (!strncmp("xglDbgSetDeviceOption", funcName, sizeof("xglDbgSetDeviceOption"))) return xglDbgSetDeviceOption; - else if (!strncmp("xglCmdDbgMarkerBegin", (const char *) funcName, sizeof("xglCmdDbgMarkerBegin"))) + else if (!strncmp("xglCmdDbgMarkerBegin", funcName, sizeof("xglCmdDbgMarkerBegin"))) return xglCmdDbgMarkerBegin; - else if (!strncmp("xglCmdDbgMarkerEnd", (const char *) funcName, sizeof("xglCmdDbgMarkerEnd"))) + else if (!strncmp("xglCmdDbgMarkerEnd", funcName, sizeof("xglCmdDbgMarkerEnd"))) return xglCmdDbgMarkerEnd; - else if (!strncmp("xglWsiX11AssociateConnection", (const char *) funcName, sizeof("xglWsiX11AssociateConnection"))) + else if (!strncmp("xglWsiX11AssociateConnection", funcName, sizeof("xglWsiX11AssociateConnection"))) return xglWsiX11AssociateConnection; - else if (!strncmp("xglWsiX11GetMSC", (const char *) funcName, sizeof("xglWsiX11GetMSC"))) + else if (!strncmp("xglWsiX11GetMSC", funcName, sizeof("xglWsiX11GetMSC"))) return xglWsiX11GetMSC; - else if (!strncmp("xglWsiX11CreatePresentableImage", (const char *) funcName, sizeof("xglWsiX11CreatePresentableImage"))) + else if (!strncmp("xglWsiX11CreatePresentableImage", funcName, sizeof("xglWsiX11CreatePresentableImage"))) return xglWsiX11CreatePresentableImage; - else if (!strncmp("xglWsiX11QueuePresent", (const char *) funcName, sizeof("xglWsiX11QueuePresent"))) + else if (!strncmp("xglWsiX11QueuePresent", funcName, sizeof("xglWsiX11QueuePresent"))) return xglWsiX11QueuePresent; else { XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; diff --git a/layers/multi.cpp b/layers/multi.cpp index 0f620185..77f951de 100644 --- a/layers/multi.cpp +++ b/layers/multi.cpp @@ -117,245 +117,245 @@ XGL_LAYER_EXPORT XGL_VOID * XGLAPI multi1GetProcAddr(XGL_PHYSICAL_GPU gpu, const return NULL; XGL_LAYER_DISPATCH_TABLE* pTable; pTable = getLayer1Table(gpuw); - if (!strncmp("xglInitAndEnumerateGpus", (const char *) pName, sizeof("xglInitAndEnumerateGpus"))) + if (!strncmp("xglInitAndEnumerateGpus", pName, sizeof("xglInitAndEnumerateGpus"))) return (XGL_VOID *) pTable->InitAndEnumerateGpus; - else if (!strncmp("xglGetGpuInfo", (const char *) pName, sizeof ("xglGetGpuInfo"))) + else if (!strncmp("xglGetGpuInfo", pName, sizeof ("xglGetGpuInfo"))) return (XGL_VOID *) pTable->GetGpuInfo; - else if (!strncmp("xglCreateDevice", (const char *) pName, sizeof ("xglCreateDevice"))) + else if (!strncmp("xglCreateDevice", pName, sizeof ("xglCreateDevice"))) return (XGL_VOID *) multi1CreateDevice; - else if (!strncmp("xglDestroyDevice", (const char *) pName, sizeof ("xglDestroyDevice"))) + else if (!strncmp("xglDestroyDevice", pName, sizeof ("xglDestroyDevice"))) return (XGL_VOID *) pTable->DestroyDevice; - else if (!strncmp("xglGetExtensionSupport", (const char *) pName, sizeof ("xglGetExtensionSupport"))) + else if (!strncmp("xglGetExtensionSupport", pName, sizeof ("xglGetExtensionSupport"))) return (XGL_VOID *) pTable->GetExtensionSupport; - else if (!strncmp("xglEnumerateLayers", (const char *) pName, sizeof ("xglEnumerateLayers"))) + else if (!strncmp("xglEnumerateLayers", pName, sizeof ("xglEnumerateLayers"))) return (XGL_VOID *) multi1EnumerateLayers; - else if (!strncmp("xglGetDeviceQueue", (const char *) pName, sizeof ("xglGetDeviceQueue"))) + else if (!strncmp("xglGetDeviceQueue", pName, sizeof ("xglGetDeviceQueue"))) return (XGL_VOID *) pTable->GetDeviceQueue; - else if (!strncmp("xglQueueSubmit", (const char *) pName, sizeof ("xglQueueSubmit"))) + else if (!strncmp("xglQueueSubmit", pName, sizeof ("xglQueueSubmit"))) return (XGL_VOID *) pTable->QueueSubmit; - else if (!strncmp("xglQueueSetGlobalMemReferences", (const char *) pName, sizeof ("xglQueueSetGlobalMemReferences"))) + else if (!strncmp("xglQueueSetGlobalMemReferences", pName, sizeof ("xglQueueSetGlobalMemReferences"))) return (XGL_VOID *) pTable->QueueSetGlobalMemReferences; - else if (!strncmp("xglQueueWaitIdle", (const char *) pName, sizeof ("xglQueueWaitIdle"))) + else if (!strncmp("xglQueueWaitIdle", pName, sizeof ("xglQueueWaitIdle"))) return (XGL_VOID *) pTable->QueueWaitIdle; - else if (!strncmp("xglDeviceWaitIdle", (const char *) pName, sizeof ("xglDeviceWaitIdle"))) + else if (!strncmp("xglDeviceWaitIdle", pName, sizeof ("xglDeviceWaitIdle"))) return (XGL_VOID *) pTable->DeviceWaitIdle; - else if (!strncmp("xglGetMemoryHeapCount", (const char *) pName, sizeof ("xglGetMemoryHeapCount"))) + else if (!strncmp("xglGetMemoryHeapCount", pName, sizeof ("xglGetMemoryHeapCount"))) return (XGL_VOID *) pTable->GetMemoryHeapCount; - else if (!strncmp("xglGetMemoryHeapInfo", (const char *) pName, sizeof ("xglGetMemoryHeapInfo"))) + else if (!strncmp("xglGetMemoryHeapInfo", pName, sizeof ("xglGetMemoryHeapInfo"))) return (XGL_VOID *) pTable->GetMemoryHeapInfo; - else if (!strncmp("xglAllocMemory", (const char *) pName, sizeof ("xglAllocMemory"))) + else if (!strncmp("xglAllocMemory", pName, sizeof ("xglAllocMemory"))) return (XGL_VOID *) pTable->AllocMemory; - else if (!strncmp("xglFreeMemory", (const char *) pName, sizeof ("xglFreeMemory"))) + else if (!strncmp("xglFreeMemory", pName, sizeof ("xglFreeMemory"))) return (XGL_VOID *) pTable->FreeMemory; - else if (!strncmp("xglSetMemoryPriority", (const char *) pName, sizeof ("xglSetMemoryPriority"))) + else if (!strncmp("xglSetMemoryPriority", pName, sizeof ("xglSetMemoryPriority"))) return (XGL_VOID *) pTable->SetMemoryPriority; - else if (!strncmp("xglMapMemory", (const char *) pName, sizeof ("xglMapMemory"))) + else if (!strncmp("xglMapMemory", pName, sizeof ("xglMapMemory"))) return (XGL_VOID *) pTable->MapMemory; - else if (!strncmp("xglUnmapMemory", (const char *) pName, sizeof ("xglUnmapMemory"))) + else if (!strncmp("xglUnmapMemory", pName, sizeof ("xglUnmapMemory"))) return (XGL_VOID *) pTable->UnmapMemory; - else if (!strncmp("xglPinSystemMemory", (const char *) pName, sizeof ("xglPinSystemMemory"))) + else if (!strncmp("xglPinSystemMemory", pName, sizeof ("xglPinSystemMemory"))) return (XGL_VOID *) pTable->PinSystemMemory; - else if (!strncmp("xglRemapVirtualMemoryPages", (const char *) pName, sizeof ("xglRemapVirtualMemoryPages"))) + else if (!strncmp("xglRemapVirtualMemoryPages", pName, sizeof ("xglRemapVirtualMemoryPages"))) return (XGL_VOID *) pTable->RemapVirtualMemoryPages; - else if (!strncmp("xglGetMultiGpuCompatibility", (const char *) pName, sizeof ("xglGetMultiGpuCompatibility"))) + else if (!strncmp("xglGetMultiGpuCompatibility", pName, sizeof ("xglGetMultiGpuCompatibility"))) return (XGL_VOID *) pTable->GetMultiGpuCompatibility; - else if (!strncmp("xglOpenSharedMemory", (const char *) pName, sizeof ("xglOpenSharedMemory"))) + else if (!strncmp("xglOpenSharedMemory", pName, sizeof ("xglOpenSharedMemory"))) return (XGL_VOID *) pTable->OpenSharedMemory; - else if (!strncmp("xglOpenSharedQueueSemaphore", (const char *) pName, sizeof ("xglOpenSharedQueueSemaphore"))) + else if (!strncmp("xglOpenSharedQueueSemaphore", pName, sizeof ("xglOpenSharedQueueSemaphore"))) return (XGL_VOID *) pTable->OpenSharedQueueSemaphore; - else if (!strncmp("xglOpenPeerMemory", (const char *) pName, sizeof ("xglOpenPeerMemory"))) + else if (!strncmp("xglOpenPeerMemory", pName, sizeof ("xglOpenPeerMemory"))) return (XGL_VOID *) pTable->OpenPeerMemory; - else if (!strncmp("xglOpenPeerImage", (const char *) pName, sizeof ("xglOpenPeerImage"))) + else if (!strncmp("xglOpenPeerImage", pName, sizeof ("xglOpenPeerImage"))) return (XGL_VOID *) pTable->OpenPeerImage; - else if (!strncmp("xglDestroyObject", (const char *) pName, sizeof ("xglDestroyObject"))) + else if (!strncmp("xglDestroyObject", pName, sizeof ("xglDestroyObject"))) return (XGL_VOID *) pTable->DestroyObject; - else if (!strncmp("xglGetObjectInfo", (const char *) pName, sizeof ("xglGetObjectInfo"))) + else if (!strncmp("xglGetObjectInfo", pName, sizeof ("xglGetObjectInfo"))) return (XGL_VOID *) pTable->GetObjectInfo; - else if (!strncmp("xglBindObjectMemory", (const char *) pName, sizeof ("xglBindObjectMemory"))) + else if (!strncmp("xglBindObjectMemory", pName, sizeof ("xglBindObjectMemory"))) return (XGL_VOID *) pTable->BindObjectMemory; - else if (!strncmp("xglCreateFence", (const char *) pName, sizeof ("xgllCreateFence"))) + else if (!strncmp("xglCreateFence", pName, sizeof ("xgllCreateFence"))) return (XGL_VOID *) pTable->CreateFence; - else if (!strncmp("xglGetFenceStatus", (const char *) pName, sizeof ("xglGetFenceStatus"))) + else if (!strncmp("xglGetFenceStatus", pName, sizeof ("xglGetFenceStatus"))) return (XGL_VOID *) pTable->GetFenceStatus; - else if (!strncmp("xglWaitForFences", (const char *) pName, sizeof ("xglWaitForFences"))) + else if (!strncmp("xglWaitForFences", pName, sizeof ("xglWaitForFences"))) return (XGL_VOID *) pTable->WaitForFences; - else if (!strncmp("xglCreateQueueSemaphore", (const char *) pName, sizeof ("xgllCreateQueueSemaphore"))) + else if (!strncmp("xglCreateQueueSemaphore", pName, sizeof ("xgllCreateQueueSemaphore"))) return (XGL_VOID *) pTable->CreateQueueSemaphore; - else if (!strncmp("xglSignalQueueSemaphore", (const char *) pName, sizeof ("xglSignalQueueSemaphore"))) + else if (!strncmp("xglSignalQueueSemaphore", pName, sizeof ("xglSignalQueueSemaphore"))) return (XGL_VOID *) pTable->SignalQueueSemaphore; - else if (!strncmp("xglWaitQueueSemaphore", (const char *) pName, sizeof ("xglWaitQueueSemaphore"))) + else if (!strncmp("xglWaitQueueSemaphore", pName, sizeof ("xglWaitQueueSemaphore"))) return (XGL_VOID *) pTable->WaitQueueSemaphore; - else if (!strncmp("xglCreateEvent", (const char *) pName, sizeof ("xgllCreateEvent"))) + else if (!strncmp("xglCreateEvent", pName, sizeof ("xgllCreateEvent"))) return (XGL_VOID *) pTable->CreateEvent; - else if (!strncmp("xglGetEventStatus", (const char *) pName, sizeof ("xglGetEventStatus"))) + else if (!strncmp("xglGetEventStatus", pName, sizeof ("xglGetEventStatus"))) return (XGL_VOID *) pTable->GetEventStatus; - else if (!strncmp("xglSetEvent", (const char *) pName, sizeof ("xglSetEvent"))) + else if (!strncmp("xglSetEvent", pName, sizeof ("xglSetEvent"))) return (XGL_VOID *) pTable->SetEvent; - else if (!strncmp("xglResetEvent", (const char *) pName, sizeof ("xgllResetEvent"))) + else if (!strncmp("xglResetEvent", pName, sizeof ("xgllResetEvent"))) return (XGL_VOID *) pTable->ResetEvent; - else if (!strncmp("xglCreateQueryPool", (const char *) pName, sizeof ("xglCreateQueryPool"))) + else if (!strncmp("xglCreateQueryPool", pName, sizeof ("xglCreateQueryPool"))) return (XGL_VOID *) pTable->CreateQueryPool; - else if (!strncmp("xglGetQueryPoolResults", (const char *) pName, sizeof ("xglGetQueryPoolResults"))) + else if (!strncmp("xglGetQueryPoolResults", pName, sizeof ("xglGetQueryPoolResults"))) return (XGL_VOID *) pTable->GetQueryPoolResults; - else if (!strncmp("xglGetFormatInfo", (const char *) pName, sizeof ("xglGetFormatInfo"))) + else if (!strncmp("xglGetFormatInfo", pName, sizeof ("xglGetFormatInfo"))) return (XGL_VOID *) pTable->GetFormatInfo; - else if (!strncmp("xglCreateImage", (const char *) pName, sizeof ("xglCreateImage"))) + else if (!strncmp("xglCreateImage", pName, sizeof ("xglCreateImage"))) return (XGL_VOID *) pTable->CreateImage; - else if (!strncmp("xglGetImageSubresourceInfo", (const char *) pName, sizeof ("xglGetImageSubresourceInfo"))) + else if (!strncmp("xglGetImageSubresourceInfo", pName, sizeof ("xglGetImageSubresourceInfo"))) return (XGL_VOID *) pTable->GetImageSubresourceInfo; - else if (!strncmp("xglCreateImageView", (const char *) pName, sizeof ("xglCreateImageView"))) + else if (!strncmp("xglCreateImageView", pName, sizeof ("xglCreateImageView"))) return (XGL_VOID *) pTable->CreateImageView; - else if (!strncmp("xglCreateColorAttachmentView", (const char *) pName, sizeof ("xglCreateColorAttachmentView"))) + else if (!strncmp("xglCreateColorAttachmentView", pName, sizeof ("xglCreateColorAttachmentView"))) return (XGL_VOID *) pTable->CreateColorAttachmentView; - else if (!strncmp("xglCreateDepthStencilView", (const char *) pName, sizeof ("xglCreateDepthStencilView"))) + else if (!strncmp("xglCreateDepthStencilView", pName, sizeof ("xglCreateDepthStencilView"))) return (XGL_VOID *) pTable->CreateDepthStencilView; - else if (!strncmp("xglCreateShader", (const char *) pName, sizeof ("xglCreateShader"))) + else if (!strncmp("xglCreateShader", pName, sizeof ("xglCreateShader"))) return (XGL_VOID *) pTable->CreateShader; - else if (!strncmp("xglCreateGraphicsPipeline", (const char *) pName, sizeof ("xglCreateGraphicsPipeline"))) + else if (!strncmp("xglCreateGraphicsPipeline", pName, sizeof ("xglCreateGraphicsPipeline"))) return (XGL_VOID *) multi1CreateGraphicsPipeline; - else if (!strncmp("xglCreateComputePipeline", (const char *) pName, sizeof ("xglCreateComputePipeline"))) + else if (!strncmp("xglCreateComputePipeline", pName, sizeof ("xglCreateComputePipeline"))) return (XGL_VOID *) pTable->CreateComputePipeline; - else if (!strncmp("xglStorePipeline", (const char *) pName, sizeof ("xglStorePipeline"))) + else if (!strncmp("xglStorePipeline", pName, sizeof ("xglStorePipeline"))) return (XGL_VOID *) multi1StorePipeline; - else if (!strncmp("xglLoadPipeline", (const char *) pName, sizeof ("xglLoadPipeline"))) + else if (!strncmp("xglLoadPipeline", pName, sizeof ("xglLoadPipeline"))) return (XGL_VOID *) pTable->LoadPipeline; - else if (!strncmp("xglCreatePipelineDelta", (const char *) pName, sizeof ("xglCreatePipelineDelta"))) + else if (!strncmp("xglCreatePipelineDelta", pName, sizeof ("xglCreatePipelineDelta"))) return (XGL_VOID *) pTable->CreatePipelineDelta; - else if (!strncmp("xglCreateSampler", (const char *) pName, sizeof ("xglCreateSampler"))) + else if (!strncmp("xglCreateSampler", pName, sizeof ("xglCreateSampler"))) return (XGL_VOID *) pTable->CreateSampler; - else if (!strncmp("xglCreateDescriptorSet", (const char *) pName, sizeof ("xglCreateDescriptorSet"))) + else if (!strncmp("xglCreateDescriptorSet", pName, sizeof ("xglCreateDescriptorSet"))) return (XGL_VOID *) pTable->CreateDescriptorSet; - else if (!strncmp("xglBeginDescriptorSetUpdate", (const char *) pName, sizeof ("xglBeginDescriptorSetUpdate"))) + else if (!strncmp("xglBeginDescriptorSetUpdate", pName, sizeof ("xglBeginDescriptorSetUpdate"))) return (XGL_VOID *) pTable->BeginDescriptorSetUpdate; - else if (!strncmp("xglEndDescriptorSetUpdate", (const char *) pName, sizeof ("xglEndDescriptorSetUpdate"))) + else if (!strncmp("xglEndDescriptorSetUpdate", pName, sizeof ("xglEndDescriptorSetUpdate"))) return (XGL_VOID *) pTable->EndDescriptorSetUpdate; - else if (!strncmp("xglAttachSamplerDescriptors", (const char *) pName, sizeof ("xglAttachSamplerDescriptors"))) + else if (!strncmp("xglAttachSamplerDescriptors", pName, sizeof ("xglAttachSamplerDescriptors"))) return (XGL_VOID *) pTable->AttachSamplerDescriptors; - else if (!strncmp("xglAttachImageViewDescriptors", (const char *) pName, sizeof ("xglAttachImageViewDescriptors"))) + else if (!strncmp("xglAttachImageViewDescriptors", pName, sizeof ("xglAttachImageViewDescriptors"))) return (XGL_VOID *) pTable->AttachImageViewDescriptors; - else if (!strncmp("xglAttachMemoryViewDescriptors", (const char *) pName, sizeof ("xglAttachMemoryViewDescriptors"))) + else if (!strncmp("xglAttachMemoryViewDescriptors", pName, sizeof ("xglAttachMemoryViewDescriptors"))) return (XGL_VOID *) pTable->AttachMemoryViewDescriptors; - else if (!strncmp("xglAttachNestedDescriptors", (const char *) pName, sizeof ("xglAttachNestedDescriptors"))) + else if (!strncmp("xglAttachNestedDescriptors", pName, sizeof ("xglAttachNestedDescriptors"))) return (XGL_VOID *) pTable->AttachNestedDescriptors; - else if (!strncmp("xglClearDescriptorSetSlots", (const char *) pName, sizeof ("xglClearDescriptorSetSlots"))) + else if (!strncmp("xglClearDescriptorSetSlots", pName, sizeof ("xglClearDescriptorSetSlots"))) return (XGL_VOID *) pTable->ClearDescriptorSetSlots; - else if (!strncmp("xglCreateViewportState", (const char *) pName, sizeof ("xglCreateViewportState"))) + else if (!strncmp("xglCreateViewportState", pName, sizeof ("xglCreateViewportState"))) return (XGL_VOID *) pTable->CreateViewportState; - else if (!strncmp("xglCreateRasterState", (const char *) pName, sizeof ("xglCreateRasterState"))) + else if (!strncmp("xglCreateRasterState", pName, sizeof ("xglCreateRasterState"))) return (XGL_VOID *) pTable->CreateRasterState; - else if (!strncmp("xglCreateMsaaState", (const char *) pName, sizeof ("xglCreateMsaaState"))) + else if (!strncmp("xglCreateMsaaState", pName, sizeof ("xglCreateMsaaState"))) return (XGL_VOID *) pTable->CreateMsaaState; - else if (!strncmp("xglCreateColorBlendState", (const char *) pName, sizeof ("xglCreateColorBlendState"))) + else if (!strncmp("xglCreateColorBlendState", pName, sizeof ("xglCreateColorBlendState"))) return (XGL_VOID *) pTable->CreateColorBlendState; - else if (!strncmp("xglCreateDepthStencilState", (const char *) pName, sizeof ("xglCreateDepthStencilState"))) + else if (!strncmp("xglCreateDepthStencilState", pName, sizeof ("xglCreateDepthStencilState"))) return (XGL_VOID *) pTable->CreateDepthStencilState; - else if (!strncmp("xglCreateCommandBuffer", (const char *) pName, sizeof ("xglCreateCommandBuffer"))) + else if (!strncmp("xglCreateCommandBuffer", pName, sizeof ("xglCreateCommandBuffer"))) return (XGL_VOID *) pTable->CreateCommandBuffer; - else if (!strncmp("xglBeginCommandBuffer", (const char *) pName, sizeof ("xglBeginCommandBuffer"))) + else if (!strncmp("xglBeginCommandBuffer", pName, sizeof ("xglBeginCommandBuffer"))) return (XGL_VOID *) pTable->BeginCommandBuffer; - else if (!strncmp("xglEndCommandBuffer", (const char *) pName, sizeof ("xglEndCommandBuffer"))) + else if (!strncmp("xglEndCommandBuffer", pName, sizeof ("xglEndCommandBuffer"))) return (XGL_VOID *) pTable->EndCommandBuffer; - else if (!strncmp("xglResetCommandBuffer", (const char *) pName, sizeof ("xglResetCommandBuffer"))) + else if (!strncmp("xglResetCommandBuffer", pName, sizeof ("xglResetCommandBuffer"))) return (XGL_VOID *) pTable->ResetCommandBuffer; - else if (!strncmp("xglCmdBindPipeline", (const char *) pName, sizeof ("xglCmdBindPipeline"))) + else if (!strncmp("xglCmdBindPipeline", pName, sizeof ("xglCmdBindPipeline"))) return (XGL_VOID *) pTable->CmdBindPipeline; - else if (!strncmp("xglCmdBindPipelineDelta", (const char *) pName, sizeof ("xglCmdBindPipelineDelta"))) + else if (!strncmp("xglCmdBindPipelineDelta", pName, sizeof ("xglCmdBindPipelineDelta"))) return (XGL_VOID *) pTable->CmdBindPipelineDelta; - else if (!strncmp("xglCmdBindStateObject", (const char *) pName, sizeof ("xglCmdBindStateObject"))) + else if (!strncmp("xglCmdBindStateObject", pName, sizeof ("xglCmdBindStateObject"))) return (XGL_VOID *) pTable->CmdBindStateObject; - else if (!strncmp("xglCmdBindDescriptorSet", (const char *) pName, sizeof ("xglCmdBindDescriptorSet"))) + else if (!strncmp("xglCmdBindDescriptorSet", pName, sizeof ("xglCmdBindDescriptorSet"))) return (XGL_VOID *) pTable->CmdBindDescriptorSet; - else if (!strncmp("xglCmdBindDynamicMemoryView", (const char *) pName, sizeof ("xglCmdBindDynamicMemoryView"))) + else if (!strncmp("xglCmdBindDynamicMemoryView", pName, sizeof ("xglCmdBindDynamicMemoryView"))) return (XGL_VOID *) pTable->CmdBindDynamicMemoryView; - else if (!strncmp("xglCmdBindVertexData", (const char *) pName, sizeof ("xglCmdBindVertexData"))) + else if (!strncmp("xglCmdBindVertexData", pName, sizeof ("xglCmdBindVertexData"))) return (XGL_VOID *) pTable->CmdBindVertexData; - else if (!strncmp("xglCmdBindIndexData", (const char *) pName, sizeof ("xglCmdBindIndexData"))) + else if (!strncmp("xglCmdBindIndexData", pName, sizeof ("xglCmdBindIndexData"))) return (XGL_VOID *) pTable->CmdBindIndexData; - else if (!strncmp("xglCmdBindAttachments", (const char *) pName, sizeof ("xglCmdBindAttachments"))) + else if (!strncmp("xglCmdBindAttachments", pName, sizeof ("xglCmdBindAttachments"))) return (XGL_VOID *) pTable->CmdBindAttachments; - else if (!strncmp("xglCmdPrepareMemoryRegions", (const char *) pName, sizeof ("xglCmdPrepareMemoryRegions"))) + else if (!strncmp("xglCmdPrepareMemoryRegions", pName, sizeof ("xglCmdPrepareMemoryRegions"))) return (XGL_VOID *) pTable->CmdPrepareMemoryRegions; - else if (!strncmp("xglCmdPrepareImages", (const char *) pName, sizeof ("xglCmdPrepareImages"))) + else if (!strncmp("xglCmdPrepareImages", pName, sizeof ("xglCmdPrepareImages"))) return (XGL_VOID *) pTable->CmdPrepareImages; - else if (!strncmp("xglCmdDraw", (const char *) pName, sizeof ("xglCmdDraw"))) + else if (!strncmp("xglCmdDraw", pName, sizeof ("xglCmdDraw"))) return (XGL_VOID *) pTable->CmdDraw; - else if (!strncmp("xglCmdDrawIndexed", (const char *) pName, sizeof ("xglCmdDrawIndexed"))) + else if (!strncmp("xglCmdDrawIndexed", pName, sizeof ("xglCmdDrawIndexed"))) return (XGL_VOID *) pTable->CmdDrawIndexed; - else if (!strncmp("xglCmdDrawIndirect", (const char *) pName, sizeof ("xglCmdDrawIndirect"))) + else if (!strncmp("xglCmdDrawIndirect", pName, sizeof ("xglCmdDrawIndirect"))) return (XGL_VOID *) pTable->CmdDrawIndirect; - else if (!strncmp("xglCmdDrawIndexedIndirect", (const char *) pName, sizeof ("xglCmdDrawIndexedIndirect"))) + else if (!strncmp("xglCmdDrawIndexedIndirect", pName, sizeof ("xglCmdDrawIndexedIndirect"))) return (XGL_VOID *) pTable->CmdDrawIndexedIndirect; - else if (!strncmp("xglCmdDispatch", (const char *) pName, sizeof ("xglCmdDispatch"))) + else if (!strncmp("xglCmdDispatch", pName, sizeof ("xglCmdDispatch"))) return (XGL_VOID *) pTable->CmdDispatch; - else if (!strncmp("xglCmdDispatchIndirect", (const char *) pName, sizeof ("xglCmdDispatchIndirect"))) + else if (!strncmp("xglCmdDispatchIndirect", pName, sizeof ("xglCmdDispatchIndirect"))) return (XGL_VOID *) pTable->CmdDispatchIndirect; - else if (!strncmp("xglCmdCopyMemory", (const char *) pName, sizeof ("xglCmdCopyMemory"))) + else if (!strncmp("xglCmdCopyMemory", pName, sizeof ("xglCmdCopyMemory"))) return (XGL_VOID *) pTable->CmdCopyMemory; - else if (!strncmp("xglCmdCopyImage", (const char *) pName, sizeof ("xglCmdCopyImage"))) + else if (!strncmp("xglCmdCopyImage", pName, sizeof ("xglCmdCopyImage"))) return (XGL_VOID *) pTable->CmdCopyImage; - else if (!strncmp("xglCmdCopyMemoryToImage", (const char *) pName, sizeof ("xglCmdCopyMemoryToImage"))) + else if (!strncmp("xglCmdCopyMemoryToImage", pName, sizeof ("xglCmdCopyMemoryToImage"))) return (XGL_VOID *) pTable->CmdCopyMemoryToImage; - else if (!strncmp("xglCmdCopyImageToMemory", (const char *) pName, sizeof ("xglCmdCopyImageToMemory"))) + else if (!strncmp("xglCmdCopyImageToMemory", pName, sizeof ("xglCmdCopyImageToMemory"))) return (XGL_VOID *) pTable->CmdCopyImageToMemory; - else if (!strncmp("xglCmdCloneImageData", (const char *) pName, sizeof ("xglCmdCloneImageData"))) + else if (!strncmp("xglCmdCloneImageData", pName, sizeof ("xglCmdCloneImageData"))) return (XGL_VOID *) pTable->CmdCloneImageData; - else if (!strncmp("xglCmdUpdateMemory", (const char *) pName, sizeof ("xglCmdUpdateMemory"))) + else if (!strncmp("xglCmdUpdateMemory", pName, sizeof ("xglCmdUpdateMemory"))) return (XGL_VOID *) pTable->CmdUpdateMemory; - else if (!strncmp("xglCmdFillMemory", (const char *) pName, sizeof ("xglCmdFillMemory"))) + else if (!strncmp("xglCmdFillMemory", pName, sizeof ("xglCmdFillMemory"))) return (XGL_VOID *) pTable->CmdFillMemory; - else if (!strncmp("xglCmdClearColorImage", (const char *) pName, sizeof ("xglCmdClearColorImage"))) + else if (!strncmp("xglCmdClearColorImage", pName, sizeof ("xglCmdClearColorImage"))) return (XGL_VOID *) pTable->CmdClearColorImage; - else if (!strncmp("xglCmdClearColorImageRaw", (const char *) pName, sizeof ("xglCmdClearColorImageRaw"))) + else if (!strncmp("xglCmdClearColorImageRaw", pName, sizeof ("xglCmdClearColorImageRaw"))) return (XGL_VOID *) pTable->CmdClearColorImageRaw; - else if (!strncmp("xglCmdClearDepthStencil", (const char *) pName, sizeof ("xglCmdClearDepthStencil"))) + else if (!strncmp("xglCmdClearDepthStencil", pName, sizeof ("xglCmdClearDepthStencil"))) return (XGL_VOID *) pTable->CmdClearDepthStencil; - else if (!strncmp("xglCmdResolveImage", (const char *) pName, sizeof ("xglCmdResolveImage"))) + else if (!strncmp("xglCmdResolveImage", pName, sizeof ("xglCmdResolveImage"))) return (XGL_VOID *) pTable->CmdResolveImage; - else if (!strncmp("xglCmdSetEvent", (const char *) pName, sizeof ("xglCmdSetEvent"))) + else if (!strncmp("xglCmdSetEvent", pName, sizeof ("xglCmdSetEvent"))) return (XGL_VOID *) pTable->CmdSetEvent; - else if (!strncmp("xglCmdResetEvent", (const char *) pName, sizeof ("xglCmdResetEvent"))) + else if (!strncmp("xglCmdResetEvent", pName, sizeof ("xglCmdResetEvent"))) return (XGL_VOID *) pTable->CmdResetEvent; - else if (!strncmp("xglCmdMemoryAtomic", (const char *) pName, sizeof ("xglCmdMemoryAtomic"))) + else if (!strncmp("xglCmdMemoryAtomic", pName, sizeof ("xglCmdMemoryAtomic"))) return (XGL_VOID *) pTable->CmdMemoryAtomic; - else if (!strncmp("xglCmdBeginQuery", (const char *) pName, sizeof ("xglCmdBeginQuery"))) + else if (!strncmp("xglCmdBeginQuery", pName, sizeof ("xglCmdBeginQuery"))) return (XGL_VOID *) pTable->CmdBeginQuery; - else if (!strncmp("xglCmdEndQuery", (const char *) pName, sizeof ("xglCmdEndQuery"))) + else if (!strncmp("xglCmdEndQuery", pName, sizeof ("xglCmdEndQuery"))) return (XGL_VOID *) pTable->CmdEndQuery; - else if (!strncmp("xglCmdResetQueryPool", (const char *) pName, sizeof ("xglCmdResetQueryPool"))) + else if (!strncmp("xglCmdResetQueryPool", pName, sizeof ("xglCmdResetQueryPool"))) return (XGL_VOID *) pTable->CmdResetQueryPool; - else if (!strncmp("xglCmdWriteTimestamp", (const char *) pName, sizeof ("xglCmdWriteTimestamp"))) + else if (!strncmp("xglCmdWriteTimestamp", pName, sizeof ("xglCmdWriteTimestamp"))) return (XGL_VOID *) pTable->CmdWriteTimestamp; - else if (!strncmp("xglCmdInitAtomicCounters", (const char *) pName, sizeof ("xglCmdInitAtomicCounters"))) + else if (!strncmp("xglCmdInitAtomicCounters", pName, sizeof ("xglCmdInitAtomicCounters"))) return (XGL_VOID *) pTable->CmdInitAtomicCounters; - else if (!strncmp("xglCmdLoadAtomicCounters", (const char *) pName, sizeof ("xglCmdLoadAtomicCounters"))) + else if (!strncmp("xglCmdLoadAtomicCounters", pName, sizeof ("xglCmdLoadAtomicCounters"))) return (XGL_VOID *) pTable->CmdLoadAtomicCounters; - else if (!strncmp("xglCmdSaveAtomicCounters", (const char *) pName, sizeof ("xglCmdSaveAtomicCounters"))) + else if (!strncmp("xglCmdSaveAtomicCounters", pName, sizeof ("xglCmdSaveAtomicCounters"))) return (XGL_VOID *) pTable->CmdSaveAtomicCounters; - else if (!strncmp("xglDbgSetValidationLevel", (const char *) pName, sizeof ("xglDbgSetValidationLevel"))) + else if (!strncmp("xglDbgSetValidationLevel", pName, sizeof ("xglDbgSetValidationLevel"))) return (XGL_VOID *) pTable->DbgSetValidationLevel; - else if (!strncmp("xglDbgRegisterMsgCallback", (const char *) pName, sizeof ("xglDbgRegisterMsgCallback"))) + else if (!strncmp("xglDbgRegisterMsgCallback", pName, sizeof ("xglDbgRegisterMsgCallback"))) return (XGL_VOID *) pTable->DbgRegisterMsgCallback; - else if (!strncmp("xglDbgUnregisterMsgCallback", (const char *) pName, sizeof ("xglDbgUnregisterMsgCallback"))) + else if (!strncmp("xglDbgUnregisterMsgCallback", pName, sizeof ("xglDbgUnregisterMsgCallback"))) return (XGL_VOID *) pTable->DbgUnregisterMsgCallback; - else if (!strncmp("xglDbgSetMessageFilter", (const char *) pName, sizeof ("xglDbgSetMessageFilter"))) + else if (!strncmp("xglDbgSetMessageFilter", pName, sizeof ("xglDbgSetMessageFilter"))) return (XGL_VOID *) pTable->DbgSetMessageFilter; - else if (!strncmp("xglDbgSetObjectTag", (const char *) pName, sizeof ("xglDbgSetObjectTag"))) + else if (!strncmp("xglDbgSetObjectTag", pName, sizeof ("xglDbgSetObjectTag"))) return (XGL_VOID *) pTable->DbgSetObjectTag; - else if (!strncmp("xglDbgSetGlobalOption", (const char *) pName, sizeof ("xglDbgSetGlobalOption"))) + else if (!strncmp("xglDbgSetGlobalOption", pName, sizeof ("xglDbgSetGlobalOption"))) return (XGL_VOID *) pTable->DbgSetGlobalOption; - else if (!strncmp("xglDbgSetDeviceOption", (const char *) pName, sizeof ("xglDbgSetDeviceOption"))) + else if (!strncmp("xglDbgSetDeviceOption", pName, sizeof ("xglDbgSetDeviceOption"))) return (XGL_VOID *) pTable->DbgSetDeviceOption; - else if (!strncmp("xglCmdDbgMarkerBegin", (const char *) pName, sizeof ("xglCmdDbgMarkerBegin"))) + else if (!strncmp("xglCmdDbgMarkerBegin", pName, sizeof ("xglCmdDbgMarkerBegin"))) return (XGL_VOID *) pTable->CmdDbgMarkerBegin; - else if (!strncmp("xglCmdDbgMarkerEnd", (const char *) pName, sizeof ("xglCmdDbgMarkerEnd"))) + else if (!strncmp("xglCmdDbgMarkerEnd", pName, sizeof ("xglCmdDbgMarkerEnd"))) return (XGL_VOID *) pTable->CmdDbgMarkerEnd; - else if (!strncmp("xglWsiX11AssociateConnection", (const char *) pName, sizeof("xglWsiX11AssociateConnection"))) + else if (!strncmp("xglWsiX11AssociateConnection", pName, sizeof("xglWsiX11AssociateConnection"))) return (XGL_VOID *) pTable->WsiX11AssociateConnection; - else if (!strncmp("xglWsiX11GetMSC", (const char *) pName, sizeof("xglWsiX11GetMSC"))) + else if (!strncmp("xglWsiX11GetMSC", pName, sizeof("xglWsiX11GetMSC"))) return (XGL_VOID *) pTable->WsiX11GetMSC; - else if (!strncmp("xglWsiX11CreatePresentableImage", (const char *) pName, sizeof("xglWsiX11CreatePresentableImage"))) + else if (!strncmp("xglWsiX11CreatePresentableImage", pName, sizeof("xglWsiX11CreatePresentableImage"))) return (XGL_VOID *) pTable->WsiX11CreatePresentableImage; - else if (!strncmp("xglWsiX11QueuePresent", (const char *) pName, sizeof("xglWsiX11QueuePresent"))) + else if (!strncmp("xglWsiX11QueuePresent", pName, sizeof("xglWsiX11QueuePresent"))) return (XGL_VOID *) pTable->WsiX11QueuePresent; else { XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; @@ -449,245 +449,245 @@ XGL_LAYER_EXPORT XGL_VOID * XGLAPI multi2GetProcAddr(XGL_PHYSICAL_GPU gpu, const return NULL; XGL_LAYER_DISPATCH_TABLE* pTable; pTable = getLayer2Table(gpuw); - if (!strncmp("xglInitAndEnumerateGpus", (const char *) pName, sizeof("xglInitAndEnumerateGpus"))) + if (!strncmp("xglInitAndEnumerateGpus", pName, sizeof("xglInitAndEnumerateGpus"))) return (XGL_VOID *) pTable->InitAndEnumerateGpus; - else if (!strncmp("xglGetGpuInfo", (const char *) pName, sizeof ("xglGetGpuInfo"))) + else if (!strncmp("xglGetGpuInfo", pName, sizeof ("xglGetGpuInfo"))) return (XGL_VOID *) pTable->GetGpuInfo; - else if (!strncmp("xglCreateDevice", (const char *) pName, sizeof ("xglCreateDevice"))) + else if (!strncmp("xglCreateDevice", pName, sizeof ("xglCreateDevice"))) return (XGL_VOID *) multi2CreateDevice; - else if (!strncmp("xglDestroyDevice", (const char *) pName, sizeof ("xglDestroyDevice"))) + else if (!strncmp("xglDestroyDevice", pName, sizeof ("xglDestroyDevice"))) return (XGL_VOID *) pTable->DestroyDevice; - else if (!strncmp("xglGetExtensionSupport", (const char *) pName, sizeof ("xglGetExtensionSupport"))) + else if (!strncmp("xglGetExtensionSupport", pName, sizeof ("xglGetExtensionSupport"))) return (XGL_VOID *) pTable->GetExtensionSupport; - else if (!strncmp("xglEnumerateLayers", (const char *) pName, sizeof ("xglEnumerateLayers"))) + else if (!strncmp("xglEnumerateLayers", pName, sizeof ("xglEnumerateLayers"))) return (XGL_VOID *) multi2EnumerateLayers; - else if (!strncmp("xglGetDeviceQueue", (const char *) pName, sizeof ("xglGetDeviceQueue"))) + else if (!strncmp("xglGetDeviceQueue", pName, sizeof ("xglGetDeviceQueue"))) return (XGL_VOID *) pTable->GetDeviceQueue; - else if (!strncmp("xglQueueSubmit", (const char *) pName, sizeof ("xglQueueSubmit"))) + else if (!strncmp("xglQueueSubmit", pName, sizeof ("xglQueueSubmit"))) return (XGL_VOID *) pTable->QueueSubmit; - else if (!strncmp("xglQueueSetGlobalMemReferences", (const char *) pName, sizeof ("xglQueueSetGlobalMemReferences"))) + else if (!strncmp("xglQueueSetGlobalMemReferences", pName, sizeof ("xglQueueSetGlobalMemReferences"))) return (XGL_VOID *) pTable->QueueSetGlobalMemReferences; - else if (!strncmp("xglQueueWaitIdle", (const char *) pName, sizeof ("xglQueueWaitIdle"))) + else if (!strncmp("xglQueueWaitIdle", pName, sizeof ("xglQueueWaitIdle"))) return (XGL_VOID *) pTable->QueueWaitIdle; - else if (!strncmp("xglDeviceWaitIdle", (const char *) pName, sizeof ("xglDeviceWaitIdle"))) + else if (!strncmp("xglDeviceWaitIdle", pName, sizeof ("xglDeviceWaitIdle"))) return (XGL_VOID *) pTable->DeviceWaitIdle; - else if (!strncmp("xglGetMemoryHeapCount", (const char *) pName, sizeof ("xglGetMemoryHeapCount"))) + else if (!strncmp("xglGetMemoryHeapCount", pName, sizeof ("xglGetMemoryHeapCount"))) return (XGL_VOID *) pTable->GetMemoryHeapCount; - else if (!strncmp("xglGetMemoryHeapInfo", (const char *) pName, sizeof ("xglGetMemoryHeapInfo"))) + else if (!strncmp("xglGetMemoryHeapInfo", pName, sizeof ("xglGetMemoryHeapInfo"))) return (XGL_VOID *) pTable->GetMemoryHeapInfo; - else if (!strncmp("xglAllocMemory", (const char *) pName, sizeof ("xglAllocMemory"))) + else if (!strncmp("xglAllocMemory", pName, sizeof ("xglAllocMemory"))) return (XGL_VOID *) pTable->AllocMemory; - else if (!strncmp("xglFreeMemory", (const char *) pName, sizeof ("xglFreeMemory"))) + else if (!strncmp("xglFreeMemory", pName, sizeof ("xglFreeMemory"))) return (XGL_VOID *) pTable->FreeMemory; - else if (!strncmp("xglSetMemoryPriority", (const char *) pName, sizeof ("xglSetMemoryPriority"))) + else if (!strncmp("xglSetMemoryPriority", pName, sizeof ("xglSetMemoryPriority"))) return (XGL_VOID *) pTable->SetMemoryPriority; - else if (!strncmp("xglMapMemory", (const char *) pName, sizeof ("xglMapMemory"))) + else if (!strncmp("xglMapMemory", pName, sizeof ("xglMapMemory"))) return (XGL_VOID *) pTable->MapMemory; - else if (!strncmp("xglUnmapMemory", (const char *) pName, sizeof ("xglUnmapMemory"))) + else if (!strncmp("xglUnmapMemory", pName, sizeof ("xglUnmapMemory"))) return (XGL_VOID *) pTable->UnmapMemory; - else if (!strncmp("xglPinSystemMemory", (const char *) pName, sizeof ("xglPinSystemMemory"))) + else if (!strncmp("xglPinSystemMemory", pName, sizeof ("xglPinSystemMemory"))) return (XGL_VOID *) pTable->PinSystemMemory; - else if (!strncmp("xglRemapVirtualMemoryPages", (const char *) pName, sizeof ("xglRemapVirtualMemoryPages"))) + else if (!strncmp("xglRemapVirtualMemoryPages", pName, sizeof ("xglRemapVirtualMemoryPages"))) return (XGL_VOID *) pTable->RemapVirtualMemoryPages; - else if (!strncmp("xglGetMultiGpuCompatibility", (const char *) pName, sizeof ("xglGetMultiGpuCompatibility"))) + else if (!strncmp("xglGetMultiGpuCompatibility", pName, sizeof ("xglGetMultiGpuCompatibility"))) return (XGL_VOID *) pTable->GetMultiGpuCompatibility; - else if (!strncmp("xglOpenSharedMemory", (const char *) pName, sizeof ("xglOpenSharedMemory"))) + else if (!strncmp("xglOpenSharedMemory", pName, sizeof ("xglOpenSharedMemory"))) return (XGL_VOID *) pTable->OpenSharedMemory; - else if (!strncmp("xglOpenSharedQueueSemaphore", (const char *) pName, sizeof ("xglOpenSharedQueueSemaphore"))) + else if (!strncmp("xglOpenSharedQueueSemaphore", pName, sizeof ("xglOpenSharedQueueSemaphore"))) return (XGL_VOID *) pTable->OpenSharedQueueSemaphore; - else if (!strncmp("xglOpenPeerMemory", (const char *) pName, sizeof ("xglOpenPeerMemory"))) + else if (!strncmp("xglOpenPeerMemory", pName, sizeof ("xglOpenPeerMemory"))) return (XGL_VOID *) pTable->OpenPeerMemory; - else if (!strncmp("xglOpenPeerImage", (const char *) pName, sizeof ("xglOpenPeerImage"))) + else if (!strncmp("xglOpenPeerImage", pName, sizeof ("xglOpenPeerImage"))) return (XGL_VOID *) pTable->OpenPeerImage; - else if (!strncmp("xglDestroyObject", (const char *) pName, sizeof ("xglDestroyObject"))) + else if (!strncmp("xglDestroyObject", pName, sizeof ("xglDestroyObject"))) return (XGL_VOID *) pTable->DestroyObject; - else if (!strncmp("xglGetObjectInfo", (const char *) pName, sizeof ("xglGetObjectInfo"))) + else if (!strncmp("xglGetObjectInfo", pName, sizeof ("xglGetObjectInfo"))) return (XGL_VOID *) pTable->GetObjectInfo; - else if (!strncmp("xglBindObjectMemory", (const char *) pName, sizeof ("xglBindObjectMemory"))) + else if (!strncmp("xglBindObjectMemory", pName, sizeof ("xglBindObjectMemory"))) return (XGL_VOID *) pTable->BindObjectMemory; - else if (!strncmp("xglCreateFence", (const char *) pName, sizeof ("xgllCreateFence"))) + else if (!strncmp("xglCreateFence", pName, sizeof ("xgllCreateFence"))) return (XGL_VOID *) pTable->CreateFence; - else if (!strncmp("xglGetFenceStatus", (const char *) pName, sizeof ("xglGetFenceStatus"))) + else if (!strncmp("xglGetFenceStatus", pName, sizeof ("xglGetFenceStatus"))) return (XGL_VOID *) pTable->GetFenceStatus; - else if (!strncmp("xglWaitForFences", (const char *) pName, sizeof ("xglWaitForFences"))) + else if (!strncmp("xglWaitForFences", pName, sizeof ("xglWaitForFences"))) return (XGL_VOID *) pTable->WaitForFences; - else if (!strncmp("xglCreateQueueSemaphore", (const char *) pName, sizeof ("xgllCreateQueueSemaphore"))) + else if (!strncmp("xglCreateQueueSemaphore", pName, sizeof ("xgllCreateQueueSemaphore"))) return (XGL_VOID *) pTable->CreateQueueSemaphore; - else if (!strncmp("xglSignalQueueSemaphore", (const char *) pName, sizeof ("xglSignalQueueSemaphore"))) + else if (!strncmp("xglSignalQueueSemaphore", pName, sizeof ("xglSignalQueueSemaphore"))) return (XGL_VOID *) pTable->SignalQueueSemaphore; - else if (!strncmp("xglWaitQueueSemaphore", (const char *) pName, sizeof ("xglWaitQueueSemaphore"))) + else if (!strncmp("xglWaitQueueSemaphore", pName, sizeof ("xglWaitQueueSemaphore"))) return (XGL_VOID *) pTable->WaitQueueSemaphore; - else if (!strncmp("xglCreateEvent", (const char *) pName, sizeof ("xgllCreateEvent"))) + else if (!strncmp("xglCreateEvent", pName, sizeof ("xgllCreateEvent"))) return (XGL_VOID *) pTable->CreateEvent; - else if (!strncmp("xglGetEventStatus", (const char *) pName, sizeof ("xglGetEventStatus"))) + else if (!strncmp("xglGetEventStatus", pName, sizeof ("xglGetEventStatus"))) return (XGL_VOID *) pTable->GetEventStatus; - else if (!strncmp("xglSetEvent", (const char *) pName, sizeof ("xglSetEvent"))) + else if (!strncmp("xglSetEvent", pName, sizeof ("xglSetEvent"))) return (XGL_VOID *) pTable->SetEvent; - else if (!strncmp("xglResetEvent", (const char *) pName, sizeof ("xgllResetEvent"))) + else if (!strncmp("xglResetEvent", pName, sizeof ("xgllResetEvent"))) return (XGL_VOID *) pTable->ResetEvent; - else if (!strncmp("xglCreateQueryPool", (const char *) pName, sizeof ("xglCreateQueryPool"))) + else if (!strncmp("xglCreateQueryPool", pName, sizeof ("xglCreateQueryPool"))) return (XGL_VOID *) pTable->CreateQueryPool; - else if (!strncmp("xglGetQueryPoolResults", (const char *) pName, sizeof ("xglGetQueryPoolResults"))) + else if (!strncmp("xglGetQueryPoolResults", pName, sizeof ("xglGetQueryPoolResults"))) return (XGL_VOID *) pTable->GetQueryPoolResults; - else if (!strncmp("xglGetFormatInfo", (const char *) pName, sizeof ("xglGetFormatInfo"))) + else if (!strncmp("xglGetFormatInfo", pName, sizeof ("xglGetFormatInfo"))) return (XGL_VOID *) pTable->GetFormatInfo; - else if (!strncmp("xglCreateImage", (const char *) pName, sizeof ("xglCreateImage"))) + else if (!strncmp("xglCreateImage", pName, sizeof ("xglCreateImage"))) return (XGL_VOID *) pTable->CreateImage; - else if (!strncmp("xglGetImageSubresourceInfo", (const char *) pName, sizeof ("xglGetImageSubresourceInfo"))) + else if (!strncmp("xglGetImageSubresourceInfo", pName, sizeof ("xglGetImageSubresourceInfo"))) return (XGL_VOID *) pTable->GetImageSubresourceInfo; - else if (!strncmp("xglCreateImageView", (const char *) pName, sizeof ("xglCreateImageView"))) + else if (!strncmp("xglCreateImageView", pName, sizeof ("xglCreateImageView"))) return (XGL_VOID *) pTable->CreateImageView; - else if (!strncmp("xglCreateColorAttachmentView", (const char *) pName, sizeof ("xglCreateColorAttachmentView"))) + else if (!strncmp("xglCreateColorAttachmentView", pName, sizeof ("xglCreateColorAttachmentView"))) return (XGL_VOID *) pTable->CreateColorAttachmentView; - else if (!strncmp("xglCreateDepthStencilView", (const char *) pName, sizeof ("xglCreateDepthStencilView"))) + else if (!strncmp("xglCreateDepthStencilView", pName, sizeof ("xglCreateDepthStencilView"))) return (XGL_VOID *) pTable->CreateDepthStencilView; - else if (!strncmp("xglCreateShader", (const char *) pName, sizeof ("xglCreateShader"))) + else if (!strncmp("xglCreateShader", pName, sizeof ("xglCreateShader"))) return (XGL_VOID *) pTable->CreateShader; - else if (!strncmp("xglCreateGraphicsPipeline", (const char *) pName, sizeof ("xglCreateGraphicsPipeline"))) + else if (!strncmp("xglCreateGraphicsPipeline", pName, sizeof ("xglCreateGraphicsPipeline"))) return (XGL_VOID *) pTable->CreateGraphicsPipeline; - else if (!strncmp("xglCreateComputePipeline", (const char *) pName, sizeof ("xglCreateComputePipeline"))) + else if (!strncmp("xglCreateComputePipeline", pName, sizeof ("xglCreateComputePipeline"))) return (XGL_VOID *) pTable->CreateComputePipeline; - else if (!strncmp("xglStorePipeline", (const char *) pName, sizeof ("xglStorePipeline"))) + else if (!strncmp("xglStorePipeline", pName, sizeof ("xglStorePipeline"))) return (XGL_VOID *) pTable->StorePipeline; - else if (!strncmp("xglLoadPipeline", (const char *) pName, sizeof ("xglLoadPipeline"))) + else if (!strncmp("xglLoadPipeline", pName, sizeof ("xglLoadPipeline"))) return (XGL_VOID *) pTable->LoadPipeline; - else if (!strncmp("xglCreatePipelineDelta", (const char *) pName, sizeof ("xglCreatePipelineDelta"))) + else if (!strncmp("xglCreatePipelineDelta", pName, sizeof ("xglCreatePipelineDelta"))) return (XGL_VOID *) pTable->CreatePipelineDelta; - else if (!strncmp("xglCreateSampler", (const char *) pName, sizeof ("xglCreateSampler"))) + else if (!strncmp("xglCreateSampler", pName, sizeof ("xglCreateSampler"))) return (XGL_VOID *) pTable->CreateSampler; - else if (!strncmp("xglCreateDescriptorSet", (const char *) pName, sizeof ("xglCreateDescriptorSet"))) + else if (!strncmp("xglCreateDescriptorSet", pName, sizeof ("xglCreateDescriptorSet"))) return (XGL_VOID *) pTable->CreateDescriptorSet; - else if (!strncmp("xglBeginDescriptorSetUpdate", (const char *) pName, sizeof ("xglBeginDescriptorSetUpdate"))) + else if (!strncmp("xglBeginDescriptorSetUpdate", pName, sizeof ("xglBeginDescriptorSetUpdate"))) return (XGL_VOID *) pTable->BeginDescriptorSetUpdate; - else if (!strncmp("xglEndDescriptorSetUpdate", (const char *) pName, sizeof ("xglEndDescriptorSetUpdate"))) + else if (!strncmp("xglEndDescriptorSetUpdate", pName, sizeof ("xglEndDescriptorSetUpdate"))) return (XGL_VOID *) pTable->EndDescriptorSetUpdate; - else if (!strncmp("xglAttachSamplerDescriptors", (const char *) pName, sizeof ("xglAttachSamplerDescriptors"))) + else if (!strncmp("xglAttachSamplerDescriptors", pName, sizeof ("xglAttachSamplerDescriptors"))) return (XGL_VOID *) pTable->AttachSamplerDescriptors; - else if (!strncmp("xglAttachImageViewDescriptors", (const char *) pName, sizeof ("xglAttachImageViewDescriptors"))) + else if (!strncmp("xglAttachImageViewDescriptors", pName, sizeof ("xglAttachImageViewDescriptors"))) return (XGL_VOID *) pTable->AttachImageViewDescriptors; - else if (!strncmp("xglAttachMemoryViewDescriptors", (const char *) pName, sizeof ("xglAttachMemoryViewDescriptors"))) + else if (!strncmp("xglAttachMemoryViewDescriptors", pName, sizeof ("xglAttachMemoryViewDescriptors"))) return (XGL_VOID *) pTable->AttachMemoryViewDescriptors; - else if (!strncmp("xglAttachNestedDescriptors", (const char *) pName, sizeof ("xglAttachNestedDescriptors"))) + else if (!strncmp("xglAttachNestedDescriptors", pName, sizeof ("xglAttachNestedDescriptors"))) return (XGL_VOID *) pTable->AttachNestedDescriptors; - else if (!strncmp("xglClearDescriptorSetSlots", (const char *) pName, sizeof ("xglClearDescriptorSetSlots"))) + else if (!strncmp("xglClearDescriptorSetSlots", pName, sizeof ("xglClearDescriptorSetSlots"))) return (XGL_VOID *) pTable->ClearDescriptorSetSlots; - else if (!strncmp("xglCreateViewportState", (const char *) pName, sizeof ("xglCreateViewportState"))) + else if (!strncmp("xglCreateViewportState", pName, sizeof ("xglCreateViewportState"))) return (XGL_VOID *) pTable->CreateViewportState; - else if (!strncmp("xglCreateRasterState", (const char *) pName, sizeof ("xglCreateRasterState"))) + else if (!strncmp("xglCreateRasterState", pName, sizeof ("xglCreateRasterState"))) return (XGL_VOID *) pTable->CreateRasterState; - else if (!strncmp("xglCreateMsaaState", (const char *) pName, sizeof ("xglCreateMsaaState"))) + else if (!strncmp("xglCreateMsaaState", pName, sizeof ("xglCreateMsaaState"))) return (XGL_VOID *) pTable->CreateMsaaState; - else if (!strncmp("xglCreateColorBlendState", (const char *) pName, sizeof ("xglCreateColorBlendState"))) + else if (!strncmp("xglCreateColorBlendState", pName, sizeof ("xglCreateColorBlendState"))) return (XGL_VOID *) pTable->CreateColorBlendState; - else if (!strncmp("xglCreateDepthStencilState", (const char *) pName, sizeof ("xglCreateDepthStencilState"))) + else if (!strncmp("xglCreateDepthStencilState", pName, sizeof ("xglCreateDepthStencilState"))) return (XGL_VOID *) pTable->CreateDepthStencilState; - else if (!strncmp("xglCreateCommandBuffer", (const char *) pName, sizeof ("xglCreateCommandBuffer"))) + else if (!strncmp("xglCreateCommandBuffer", pName, sizeof ("xglCreateCommandBuffer"))) return (XGL_VOID *) multi2CreateCommandBuffer; - else if (!strncmp("xglBeginCommandBuffer", (const char *) pName, sizeof ("xglBeginCommandBuffer"))) + else if (!strncmp("xglBeginCommandBuffer", pName, sizeof ("xglBeginCommandBuffer"))) return (XGL_VOID *) multi2BeginCommandBuffer; - else if (!strncmp("xglEndCommandBuffer", (const char *) pName, sizeof ("xglEndCommandBuffer"))) + else if (!strncmp("xglEndCommandBuffer", pName, sizeof ("xglEndCommandBuffer"))) return (XGL_VOID *) pTable->EndCommandBuffer; - else if (!strncmp("xglResetCommandBuffer", (const char *) pName, sizeof ("xglResetCommandBuffer"))) + else if (!strncmp("xglResetCommandBuffer", pName, sizeof ("xglResetCommandBuffer"))) return (XGL_VOID *) pTable->ResetCommandBuffer; - else if (!strncmp("xglCmdBindPipeline", (const char *) pName, sizeof ("xglCmdBindPipeline"))) + else if (!strncmp("xglCmdBindPipeline", pName, sizeof ("xglCmdBindPipeline"))) return (XGL_VOID *) pTable->CmdBindPipeline; - else if (!strncmp("xglCmdBindPipelineDelta", (const char *) pName, sizeof ("xglCmdBindPipelineDelta"))) + else if (!strncmp("xglCmdBindPipelineDelta", pName, sizeof ("xglCmdBindPipelineDelta"))) return (XGL_VOID *) pTable->CmdBindPipelineDelta; - else if (!strncmp("xglCmdBindStateObject", (const char *) pName, sizeof ("xglCmdBindStateObject"))) + else if (!strncmp("xglCmdBindStateObject", pName, sizeof ("xglCmdBindStateObject"))) return (XGL_VOID *) pTable->CmdBindStateObject; - else if (!strncmp("xglCmdBindDescriptorSet", (const char *) pName, sizeof ("xglCmdBindDescriptorSet"))) + else if (!strncmp("xglCmdBindDescriptorSet", pName, sizeof ("xglCmdBindDescriptorSet"))) return (XGL_VOID *) pTable->CmdBindDescriptorSet; - else if (!strncmp("xglCmdBindDynamicMemoryView", (const char *) pName, sizeof ("xglCmdBindDynamicMemoryView"))) + else if (!strncmp("xglCmdBindDynamicMemoryView", pName, sizeof ("xglCmdBindDynamicMemoryView"))) return (XGL_VOID *) pTable->CmdBindDynamicMemoryView; - else if (!strncmp("xglCmdBindVertexData", (const char *) pName, sizeof ("xglCmdBindVertexData"))) + else if (!strncmp("xglCmdBindVertexData", pName, sizeof ("xglCmdBindVertexData"))) return (XGL_VOID *) pTable->CmdBindVertexData; - else if (!strncmp("xglCmdBindIndexData", (const char *) pName, sizeof ("xglCmdBindIndexData"))) + else if (!strncmp("xglCmdBindIndexData", pName, sizeof ("xglCmdBindIndexData"))) return (XGL_VOID *) pTable->CmdBindIndexData; - else if (!strncmp("xglCmdBindAttachments", (const char *) pName, sizeof ("xglCmdBindAttachments"))) + else if (!strncmp("xglCmdBindAttachments", pName, sizeof ("xglCmdBindAttachments"))) return (XGL_VOID *) pTable->CmdBindAttachments; - else if (!strncmp("xglCmdPrepareMemoryRegions", (const char *) pName, sizeof ("xglCmdPrepareMemoryRegions"))) + else if (!strncmp("xglCmdPrepareMemoryRegions", pName, sizeof ("xglCmdPrepareMemoryRegions"))) return (XGL_VOID *) pTable->CmdPrepareMemoryRegions; - else if (!strncmp("xglCmdPrepareImages", (const char *) pName, sizeof ("xglCmdPrepareImages"))) + else if (!strncmp("xglCmdPrepareImages", pName, sizeof ("xglCmdPrepareImages"))) return (XGL_VOID *) pTable->CmdPrepareImages; - else if (!strncmp("xglCmdDraw", (const char *) pName, sizeof ("xglCmdDraw"))) + else if (!strncmp("xglCmdDraw", pName, sizeof ("xglCmdDraw"))) return (XGL_VOID *) pTable->CmdDraw; - else if (!strncmp("xglCmdDrawIndexed", (const char *) pName, sizeof ("xglCmdDrawIndexed"))) + else if (!strncmp("xglCmdDrawIndexed", pName, sizeof ("xglCmdDrawIndexed"))) return (XGL_VOID *) pTable->CmdDrawIndexed; - else if (!strncmp("xglCmdDrawIndirect", (const char *) pName, sizeof ("xglCmdDrawIndirect"))) + else if (!strncmp("xglCmdDrawIndirect", pName, sizeof ("xglCmdDrawIndirect"))) return (XGL_VOID *) pTable->CmdDrawIndirect; - else if (!strncmp("xglCmdDrawIndexedIndirect", (const char *) pName, sizeof ("xglCmdDrawIndexedIndirect"))) + else if (!strncmp("xglCmdDrawIndexedIndirect", pName, sizeof ("xglCmdDrawIndexedIndirect"))) return (XGL_VOID *) pTable->CmdDrawIndexedIndirect; - else if (!strncmp("xglCmdDispatch", (const char *) pName, sizeof ("xglCmdDispatch"))) + else if (!strncmp("xglCmdDispatch", pName, sizeof ("xglCmdDispatch"))) return (XGL_VOID *) pTable->CmdDispatch; - else if (!strncmp("xglCmdDispatchIndirect", (const char *) pName, sizeof ("xglCmdDispatchIndirect"))) + else if (!strncmp("xglCmdDispatchIndirect", pName, sizeof ("xglCmdDispatchIndirect"))) return (XGL_VOID *) pTable->CmdDispatchIndirect; - else if (!strncmp("xglCmdCopyMemory", (const char *) pName, sizeof ("xglCmdCopyMemory"))) + else if (!strncmp("xglCmdCopyMemory", pName, sizeof ("xglCmdCopyMemory"))) return (XGL_VOID *) pTable->CmdCopyMemory; - else if (!strncmp("xglCmdCopyImage", (const char *) pName, sizeof ("xglCmdCopyImage"))) + else if (!strncmp("xglCmdCopyImage", pName, sizeof ("xglCmdCopyImage"))) return (XGL_VOID *) pTable->CmdCopyImage; - else if (!strncmp("xglCmdCopyMemoryToImage", (const char *) pName, sizeof ("xglCmdCopyMemoryToImage"))) + else if (!strncmp("xglCmdCopyMemoryToImage", pName, sizeof ("xglCmdCopyMemoryToImage"))) return (XGL_VOID *) pTable->CmdCopyMemoryToImage; - else if (!strncmp("xglCmdCopyImageToMemory", (const char *) pName, sizeof ("xglCmdCopyImageToMemory"))) + else if (!strncmp("xglCmdCopyImageToMemory", pName, sizeof ("xglCmdCopyImageToMemory"))) return (XGL_VOID *) pTable->CmdCopyImageToMemory; - else if (!strncmp("xglCmdCloneImageData", (const char *) pName, sizeof ("xglCmdCloneImageData"))) + else if (!strncmp("xglCmdCloneImageData", pName, sizeof ("xglCmdCloneImageData"))) return (XGL_VOID *) pTable->CmdCloneImageData; - else if (!strncmp("xglCmdUpdateMemory", (const char *) pName, sizeof ("xglCmdUpdateMemory"))) + else if (!strncmp("xglCmdUpdateMemory", pName, sizeof ("xglCmdUpdateMemory"))) return (XGL_VOID *) pTable->CmdUpdateMemory; - else if (!strncmp("xglCmdFillMemory", (const char *) pName, sizeof ("xglCmdFillMemory"))) + else if (!strncmp("xglCmdFillMemory", pName, sizeof ("xglCmdFillMemory"))) return (XGL_VOID *) pTable->CmdFillMemory; - else if (!strncmp("xglCmdClearColorImage", (const char *) pName, sizeof ("xglCmdClearColorImage"))) + else if (!strncmp("xglCmdClearColorImage", pName, sizeof ("xglCmdClearColorImage"))) return (XGL_VOID *) pTable->CmdClearColorImage; - else if (!strncmp("xglCmdClearColorImageRaw", (const char *) pName, sizeof ("xglCmdClearColorImageRaw"))) + else if (!strncmp("xglCmdClearColorImageRaw", pName, sizeof ("xglCmdClearColorImageRaw"))) return (XGL_VOID *) pTable->CmdClearColorImageRaw; - else if (!strncmp("xglCmdClearDepthStencil", (const char *) pName, sizeof ("xglCmdClearDepthStencil"))) + else if (!strncmp("xglCmdClearDepthStencil", pName, sizeof ("xglCmdClearDepthStencil"))) return (XGL_VOID *) pTable->CmdClearDepthStencil; - else if (!strncmp("xglCmdResolveImage", (const char *) pName, sizeof ("xglCmdResolveImage"))) + else if (!strncmp("xglCmdResolveImage", pName, sizeof ("xglCmdResolveImage"))) return (XGL_VOID *) pTable->CmdResolveImage; - else if (!strncmp("xglCmdSetEvent", (const char *) pName, sizeof ("xglCmdSetEvent"))) + else if (!strncmp("xglCmdSetEvent", pName, sizeof ("xglCmdSetEvent"))) return (XGL_VOID *) pTable->CmdSetEvent; - else if (!strncmp("xglCmdResetEvent", (const char *) pName, sizeof ("xglCmdResetEvent"))) + else if (!strncmp("xglCmdResetEvent", pName, sizeof ("xglCmdResetEvent"))) return (XGL_VOID *) pTable->CmdResetEvent; - else if (!strncmp("xglCmdMemoryAtomic", (const char *) pName, sizeof ("xglCmdMemoryAtomic"))) + else if (!strncmp("xglCmdMemoryAtomic", pName, sizeof ("xglCmdMemoryAtomic"))) return (XGL_VOID *) pTable->CmdMemoryAtomic; - else if (!strncmp("xglCmdBeginQuery", (const char *) pName, sizeof ("xglCmdBeginQuery"))) + else if (!strncmp("xglCmdBeginQuery", pName, sizeof ("xglCmdBeginQuery"))) return (XGL_VOID *) pTable->CmdBeginQuery; - else if (!strncmp("xglCmdEndQuery", (const char *) pName, sizeof ("xglCmdEndQuery"))) + else if (!strncmp("xglCmdEndQuery", pName, sizeof ("xglCmdEndQuery"))) return (XGL_VOID *) pTable->CmdEndQuery; - else if (!strncmp("xglCmdResetQueryPool", (const char *) pName, sizeof ("xglCmdResetQueryPool"))) + else if (!strncmp("xglCmdResetQueryPool", pName, sizeof ("xglCmdResetQueryPool"))) return (XGL_VOID *) pTable->CmdResetQueryPool; - else if (!strncmp("xglCmdWriteTimestamp", (const char *) pName, sizeof ("xglCmdWriteTimestamp"))) + else if (!strncmp("xglCmdWriteTimestamp", pName, sizeof ("xglCmdWriteTimestamp"))) return (XGL_VOID *) pTable->CmdWriteTimestamp; - else if (!strncmp("xglCmdInitAtomicCounters", (const char *) pName, sizeof ("xglCmdInitAtomicCounters"))) + else if (!strncmp("xglCmdInitAtomicCounters", pName, sizeof ("xglCmdInitAtomicCounters"))) return (XGL_VOID *) pTable->CmdInitAtomicCounters; - else if (!strncmp("xglCmdLoadAtomicCounters", (const char *) pName, sizeof ("xglCmdLoadAtomicCounters"))) + else if (!strncmp("xglCmdLoadAtomicCounters", pName, sizeof ("xglCmdLoadAtomicCounters"))) return (XGL_VOID *) pTable->CmdLoadAtomicCounters; - else if (!strncmp("xglCmdSaveAtomicCounters", (const char *) pName, sizeof ("xglCmdSaveAtomicCounters"))) + else if (!strncmp("xglCmdSaveAtomicCounters", pName, sizeof ("xglCmdSaveAtomicCounters"))) return (XGL_VOID *) pTable->CmdSaveAtomicCounters; - else if (!strncmp("xglDbgSetValidationLevel", (const char *) pName, sizeof ("xglDbgSetValidationLevel"))) + else if (!strncmp("xglDbgSetValidationLevel", pName, sizeof ("xglDbgSetValidationLevel"))) return (XGL_VOID *) pTable->DbgSetValidationLevel; - else if (!strncmp("xglDbgRegisterMsgCallback", (const char *) pName, sizeof ("xglDbgRegisterMsgCallback"))) + else if (!strncmp("xglDbgRegisterMsgCallback", pName, sizeof ("xglDbgRegisterMsgCallback"))) return (XGL_VOID *) pTable->DbgRegisterMsgCallback; - else if (!strncmp("xglDbgUnregisterMsgCallback", (const char *) pName, sizeof ("xglDbgUnregisterMsgCallback"))) + else if (!strncmp("xglDbgUnregisterMsgCallback", pName, sizeof ("xglDbgUnregisterMsgCallback"))) return (XGL_VOID *) pTable->DbgUnregisterMsgCallback; - else if (!strncmp("xglDbgSetMessageFilter", (const char *) pName, sizeof ("xglDbgSetMessageFilter"))) + else if (!strncmp("xglDbgSetMessageFilter", pName, sizeof ("xglDbgSetMessageFilter"))) return (XGL_VOID *) pTable->DbgSetMessageFilter; - else if (!strncmp("xglDbgSetObjectTag", (const char *) pName, sizeof ("xglDbgSetObjectTag"))) + else if (!strncmp("xglDbgSetObjectTag", pName, sizeof ("xglDbgSetObjectTag"))) return (XGL_VOID *) pTable->DbgSetObjectTag; - else if (!strncmp("xglDbgSetGlobalOption", (const char *) pName, sizeof ("xglDbgSetGlobalOption"))) + else if (!strncmp("xglDbgSetGlobalOption", pName, sizeof ("xglDbgSetGlobalOption"))) return (XGL_VOID *) pTable->DbgSetGlobalOption; - else if (!strncmp("xglDbgSetDeviceOption", (const char *) pName, sizeof ("xglDbgSetDeviceOption"))) + else if (!strncmp("xglDbgSetDeviceOption", pName, sizeof ("xglDbgSetDeviceOption"))) return (XGL_VOID *) pTable->DbgSetDeviceOption; - else if (!strncmp("xglCmdDbgMarkerBegin", (const char *) pName, sizeof ("xglCmdDbgMarkerBegin"))) + else if (!strncmp("xglCmdDbgMarkerBegin", pName, sizeof ("xglCmdDbgMarkerBegin"))) return (XGL_VOID *) pTable->CmdDbgMarkerBegin; - else if (!strncmp("xglCmdDbgMarkerEnd", (const char *) pName, sizeof ("xglCmdDbgMarkerEnd"))) + else if (!strncmp("xglCmdDbgMarkerEnd", pName, sizeof ("xglCmdDbgMarkerEnd"))) return (XGL_VOID *) pTable->CmdDbgMarkerEnd; - else if (!strncmp("xglWsiX11AssociateConnection", (const char *) pName, sizeof("xglWsiX11AssociateConnection"))) + else if (!strncmp("xglWsiX11AssociateConnection", pName, sizeof("xglWsiX11AssociateConnection"))) return (XGL_VOID *) pTable->WsiX11AssociateConnection; - else if (!strncmp("xglWsiX11GetMSC", (const char *) pName, sizeof("xglWsiX11GetMSC"))) + else if (!strncmp("xglWsiX11GetMSC", pName, sizeof("xglWsiX11GetMSC"))) return (XGL_VOID *) pTable->WsiX11GetMSC; - else if (!strncmp("xglWsiX11CreatePresentableImage", (const char *) pName, sizeof("xglWsiX11CreatePresentableImage"))) + else if (!strncmp("xglWsiX11CreatePresentableImage", pName, sizeof("xglWsiX11CreatePresentableImage"))) return (XGL_VOID *) pTable->WsiX11CreatePresentableImage; - else if (!strncmp("xglWsiX11QueuePresent", (const char *) pName, sizeof("xglWsiX11QueuePresent"))) + else if (!strncmp("xglWsiX11QueuePresent", pName, sizeof("xglWsiX11QueuePresent"))) return (XGL_VOID *) pTable->WsiX11QueuePresent; else { XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; @@ -717,11 +717,11 @@ XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglEnumerateLayers(XGL_PHYSICAL_GPU gpu, XGL_ XGL_LAYER_EXPORT XGL_VOID * XGLAPI xglGetProcAddr(XGL_PHYSICAL_GPU gpu, const XGL_CHAR* pName) { // to find each layers GPA routine Loader will search via "GetProcAddr" - if (!strncmp("multi1GetProcAddr", (const char *) pName, sizeof("multi1GetProcAddr"))) + if (!strncmp("multi1GetProcAddr", pName, sizeof("multi1GetProcAddr"))) return (XGL_VOID *) multi1GetProcAddr; - else if (!strncmp("multi2GetProcAddr", (const char *) pName, sizeof("multi2GetProcAddr"))) + else if (!strncmp("multi2GetProcAddr", pName, sizeof("multi2GetProcAddr"))) return (XGL_VOID *) multi2GetProcAddr; - else if (!strncmp("xglGetProcAddr", (const char *) pName, sizeof("xglGetProcAddr"))) + else if (!strncmp("xglGetProcAddr", pName, sizeof("xglGetProcAddr"))) return (XGL_VOID *) xglGetProcAddr; // use first layer activated as GPA dispatch table activation happens in order @@ -750,124 +750,124 @@ static void initLayerTable(const XGL_BASE_LAYER_OBJECT *gpuw, XGL_LAYER_DISPATCH layer1_first_activated = true; pTable->GetProcAddr = fpGPA; - pTable->InitAndEnumerateGpus = (InitAndEnumerateGpusType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglInitAndEnumerateGpus"); - pTable->GetGpuInfo = (GetGpuInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetGpuInfo"); - pTable->CreateDevice = (CreateDeviceType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateDevice"); - pTable->DestroyDevice = (DestroyDeviceType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDestroyDevice"); - pTable->GetExtensionSupport = (GetExtensionSupportType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetExtensionSupport"); - pTable->EnumerateLayers = (EnumerateLayersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglEnumerateLayers"); - pTable->GetDeviceQueue = (GetDeviceQueueType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetDeviceQueue"); - pTable->QueueSubmit = (QueueSubmitType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglQueueSubmit"); - pTable->QueueSetGlobalMemReferences = (QueueSetGlobalMemReferencesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglQueueSetGlobalMemReferences"); - pTable->QueueWaitIdle = (QueueWaitIdleType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglQueueWaitIdle"); - pTable->DeviceWaitIdle = (DeviceWaitIdleType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDeviceWaitIdle"); - pTable->GetMemoryHeapCount = (GetMemoryHeapCountType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetMemoryHeapCount"); - pTable->GetMemoryHeapInfo = (GetMemoryHeapInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetMemoryHeapInfo"); - pTable->AllocMemory = (AllocMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglAllocMemory"); - pTable->FreeMemory = (FreeMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglFreeMemory"); - pTable->SetMemoryPriority = (SetMemoryPriorityType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglSetMemoryPriority"); - pTable->MapMemory = (MapMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglMapMemory"); - pTable->UnmapMemory = (UnmapMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglUnmapMemory"); - pTable->PinSystemMemory = (PinSystemMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglPinSystemMemory"); - pTable->RemapVirtualMemoryPages = (RemapVirtualMemoryPagesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglRemapVirtualMemoryPages"); - pTable->GetMultiGpuCompatibility = (GetMultiGpuCompatibilityType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetMultiGpuCompatibility"); - pTable->OpenSharedMemory = (OpenSharedMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglOpenSharedMemory"); - pTable->OpenSharedQueueSemaphore = (OpenSharedQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglOpenSharedQueueSemaphore"); - pTable->OpenPeerMemory = (OpenPeerMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglOpenPeerMemory"); - pTable->OpenPeerImage = (OpenPeerImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglOpenPeerImage"); - pTable->DestroyObject = (DestroyObjectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDestroyObject"); - pTable->GetObjectInfo = (GetObjectInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetObjectInfo"); - pTable->BindObjectMemory = (BindObjectMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglBindObjectMemory"); - pTable->CreateFence = (CreateFenceType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateFence"); - pTable->GetFenceStatus = (GetFenceStatusType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetFenceStatus"); - pTable->WaitForFences = (WaitForFencesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglWaitForFences"); - pTable->CreateQueueSemaphore = (CreateQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateQueueSemaphore"); - pTable->SignalQueueSemaphore = (SignalQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglSignalQueueSemaphore"); - pTable->WaitQueueSemaphore = (WaitQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglWaitQueueSemaphore"); - pTable->CreateEvent = (CreateEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateEvent"); - pTable->GetEventStatus = (GetEventStatusType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetEventStatus"); - pTable->SetEvent = (SetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglSetEvent"); - pTable->ResetEvent = (ResetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglResetEvent"); - pTable->CreateQueryPool = (CreateQueryPoolType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateQueryPool"); - pTable->GetQueryPoolResults = (GetQueryPoolResultsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetQueryPoolResults"); - pTable->GetFormatInfo = (GetFormatInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetFormatInfo"); - pTable->CreateImage = (CreateImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateImage"); - pTable->GetImageSubresourceInfo = (GetImageSubresourceInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglGetImageSubresourceInfo"); - pTable->CreateImageView = (CreateImageViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateImageView"); - pTable->CreateColorAttachmentView = (CreateColorAttachmentViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateColorAttachmentView"); - pTable->CreateDepthStencilView = (CreateDepthStencilViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateDepthStencilView"); - pTable->CreateShader = (CreateShaderType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateShader"); - pTable->CreateGraphicsPipeline = (CreateGraphicsPipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateGraphicsPipeline"); - pTable->CreateComputePipeline = (CreateComputePipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateComputePipeline"); - pTable->StorePipeline = (StorePipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglStorePipeline"); - pTable->LoadPipeline = (LoadPipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglLoadPipeline"); - pTable->CreatePipelineDelta = (CreatePipelineDeltaType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreatePipelineDelta"); - pTable->CreateSampler = (CreateSamplerType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateSampler"); - pTable->CreateDescriptorSet = (CreateDescriptorSetType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateDescriptorSet"); - pTable->BeginDescriptorSetUpdate = (BeginDescriptorSetUpdateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglBeginDescriptorSetUpdate"); - pTable->EndDescriptorSetUpdate = (EndDescriptorSetUpdateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglEndDescriptorSetUpdate"); - pTable->AttachSamplerDescriptors = (AttachSamplerDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglAttachSamplerDescriptors"); - pTable->AttachImageViewDescriptors = (AttachImageViewDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglAttachImageViewDescriptors"); - pTable->AttachMemoryViewDescriptors = (AttachMemoryViewDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglAttachMemoryViewDescriptors"); - pTable->AttachNestedDescriptors = (AttachNestedDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglAttachNestedDescriptors"); - pTable->ClearDescriptorSetSlots = (ClearDescriptorSetSlotsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglClearDescriptorSetSlots"); - pTable->CreateViewportState = (CreateViewportStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateViewportState"); - pTable->CreateRasterState = (CreateRasterStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateRasterState"); - pTable->CreateMsaaState = (CreateMsaaStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateMsaaState"); - pTable->CreateColorBlendState = (CreateColorBlendStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateColorBlendState"); - pTable->CreateDepthStencilState = (CreateDepthStencilStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateDepthStencilState"); - pTable->CreateCommandBuffer = (CreateCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCreateCommandBuffer"); - pTable->BeginCommandBuffer = (BeginCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglBeginCommandBuffer"); - pTable->EndCommandBuffer = (EndCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglEndCommandBuffer"); - pTable->ResetCommandBuffer = (ResetCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglResetCommandBuffer"); - pTable->CmdBindPipeline = (CmdBindPipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindPipeline"); - pTable->CmdBindPipelineDelta = (CmdBindPipelineDeltaType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindPipelineDelta"); - pTable->CmdBindStateObject = (CmdBindStateObjectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindStateObject"); - pTable->CmdBindDescriptorSet = (CmdBindDescriptorSetType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindDescriptorSet"); - pTable->CmdBindDynamicMemoryView = (CmdBindDynamicMemoryViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindDynamicMemoryView"); - pTable->CmdBindVertexData = (CmdBindVertexDataType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindVertexData"); - pTable->CmdBindIndexData = (CmdBindIndexDataType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindIndexData"); - pTable->CmdBindAttachments = (CmdBindAttachmentsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBindAttachments"); - pTable->CmdPrepareMemoryRegions = (CmdPrepareMemoryRegionsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdPrepareMemoryRegions"); - pTable->CmdPrepareImages = (CmdPrepareImagesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdPrepareImages"); - pTable->CmdDraw = (CmdDrawType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDraw"); - pTable->CmdDrawIndexed = (CmdDrawIndexedType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDrawIndexed"); - pTable->CmdDrawIndirect = (CmdDrawIndirectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDrawIndirect"); - pTable->CmdDrawIndexedIndirect = (CmdDrawIndexedIndirectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDrawIndexedIndirect"); - pTable->CmdDispatch = (CmdDispatchType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDispatch"); - pTable->CmdDispatchIndirect = (CmdDispatchIndirectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDispatchIndirect"); - pTable->CmdCopyMemory = (CmdCopyMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdCopyMemory"); - pTable->CmdCopyImage = (CmdCopyImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdCopyImage"); - pTable->CmdCopyMemoryToImage = (CmdCopyMemoryToImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdCopyMemoryToImage"); - pTable->CmdCopyImageToMemory = (CmdCopyImageToMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdCopyImageToMemory"); - pTable->CmdCloneImageData = (CmdCloneImageDataType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdCloneImageData"); - pTable->CmdUpdateMemory = (CmdUpdateMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdUpdateMemory"); - pTable->CmdFillMemory = (CmdFillMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdFillMemory"); - pTable->CmdClearColorImage = (CmdClearColorImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdClearColorImage"); - pTable->CmdClearColorImageRaw = (CmdClearColorImageRawType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdClearColorImageRaw"); - pTable->CmdClearDepthStencil = (CmdClearDepthStencilType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdClearDepthStencil"); - pTable->CmdResolveImage = (CmdResolveImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdResolveImage"); - pTable->CmdSetEvent = (CmdSetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdSetEvent"); - pTable->CmdResetEvent = (CmdResetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdResetEvent"); - pTable->CmdMemoryAtomic = (CmdMemoryAtomicType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdMemoryAtomic"); - pTable->CmdBeginQuery = (CmdBeginQueryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdBeginQuery"); - pTable->CmdEndQuery = (CmdEndQueryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdEndQuery"); - pTable->CmdResetQueryPool = (CmdResetQueryPoolType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdResetQueryPool"); - pTable->CmdWriteTimestamp = (CmdWriteTimestampType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdWriteTimestamp"); - pTable->CmdInitAtomicCounters = (CmdInitAtomicCountersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdInitAtomicCounters"); - pTable->CmdLoadAtomicCounters = (CmdLoadAtomicCountersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdLoadAtomicCounters"); - pTable->CmdSaveAtomicCounters = (CmdSaveAtomicCountersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdSaveAtomicCounters"); - pTable->DbgSetValidationLevel = (DbgSetValidationLevelType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgSetValidationLevel"); - pTable->DbgRegisterMsgCallback = (DbgRegisterMsgCallbackType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgRegisterMsgCallback"); - pTable->DbgUnregisterMsgCallback = (DbgUnregisterMsgCallbackType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgUnregisterMsgCallback"); - pTable->DbgSetMessageFilter = (DbgSetMessageFilterType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgSetMessageFilter"); - pTable->DbgSetObjectTag = (DbgSetObjectTagType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgSetObjectTag"); - pTable->DbgSetGlobalOption = (DbgSetGlobalOptionType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgSetGlobalOption"); - pTable->DbgSetDeviceOption = (DbgSetDeviceOptionType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglDbgSetDeviceOption"); - pTable->CmdDbgMarkerBegin = (CmdDbgMarkerBeginType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDbgMarkerBegin"); - pTable->CmdDbgMarkerEnd = (CmdDbgMarkerEndType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglCmdDbgMarkerEnd"); - pTable->WsiX11AssociateConnection = (WsiX11AssociateConnectionType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglWsiX11AssociateConnection"); - pTable->WsiX11GetMSC = (WsiX11GetMSCType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglWsiX11GetMSC"); - pTable->WsiX11CreatePresentableImage = (WsiX11CreatePresentableImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglWsiX11CreatePresentableImage"); - pTable->WsiX11QueuePresent = (WsiX11QueuePresentType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, (const XGL_CHAR *) "xglWsiX11QueuePresent"); + pTable->InitAndEnumerateGpus = (InitAndEnumerateGpusType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglInitAndEnumerateGpus"); + pTable->GetGpuInfo = (GetGpuInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetGpuInfo"); + pTable->CreateDevice = (CreateDeviceType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateDevice"); + pTable->DestroyDevice = (DestroyDeviceType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDestroyDevice"); + pTable->GetExtensionSupport = (GetExtensionSupportType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetExtensionSupport"); + pTable->EnumerateLayers = (EnumerateLayersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglEnumerateLayers"); + pTable->GetDeviceQueue = (GetDeviceQueueType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetDeviceQueue"); + pTable->QueueSubmit = (QueueSubmitType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglQueueSubmit"); + pTable->QueueSetGlobalMemReferences = (QueueSetGlobalMemReferencesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglQueueSetGlobalMemReferences"); + pTable->QueueWaitIdle = (QueueWaitIdleType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglQueueWaitIdle"); + pTable->DeviceWaitIdle = (DeviceWaitIdleType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDeviceWaitIdle"); + pTable->GetMemoryHeapCount = (GetMemoryHeapCountType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetMemoryHeapCount"); + pTable->GetMemoryHeapInfo = (GetMemoryHeapInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetMemoryHeapInfo"); + pTable->AllocMemory = (AllocMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglAllocMemory"); + pTable->FreeMemory = (FreeMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglFreeMemory"); + pTable->SetMemoryPriority = (SetMemoryPriorityType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglSetMemoryPriority"); + pTable->MapMemory = (MapMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglMapMemory"); + pTable->UnmapMemory = (UnmapMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglUnmapMemory"); + pTable->PinSystemMemory = (PinSystemMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglPinSystemMemory"); + pTable->RemapVirtualMemoryPages = (RemapVirtualMemoryPagesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglRemapVirtualMemoryPages"); + pTable->GetMultiGpuCompatibility = (GetMultiGpuCompatibilityType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetMultiGpuCompatibility"); + pTable->OpenSharedMemory = (OpenSharedMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglOpenSharedMemory"); + pTable->OpenSharedQueueSemaphore = (OpenSharedQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglOpenSharedQueueSemaphore"); + pTable->OpenPeerMemory = (OpenPeerMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglOpenPeerMemory"); + pTable->OpenPeerImage = (OpenPeerImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglOpenPeerImage"); + pTable->DestroyObject = (DestroyObjectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDestroyObject"); + pTable->GetObjectInfo = (GetObjectInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetObjectInfo"); + pTable->BindObjectMemory = (BindObjectMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglBindObjectMemory"); + pTable->CreateFence = (CreateFenceType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateFence"); + pTable->GetFenceStatus = (GetFenceStatusType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetFenceStatus"); + pTable->WaitForFences = (WaitForFencesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglWaitForFences"); + pTable->CreateQueueSemaphore = (CreateQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateQueueSemaphore"); + pTable->SignalQueueSemaphore = (SignalQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglSignalQueueSemaphore"); + pTable->WaitQueueSemaphore = (WaitQueueSemaphoreType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglWaitQueueSemaphore"); + pTable->CreateEvent = (CreateEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateEvent"); + pTable->GetEventStatus = (GetEventStatusType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetEventStatus"); + pTable->SetEvent = (SetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglSetEvent"); + pTable->ResetEvent = (ResetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglResetEvent"); + pTable->CreateQueryPool = (CreateQueryPoolType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateQueryPool"); + pTable->GetQueryPoolResults = (GetQueryPoolResultsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetQueryPoolResults"); + pTable->GetFormatInfo = (GetFormatInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetFormatInfo"); + pTable->CreateImage = (CreateImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateImage"); + pTable->GetImageSubresourceInfo = (GetImageSubresourceInfoType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetImageSubresourceInfo"); + pTable->CreateImageView = (CreateImageViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateImageView"); + pTable->CreateColorAttachmentView = (CreateColorAttachmentViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateColorAttachmentView"); + pTable->CreateDepthStencilView = (CreateDepthStencilViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateDepthStencilView"); + pTable->CreateShader = (CreateShaderType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateShader"); + pTable->CreateGraphicsPipeline = (CreateGraphicsPipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateGraphicsPipeline"); + pTable->CreateComputePipeline = (CreateComputePipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateComputePipeline"); + pTable->StorePipeline = (StorePipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglStorePipeline"); + pTable->LoadPipeline = (LoadPipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglLoadPipeline"); + pTable->CreatePipelineDelta = (CreatePipelineDeltaType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreatePipelineDelta"); + pTable->CreateSampler = (CreateSamplerType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateSampler"); + pTable->CreateDescriptorSet = (CreateDescriptorSetType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateDescriptorSet"); + pTable->BeginDescriptorSetUpdate = (BeginDescriptorSetUpdateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglBeginDescriptorSetUpdate"); + pTable->EndDescriptorSetUpdate = (EndDescriptorSetUpdateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglEndDescriptorSetUpdate"); + pTable->AttachSamplerDescriptors = (AttachSamplerDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglAttachSamplerDescriptors"); + pTable->AttachImageViewDescriptors = (AttachImageViewDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglAttachImageViewDescriptors"); + pTable->AttachMemoryViewDescriptors = (AttachMemoryViewDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglAttachMemoryViewDescriptors"); + pTable->AttachNestedDescriptors = (AttachNestedDescriptorsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglAttachNestedDescriptors"); + pTable->ClearDescriptorSetSlots = (ClearDescriptorSetSlotsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglClearDescriptorSetSlots"); + pTable->CreateViewportState = (CreateViewportStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateViewportState"); + pTable->CreateRasterState = (CreateRasterStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateRasterState"); + pTable->CreateMsaaState = (CreateMsaaStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateMsaaState"); + pTable->CreateColorBlendState = (CreateColorBlendStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateColorBlendState"); + pTable->CreateDepthStencilState = (CreateDepthStencilStateType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateDepthStencilState"); + pTable->CreateCommandBuffer = (CreateCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCreateCommandBuffer"); + pTable->BeginCommandBuffer = (BeginCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglBeginCommandBuffer"); + pTable->EndCommandBuffer = (EndCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglEndCommandBuffer"); + pTable->ResetCommandBuffer = (ResetCommandBufferType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglResetCommandBuffer"); + pTable->CmdBindPipeline = (CmdBindPipelineType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindPipeline"); + pTable->CmdBindPipelineDelta = (CmdBindPipelineDeltaType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindPipelineDelta"); + pTable->CmdBindStateObject = (CmdBindStateObjectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindStateObject"); + pTable->CmdBindDescriptorSet = (CmdBindDescriptorSetType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindDescriptorSet"); + pTable->CmdBindDynamicMemoryView = (CmdBindDynamicMemoryViewType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindDynamicMemoryView"); + pTable->CmdBindVertexData = (CmdBindVertexDataType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindVertexData"); + pTable->CmdBindIndexData = (CmdBindIndexDataType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindIndexData"); + pTable->CmdBindAttachments = (CmdBindAttachmentsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBindAttachments"); + pTable->CmdPrepareMemoryRegions = (CmdPrepareMemoryRegionsType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdPrepareMemoryRegions"); + pTable->CmdPrepareImages = (CmdPrepareImagesType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdPrepareImages"); + pTable->CmdDraw = (CmdDrawType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDraw"); + pTable->CmdDrawIndexed = (CmdDrawIndexedType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDrawIndexed"); + pTable->CmdDrawIndirect = (CmdDrawIndirectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDrawIndirect"); + pTable->CmdDrawIndexedIndirect = (CmdDrawIndexedIndirectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDrawIndexedIndirect"); + pTable->CmdDispatch = (CmdDispatchType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDispatch"); + pTable->CmdDispatchIndirect = (CmdDispatchIndirectType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDispatchIndirect"); + pTable->CmdCopyMemory = (CmdCopyMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdCopyMemory"); + pTable->CmdCopyImage = (CmdCopyImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdCopyImage"); + pTable->CmdCopyMemoryToImage = (CmdCopyMemoryToImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdCopyMemoryToImage"); + pTable->CmdCopyImageToMemory = (CmdCopyImageToMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdCopyImageToMemory"); + pTable->CmdCloneImageData = (CmdCloneImageDataType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdCloneImageData"); + pTable->CmdUpdateMemory = (CmdUpdateMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdUpdateMemory"); + pTable->CmdFillMemory = (CmdFillMemoryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdFillMemory"); + pTable->CmdClearColorImage = (CmdClearColorImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdClearColorImage"); + pTable->CmdClearColorImageRaw = (CmdClearColorImageRawType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdClearColorImageRaw"); + pTable->CmdClearDepthStencil = (CmdClearDepthStencilType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdClearDepthStencil"); + pTable->CmdResolveImage = (CmdResolveImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdResolveImage"); + pTable->CmdSetEvent = (CmdSetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdSetEvent"); + pTable->CmdResetEvent = (CmdResetEventType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdResetEvent"); + pTable->CmdMemoryAtomic = (CmdMemoryAtomicType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdMemoryAtomic"); + pTable->CmdBeginQuery = (CmdBeginQueryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdBeginQuery"); + pTable->CmdEndQuery = (CmdEndQueryType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdEndQuery"); + pTable->CmdResetQueryPool = (CmdResetQueryPoolType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdResetQueryPool"); + pTable->CmdWriteTimestamp = (CmdWriteTimestampType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdWriteTimestamp"); + pTable->CmdInitAtomicCounters = (CmdInitAtomicCountersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdInitAtomicCounters"); + pTable->CmdLoadAtomicCounters = (CmdLoadAtomicCountersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdLoadAtomicCounters"); + pTable->CmdSaveAtomicCounters = (CmdSaveAtomicCountersType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdSaveAtomicCounters"); + pTable->DbgSetValidationLevel = (DbgSetValidationLevelType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgSetValidationLevel"); + pTable->DbgRegisterMsgCallback = (DbgRegisterMsgCallbackType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgRegisterMsgCallback"); + pTable->DbgUnregisterMsgCallback = (DbgUnregisterMsgCallbackType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgUnregisterMsgCallback"); + pTable->DbgSetMessageFilter = (DbgSetMessageFilterType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgSetMessageFilter"); + pTable->DbgSetObjectTag = (DbgSetObjectTagType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgSetObjectTag"); + pTable->DbgSetGlobalOption = (DbgSetGlobalOptionType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgSetGlobalOption"); + pTable->DbgSetDeviceOption = (DbgSetDeviceOptionType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglDbgSetDeviceOption"); + pTable->CmdDbgMarkerBegin = (CmdDbgMarkerBeginType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDbgMarkerBegin"); + pTable->CmdDbgMarkerEnd = (CmdDbgMarkerEndType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglCmdDbgMarkerEnd"); + pTable->WsiX11AssociateConnection = (WsiX11AssociateConnectionType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglWsiX11AssociateConnection"); + pTable->WsiX11GetMSC = (WsiX11GetMSCType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglWsiX11GetMSC"); + pTable->WsiX11CreatePresentableImage = (WsiX11CreatePresentableImageType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglWsiX11CreatePresentableImage"); + pTable->WsiX11QueuePresent = (WsiX11QueuePresentType) fpGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglWsiX11QueuePresent"); } diff --git a/loader/loader.c b/loader/loader.c index 87730bee..e9ec0fb2 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -168,7 +168,7 @@ static void loader_log(XGL_DBG_MSG_TYPE msg_type, XGL_INT msg_code, while (cb) { cb->func(msg_type, XGL_VALIDATION_LEVEL_0, XGL_NULL_HANDLE, 0, - msg_code, (const XGL_CHAR *) msg, cb->data); + msg_code, msg, cb->data); cb = cb->next; } @@ -434,7 +434,7 @@ static void layer_lib_scan(const char * libInPaths) if (!strncmp(dent->d_name, "libXGLLayer", strlen("libXGLLayer"))) { void * handle; snprintf(temp_str, sizeof(temp_str), "%s/%s",p,dent->d_name); - if ((handle = dlopen((const char *) temp_str, RTLD_LAZY)) == NULL) + if ((handle = dlopen(temp_str, RTLD_LAZY)) == NULL) continue; if (loader.scanned_layer_count == MAX_LAYER_LIBRARIES) { loader_log(XGL_DBG_MSG_ERROR, 0, "%s ignored: max layer libraries exceed", temp_str); @@ -461,128 +461,128 @@ static void layer_lib_scan(const char * libInPaths) static void loader_init_dispatch_table(XGL_LAYER_DISPATCH_TABLE *tab, GetProcAddrType fpGPA, XGL_PHYSICAL_GPU gpu) { tab->GetProcAddr = fpGPA; - tab->InitAndEnumerateGpus = fpGPA(gpu, (const XGL_CHAR *) "xglInitAndEnumerateGpus"); - tab->GetGpuInfo = fpGPA(gpu, (const XGL_CHAR *) "xglGetGpuInfo"); - tab->CreateDevice = fpGPA(gpu, (const XGL_CHAR *) "xglCreateDevice"); - tab->DestroyDevice = fpGPA(gpu, (const XGL_CHAR *) "xglDestroyDevice"); - tab->GetExtensionSupport = fpGPA(gpu, (const XGL_CHAR *) "xglGetExtensionSupport"); - tab->EnumerateLayers = fpGPA(gpu, (const XGL_CHAR *) "xglEnumerateLayers"); + tab->InitAndEnumerateGpus = fpGPA(gpu, "xglInitAndEnumerateGpus"); + tab->GetGpuInfo = fpGPA(gpu, "xglGetGpuInfo"); + tab->CreateDevice = fpGPA(gpu, "xglCreateDevice"); + tab->DestroyDevice = fpGPA(gpu, "xglDestroyDevice"); + tab->GetExtensionSupport = fpGPA(gpu, "xglGetExtensionSupport"); + tab->EnumerateLayers = fpGPA(gpu, "xglEnumerateLayers"); if (tab->EnumerateLayers == NULL) tab->EnumerateLayers = xglEnumerateLayers; - tab->GetDeviceQueue = fpGPA(gpu, (const XGL_CHAR *) "xglGetDeviceQueue"); - tab->QueueSubmit = fpGPA(gpu, (const XGL_CHAR *) "xglQueueSubmit"); - tab->QueueSetGlobalMemReferences = fpGPA(gpu, (const XGL_CHAR *) "xglQueueSetGlobalMemReferences"); - tab->QueueWaitIdle = fpGPA(gpu, (const XGL_CHAR *) "xglQueueWaitIdle"); - tab->DeviceWaitIdle = fpGPA(gpu, (const XGL_CHAR *) "xglDeviceWaitIdle"); - tab->GetMemoryHeapCount = fpGPA(gpu, (const XGL_CHAR *) "xglGetMemoryHeapCount"); - tab->GetMemoryHeapInfo = fpGPA(gpu, (const XGL_CHAR *) "xglGetMemoryHeapInfo"); - tab->AllocMemory = fpGPA(gpu, (const XGL_CHAR *) "xglAllocMemory"); - tab->FreeMemory = fpGPA(gpu, (const XGL_CHAR *) "xglFreeMemory"); - tab->SetMemoryPriority = fpGPA(gpu, (const XGL_CHAR *) "xglSetMemoryPriority"); - tab->MapMemory = fpGPA(gpu, (const XGL_CHAR *) "xglMapMemory"); - tab->UnmapMemory = fpGPA(gpu, (const XGL_CHAR *) "xglUnmapMemory"); - tab->PinSystemMemory = fpGPA(gpu, (const XGL_CHAR *) "xglPinSystemMemory"); - tab->RemapVirtualMemoryPages = fpGPA(gpu, (const XGL_CHAR *) "xglRemapVirtualMemoryPages"); - tab->GetMultiGpuCompatibility = fpGPA(gpu, (const XGL_CHAR *) "xglGetMultiGpuCompatibility"); - tab->OpenSharedMemory = fpGPA(gpu, (const XGL_CHAR *) "xglOpenSharedMemory"); - tab->OpenSharedQueueSemaphore = fpGPA(gpu, (const XGL_CHAR *) "xglOpenSharedQueueSemaphore"); - tab->OpenPeerMemory = fpGPA(gpu, (const XGL_CHAR *) "xglOpenPeerMemory"); - tab->OpenPeerImage = fpGPA(gpu, (const XGL_CHAR *) "xglOpenPeerImage"); - tab->DestroyObject = fpGPA(gpu, (const XGL_CHAR *) "xglDestroyObject"); - tab->GetObjectInfo = fpGPA(gpu, (const XGL_CHAR *) "xglGetObjectInfo"); - tab->BindObjectMemory = fpGPA(gpu, (const XGL_CHAR *) "xglBindObjectMemory"); - tab->CreateFence = fpGPA(gpu, (const XGL_CHAR *) "xglCreateFence"); - tab->GetFenceStatus = fpGPA(gpu, (const XGL_CHAR *) "xglGetFenceStatus"); - tab->WaitForFences = fpGPA(gpu, (const XGL_CHAR *) "xglWaitForFences"); - tab->CreateQueueSemaphore = fpGPA(gpu, (const XGL_CHAR *) "xglCreateQueueSemaphore"); - tab->SignalQueueSemaphore = fpGPA(gpu, (const XGL_CHAR *) "xglSignalQueueSemaphore"); - tab->WaitQueueSemaphore = fpGPA(gpu, (const XGL_CHAR *) "xglWaitQueueSemaphore"); - tab->CreateEvent = fpGPA(gpu, (const XGL_CHAR *) "xglCreateEvent"); - tab->GetEventStatus = fpGPA(gpu, (const XGL_CHAR *) "xglGetEventStatus"); - tab->SetEvent = fpGPA(gpu, (const XGL_CHAR *) "xglSetEvent"); - tab->ResetEvent = fpGPA(gpu, (const XGL_CHAR *) "xglResetEvent"); - tab->CreateQueryPool = fpGPA(gpu, (const XGL_CHAR *) "xglCreateQueryPool"); - tab->GetQueryPoolResults = fpGPA(gpu, (const XGL_CHAR *) "xglGetQueryPoolResults"); - tab->GetFormatInfo = fpGPA(gpu, (const XGL_CHAR *) "xglGetFormatInfo"); - tab->CreateImage = fpGPA(gpu, (const XGL_CHAR *) "xglCreateImage"); - tab->GetImageSubresourceInfo = fpGPA(gpu, (const XGL_CHAR *) "xglGetImageSubresourceInfo"); - tab->CreateImageView = fpGPA(gpu, (const XGL_CHAR *) "xglCreateImageView"); - tab->CreateColorAttachmentView = fpGPA(gpu, (const XGL_CHAR *) "xglCreateColorAttachmentView"); - tab->CreateDepthStencilView = fpGPA(gpu, (const XGL_CHAR *) "xglCreateDepthStencilView"); - tab->CreateShader = fpGPA(gpu, (const XGL_CHAR *) "xglCreateShader"); - tab->CreateGraphicsPipeline = fpGPA(gpu, (const XGL_CHAR *) "xglCreateGraphicsPipeline"); - tab->CreateComputePipeline = fpGPA(gpu, (const XGL_CHAR *) "xglCreateComputePipeline"); - tab->StorePipeline = fpGPA(gpu, (const XGL_CHAR *) "xglStorePipeline"); - tab->LoadPipeline = fpGPA(gpu, (const XGL_CHAR *) "xglLoadPipeline"); - tab->CreatePipelineDelta = fpGPA(gpu, (const XGL_CHAR *) "xglCreatePipelineDelta"); - tab->CreateSampler = fpGPA(gpu, (const XGL_CHAR *) "xglCreateSampler"); - tab->CreateDescriptorSet = fpGPA(gpu, (const XGL_CHAR *) "xglCreateDescriptorSet"); - tab->BeginDescriptorSetUpdate = fpGPA(gpu, (const XGL_CHAR *) "xglBeginDescriptorSetUpdate"); - tab->EndDescriptorSetUpdate = fpGPA(gpu, (const XGL_CHAR *) "xglEndDescriptorSetUpdate"); - tab->AttachSamplerDescriptors = fpGPA(gpu, (const XGL_CHAR *) "xglAttachSamplerDescriptors"); - tab->AttachImageViewDescriptors = fpGPA(gpu, (const XGL_CHAR *) "xglAttachImageViewDescriptors"); - tab->AttachMemoryViewDescriptors = fpGPA(gpu, (const XGL_CHAR *) "xglAttachMemoryViewDescriptors"); - tab->AttachNestedDescriptors = fpGPA(gpu, (const XGL_CHAR *) "xglAttachNestedDescriptors"); - tab->ClearDescriptorSetSlots = fpGPA(gpu, (const XGL_CHAR *) "xglClearDescriptorSetSlots"); - tab->CreateViewportState = fpGPA(gpu, (const XGL_CHAR *) "xglCreateViewportState"); - tab->CreateRasterState = fpGPA(gpu, (const XGL_CHAR *) "xglCreateRasterState"); - tab->CreateMsaaState = fpGPA(gpu, (const XGL_CHAR *) "xglCreateMsaaState"); - tab->CreateColorBlendState = fpGPA(gpu, (const XGL_CHAR *) "xglCreateColorBlendState"); - tab->CreateDepthStencilState = fpGPA(gpu, (const XGL_CHAR *) "xglCreateDepthStencilState"); - tab->CreateCommandBuffer = fpGPA(gpu, (const XGL_CHAR *) "xglCreateCommandBuffer"); - tab->BeginCommandBuffer = fpGPA(gpu, (const XGL_CHAR *) "xglBeginCommandBuffer"); - tab->EndCommandBuffer = fpGPA(gpu, (const XGL_CHAR *) "xglEndCommandBuffer"); - tab->ResetCommandBuffer = fpGPA(gpu, (const XGL_CHAR *) "xglResetCommandBuffer"); - tab->CmdBindPipeline = fpGPA(gpu, (const XGL_CHAR *) "xglCmdBindPipeline"); - tab->CmdBindPipelineDelta = fpGPA(gpu, (const XGL_CHAR *) "xglCmdBindPipelineDelta"); - tab->CmdBindStateObject = fpGPA(gpu, (const XGL_CHAR *) "xglCmdBindStateObject"); - tab->CmdBindDescriptorSet = fpGPA(gpu, (const XGL_CHAR *) "xglCmdBindDescriptorSet"); - tab->CmdBindDynamicMemoryView = fpGPA(gpu, (const XGL_CHAR *) "xglCmdBindDynamicMemoryView"); - tab->CmdBindVertexData = fpGPA(gpu, (const XGL_CHAR *) "xglCmdBindVertexData"); - tab->CmdBindIndexData = fpGPA(gpu, (const XGL_CHAR *) "xglCmdBindIndexData"); - tab->CmdBindAttachments = fpGPA(gpu, (const XGL_CHAR *) "xglCmdBindAttachments"); - tab->CmdPrepareMemoryRegions = fpGPA(gpu, (const XGL_CHAR *) "xglCmdPrepareMemoryRegions"); - tab->CmdPrepareImages = fpGPA(gpu, (const XGL_CHAR *) "xglCmdPrepareImages"); - tab->CmdDraw = fpGPA(gpu, (const XGL_CHAR *) "xglCmdDraw"); - tab->CmdDrawIndexed = fpGPA(gpu, (const XGL_CHAR *) "xglCmdDrawIndexed"); - tab->CmdDrawIndirect = fpGPA(gpu, (const XGL_CHAR *) "xglCmdDrawIndirect"); - tab->CmdDrawIndexedIndirect = fpGPA(gpu, (const XGL_CHAR *) "xglCmdDrawIndexedIndirect"); - tab->CmdDispatch = fpGPA(gpu, (const XGL_CHAR *) "xglCmdDispatch"); - tab->CmdDispatchIndirect = fpGPA(gpu, (const XGL_CHAR *) "xglCmdDispatchIndirect"); - tab->CmdCopyMemory = fpGPA(gpu, (const XGL_CHAR *) "xglCmdCopyMemory"); - tab->CmdCopyImage = fpGPA(gpu, (const XGL_CHAR *) "xglCmdCopyImage"); - tab->CmdCopyMemoryToImage = fpGPA(gpu, (const XGL_CHAR *) "xglCmdCopyMemoryToImage"); - tab->CmdCopyImageToMemory = fpGPA(gpu, (const XGL_CHAR *) "xglCmdCopyImageToMemory"); - tab->CmdCloneImageData = fpGPA(gpu, (const XGL_CHAR *) "xglCmdCloneImageData"); - tab->CmdUpdateMemory = fpGPA(gpu, (const XGL_CHAR *) "xglCmdUpdateMemory"); - tab->CmdFillMemory = fpGPA(gpu, (const XGL_CHAR *) "xglCmdFillMemory"); - tab->CmdClearColorImage = fpGPA(gpu, (const XGL_CHAR *) "xglCmdClearColorImage"); - tab->CmdClearColorImageRaw = fpGPA(gpu, (const XGL_CHAR *) "xglCmdClearColorImageRaw"); - tab->CmdClearDepthStencil = fpGPA(gpu, (const XGL_CHAR *) "xglCmdClearDepthStencil"); - tab->CmdResolveImage = fpGPA(gpu, (const XGL_CHAR *) "xglCmdResolveImage"); - tab->CmdSetEvent = fpGPA(gpu, (const XGL_CHAR *) "xglCmdSetEvent"); - tab->CmdResetEvent = fpGPA(gpu, (const XGL_CHAR *) "xglCmdResetEvent"); - tab->CmdMemoryAtomic = fpGPA(gpu, (const XGL_CHAR *) "xglCmdMemoryAtomic"); - tab->CmdBeginQuery = fpGPA(gpu, (const XGL_CHAR *) "xglCmdBeginQuery"); - tab->CmdEndQuery = fpGPA(gpu, (const XGL_CHAR *) "xglCmdEndQuery"); - tab->CmdResetQueryPool = fpGPA(gpu, (const XGL_CHAR *) "xglCmdResetQueryPool"); - tab->CmdWriteTimestamp = fpGPA(gpu, (const XGL_CHAR *) "xglCmdWriteTimestamp"); - tab->CmdInitAtomicCounters = fpGPA(gpu, (const XGL_CHAR *) "xglCmdInitAtomicCounters"); - tab->CmdLoadAtomicCounters = fpGPA(gpu, (const XGL_CHAR *) "xglCmdLoadAtomicCounters"); - tab->CmdSaveAtomicCounters = fpGPA(gpu, (const XGL_CHAR *) "xglCmdSaveAtomicCounters"); - tab->DbgSetValidationLevel = fpGPA(gpu, (const XGL_CHAR *) "xglDbgSetValidationLevel"); - tab->DbgRegisterMsgCallback = fpGPA(gpu, (const XGL_CHAR *) "xglDbgRegisterMsgCallback"); - tab->DbgUnregisterMsgCallback = fpGPA(gpu, (const XGL_CHAR *) "xglDbgUnregisterMsgCallback"); - tab->DbgSetMessageFilter = fpGPA(gpu, (const XGL_CHAR *) "xglDbgSetMessageFilter"); - tab->DbgSetObjectTag = fpGPA(gpu, (const XGL_CHAR *) "xglDbgSetObjectTag"); - tab->DbgSetGlobalOption = fpGPA(gpu, (const XGL_CHAR *) "xglDbgSetGlobalOption"); - tab->DbgSetDeviceOption = fpGPA(gpu, (const XGL_CHAR *) "xglDbgSetDeviceOption"); - tab->CmdDbgMarkerBegin = fpGPA(gpu, (const XGL_CHAR *) "xglCmdDbgMarkerBegin"); - tab->CmdDbgMarkerEnd = fpGPA(gpu, (const XGL_CHAR *) "xglCmdDbgMarkerEnd"); - tab->WsiX11AssociateConnection = fpGPA(gpu, (const XGL_CHAR *) "xglWsiX11AssociateConnection"); - tab->WsiX11GetMSC = fpGPA(gpu, (const XGL_CHAR *) "xglWsiX11GetMSC"); - tab->WsiX11CreatePresentableImage = fpGPA(gpu, (const XGL_CHAR *) "xglWsiX11CreatePresentableImage"); - tab->WsiX11QueuePresent = fpGPA(gpu, (const XGL_CHAR *) "xglWsiX11QueuePresent"); + tab->GetDeviceQueue = fpGPA(gpu, "xglGetDeviceQueue"); + tab->QueueSubmit = fpGPA(gpu, "xglQueueSubmit"); + tab->QueueSetGlobalMemReferences = fpGPA(gpu, "xglQueueSetGlobalMemReferences"); + tab->QueueWaitIdle = fpGPA(gpu, "xglQueueWaitIdle"); + tab->DeviceWaitIdle = fpGPA(gpu, "xglDeviceWaitIdle"); + tab->GetMemoryHeapCount = fpGPA(gpu, "xglGetMemoryHeapCount"); + tab->GetMemoryHeapInfo = fpGPA(gpu, "xglGetMemoryHeapInfo"); + tab->AllocMemory = fpGPA(gpu, "xglAllocMemory"); + tab->FreeMemory = fpGPA(gpu, "xglFreeMemory"); + tab->SetMemoryPriority = fpGPA(gpu, "xglSetMemoryPriority"); + tab->MapMemory = fpGPA(gpu, "xglMapMemory"); + tab->UnmapMemory = fpGPA(gpu, "xglUnmapMemory"); + tab->PinSystemMemory = fpGPA(gpu, "xglPinSystemMemory"); + tab->RemapVirtualMemoryPages = fpGPA(gpu, "xglRemapVirtualMemoryPages"); + tab->GetMultiGpuCompatibility = fpGPA(gpu, "xglGetMultiGpuCompatibility"); + tab->OpenSharedMemory = fpGPA(gpu, "xglOpenSharedMemory"); + tab->OpenSharedQueueSemaphore = fpGPA(gpu, "xglOpenSharedQueueSemaphore"); + tab->OpenPeerMemory = fpGPA(gpu, "xglOpenPeerMemory"); + tab->OpenPeerImage = fpGPA(gpu, "xglOpenPeerImage"); + tab->DestroyObject = fpGPA(gpu, "xglDestroyObject"); + tab->GetObjectInfo = fpGPA(gpu, "xglGetObjectInfo"); + tab->BindObjectMemory = fpGPA(gpu, "xglBindObjectMemory"); + tab->CreateFence = fpGPA(gpu, "xglCreateFence"); + tab->GetFenceStatus = fpGPA(gpu, "xglGetFenceStatus"); + tab->WaitForFences = fpGPA(gpu, "xglWaitForFences"); + tab->CreateQueueSemaphore = fpGPA(gpu, "xglCreateQueueSemaphore"); + tab->SignalQueueSemaphore = fpGPA(gpu, "xglSignalQueueSemaphore"); + tab->WaitQueueSemaphore = fpGPA(gpu, "xglWaitQueueSemaphore"); + tab->CreateEvent = fpGPA(gpu, "xglCreateEvent"); + tab->GetEventStatus = fpGPA(gpu, "xglGetEventStatus"); + tab->SetEvent = fpGPA(gpu, "xglSetEvent"); + tab->ResetEvent = fpGPA(gpu, "xglResetEvent"); + tab->CreateQueryPool = fpGPA(gpu, "xglCreateQueryPool"); + tab->GetQueryPoolResults = fpGPA(gpu, "xglGetQueryPoolResults"); + tab->GetFormatInfo = fpGPA(gpu, "xglGetFormatInfo"); + tab->CreateImage = fpGPA(gpu, "xglCreateImage"); + tab->GetImageSubresourceInfo = fpGPA(gpu, "xglGetImageSubresourceInfo"); + tab->CreateImageView = fpGPA(gpu, "xglCreateImageView"); + tab->CreateColorAttachmentView = fpGPA(gpu, "xglCreateColorAttachmentView"); + tab->CreateDepthStencilView = fpGPA(gpu, "xglCreateDepthStencilView"); + tab->CreateShader = fpGPA(gpu, "xglCreateShader"); + tab->CreateGraphicsPipeline = fpGPA(gpu, "xglCreateGraphicsPipeline"); + tab->CreateComputePipeline = fpGPA(gpu, "xglCreateComputePipeline"); + tab->StorePipeline = fpGPA(gpu, "xglStorePipeline"); + tab->LoadPipeline = fpGPA(gpu, "xglLoadPipeline"); + tab->CreatePipelineDelta = fpGPA(gpu, "xglCreatePipelineDelta"); + tab->CreateSampler = fpGPA(gpu, "xglCreateSampler"); + tab->CreateDescriptorSet = fpGPA(gpu, "xglCreateDescriptorSet"); + tab->BeginDescriptorSetUpdate = fpGPA(gpu, "xglBeginDescriptorSetUpdate"); + tab->EndDescriptorSetUpdate = fpGPA(gpu, "xglEndDescriptorSetUpdate"); + tab->AttachSamplerDescriptors = fpGPA(gpu, "xglAttachSamplerDescriptors"); + tab->AttachImageViewDescriptors = fpGPA(gpu, "xglAttachImageViewDescriptors"); + tab->AttachMemoryViewDescriptors = fpGPA(gpu, "xglAttachMemoryViewDescriptors"); + tab->AttachNestedDescriptors = fpGPA(gpu, "xglAttachNestedDescriptors"); + tab->ClearDescriptorSetSlots = fpGPA(gpu, "xglClearDescriptorSetSlots"); + tab->CreateViewportState = fpGPA(gpu, "xglCreateViewportState"); + tab->CreateRasterState = fpGPA(gpu, "xglCreateRasterState"); + tab->CreateMsaaState = fpGPA(gpu, "xglCreateMsaaState"); + tab->CreateColorBlendState = fpGPA(gpu, "xglCreateColorBlendState"); + tab->CreateDepthStencilState = fpGPA(gpu, "xglCreateDepthStencilState"); + tab->CreateCommandBuffer = fpGPA(gpu, "xglCreateCommandBuffer"); + tab->BeginCommandBuffer = fpGPA(gpu, "xglBeginCommandBuffer"); + tab->EndCommandBuffer = fpGPA(gpu, "xglEndCommandBuffer"); + tab->ResetCommandBuffer = fpGPA(gpu, "xglResetCommandBuffer"); + tab->CmdBindPipeline = fpGPA(gpu, "xglCmdBindPipeline"); + tab->CmdBindPipelineDelta = fpGPA(gpu, "xglCmdBindPipelineDelta"); + tab->CmdBindStateObject = fpGPA(gpu, "xglCmdBindStateObject"); + tab->CmdBindDescriptorSet = fpGPA(gpu, "xglCmdBindDescriptorSet"); + tab->CmdBindDynamicMemoryView = fpGPA(gpu, "xglCmdBindDynamicMemoryView"); + tab->CmdBindVertexData = fpGPA(gpu, "xglCmdBindVertexData"); + tab->CmdBindIndexData = fpGPA(gpu, "xglCmdBindIndexData"); + tab->CmdBindAttachments = fpGPA(gpu, "xglCmdBindAttachments"); + tab->CmdPrepareMemoryRegions = fpGPA(gpu, "xglCmdPrepareMemoryRegions"); + tab->CmdPrepareImages = fpGPA(gpu, "xglCmdPrepareImages"); + tab->CmdDraw = fpGPA(gpu, "xglCmdDraw"); + tab->CmdDrawIndexed = fpGPA(gpu, "xglCmdDrawIndexed"); + tab->CmdDrawIndirect = fpGPA(gpu, "xglCmdDrawIndirect"); + tab->CmdDrawIndexedIndirect = fpGPA(gpu, "xglCmdDrawIndexedIndirect"); + tab->CmdDispatch = fpGPA(gpu, "xglCmdDispatch"); + tab->CmdDispatchIndirect = fpGPA(gpu, "xglCmdDispatchIndirect"); + tab->CmdCopyMemory = fpGPA(gpu, "xglCmdCopyMemory"); + tab->CmdCopyImage = fpGPA(gpu, "xglCmdCopyImage"); + tab->CmdCopyMemoryToImage = fpGPA(gpu, "xglCmdCopyMemoryToImage"); + tab->CmdCopyImageToMemory = fpGPA(gpu, "xglCmdCopyImageToMemory"); + tab->CmdCloneImageData = fpGPA(gpu, "xglCmdCloneImageData"); + tab->CmdUpdateMemory = fpGPA(gpu, "xglCmdUpdateMemory"); + tab->CmdFillMemory = fpGPA(gpu, "xglCmdFillMemory"); + tab->CmdClearColorImage = fpGPA(gpu, "xglCmdClearColorImage"); + tab->CmdClearColorImageRaw = fpGPA(gpu, "xglCmdClearColorImageRaw"); + tab->CmdClearDepthStencil = fpGPA(gpu, "xglCmdClearDepthStencil"); + tab->CmdResolveImage = fpGPA(gpu, "xglCmdResolveImage"); + tab->CmdSetEvent = fpGPA(gpu, "xglCmdSetEvent"); + tab->CmdResetEvent = fpGPA(gpu, "xglCmdResetEvent"); + tab->CmdMemoryAtomic = fpGPA(gpu, "xglCmdMemoryAtomic"); + tab->CmdBeginQuery = fpGPA(gpu, "xglCmdBeginQuery"); + tab->CmdEndQuery = fpGPA(gpu, "xglCmdEndQuery"); + tab->CmdResetQueryPool = fpGPA(gpu, "xglCmdResetQueryPool"); + tab->CmdWriteTimestamp = fpGPA(gpu, "xglCmdWriteTimestamp"); + tab->CmdInitAtomicCounters = fpGPA(gpu, "xglCmdInitAtomicCounters"); + tab->CmdLoadAtomicCounters = fpGPA(gpu, "xglCmdLoadAtomicCounters"); + tab->CmdSaveAtomicCounters = fpGPA(gpu, "xglCmdSaveAtomicCounters"); + tab->DbgSetValidationLevel = fpGPA(gpu, "xglDbgSetValidationLevel"); + tab->DbgRegisterMsgCallback = fpGPA(gpu, "xglDbgRegisterMsgCallback"); + tab->DbgUnregisterMsgCallback = fpGPA(gpu, "xglDbgUnregisterMsgCallback"); + tab->DbgSetMessageFilter = fpGPA(gpu, "xglDbgSetMessageFilter"); + tab->DbgSetObjectTag = fpGPA(gpu, "xglDbgSetObjectTag"); + tab->DbgSetGlobalOption = fpGPA(gpu, "xglDbgSetGlobalOption"); + tab->DbgSetDeviceOption = fpGPA(gpu, "xglDbgSetDeviceOption"); + tab->CmdDbgMarkerBegin = fpGPA(gpu, "xglCmdDbgMarkerBegin"); + tab->CmdDbgMarkerEnd = fpGPA(gpu, "xglCmdDbgMarkerEnd"); + tab->WsiX11AssociateConnection = fpGPA(gpu, "xglWsiX11AssociateConnection"); + tab->WsiX11GetMSC = fpGPA(gpu, "xglWsiX11GetMSC"); + tab->WsiX11CreatePresentableImage = fpGPA(gpu, "xglWsiX11CreatePresentableImage"); + tab->WsiX11QueuePresent = fpGPA(gpu, "xglWsiX11QueuePresent"); } static struct loader_icd * loader_get_icd(const XGL_BASE_LAYER_OBJECT *gpu, XGL_UINT *gpu_index) @@ -749,7 +749,7 @@ static XGL_UINT loader_get_layer_libs(struct loader_icd *icd, XGL_UINT gpu_index XGL_UINT len; for (XGL_UINT i = 0; i < pCi->layerCount; i++) { const char * lib_name = NULL; - name = (const char *) *(pCi->ppActiveLayerNames + i); + name = *(pCi->ppActiveLayerNames + i); if (!find_layer_name(icd, gpu_index, name, &lib_name)) return loader_get_layer_env(icd, gpu_index, layerNames); len = strlen(name); @@ -875,247 +875,247 @@ LOADER_EXPORT XGL_VOID * XGLAPI xglGetProcAddr(XGL_PHYSICAL_GPU gpu, const XGL_C if (disp_table == NULL) return NULL; - if (!strncmp("xglGetProcAddr", (const char *) pName, sizeof("xglGetProcAddr"))) + if (!strncmp("xglGetProcAddr", pName, sizeof("xglGetProcAddr"))) return disp_table->GetProcAddr; - else if (!strncmp("xglInitAndEnumerateGpus", (const char *) pName, sizeof("xglInitAndEnumerateGpus"))) + else if (!strncmp("xglInitAndEnumerateGpus", pName, sizeof("xglInitAndEnumerateGpus"))) return disp_table->InitAndEnumerateGpus; - else if (!strncmp("xglGetGpuInfo", (const char *) pName, sizeof ("xglGetGpuInfo"))) + else if (!strncmp("xglGetGpuInfo", pName, sizeof ("xglGetGpuInfo"))) return disp_table->GetGpuInfo; - else if (!strncmp("xglCreateDevice", (const char *) pName, sizeof ("xglCreateDevice"))) + else if (!strncmp("xglCreateDevice", pName, sizeof ("xglCreateDevice"))) return disp_table->CreateDevice; - else if (!strncmp("xglDestroyDevice", (const char *) pName, sizeof ("xglDestroyDevice"))) + else if (!strncmp("xglDestroyDevice", pName, sizeof ("xglDestroyDevice"))) return disp_table->DestroyDevice; - else if (!strncmp("xglGetExtensionSupport", (const char *) pName, sizeof ("xglGetExtensionSupport"))) + else if (!strncmp("xglGetExtensionSupport", pName, sizeof ("xglGetExtensionSupport"))) return disp_table->GetExtensionSupport; - else if (!strncmp("xglEnumerateLayers", (const char *) pName, sizeof ("xglEnumerateLayers"))) + else if (!strncmp("xglEnumerateLayers", pName, sizeof ("xglEnumerateLayers"))) return disp_table->EnumerateLayers; - else if (!strncmp("xglGetDeviceQueue", (const char *) pName, sizeof ("xglGetDeviceQueue"))) + else if (!strncmp("xglGetDeviceQueue", pName, sizeof ("xglGetDeviceQueue"))) return disp_table->GetDeviceQueue; - else if (!strncmp("xglQueueSubmit", (const char *) pName, sizeof ("xglQueueSubmit"))) + else if (!strncmp("xglQueueSubmit", pName, sizeof ("xglQueueSubmit"))) return disp_table->QueueSubmit; - else if (!strncmp("xglQueueSetGlobalMemReferences", (const char *) pName, sizeof ("xglQueueSetGlobalMemReferences"))) + else if (!strncmp("xglQueueSetGlobalMemReferences", pName, sizeof ("xglQueueSetGlobalMemReferences"))) return disp_table->QueueSetGlobalMemReferences; - else if (!strncmp("xglQueueWaitIdle", (const char *) pName, sizeof ("xglQueueWaitIdle"))) + else if (!strncmp("xglQueueWaitIdle", pName, sizeof ("xglQueueWaitIdle"))) return disp_table->QueueWaitIdle; - else if (!strncmp("xglDeviceWaitIdle", (const char *) pName, sizeof ("xglDeviceWaitIdle"))) + else if (!strncmp("xglDeviceWaitIdle", pName, sizeof ("xglDeviceWaitIdle"))) return disp_table->DeviceWaitIdle; - else if (!strncmp("xglGetMemoryHeapCount", (const char *) pName, sizeof ("xglGetMemoryHeapCount"))) + else if (!strncmp("xglGetMemoryHeapCount", pName, sizeof ("xglGetMemoryHeapCount"))) return disp_table->GetMemoryHeapCount; - else if (!strncmp("xglGetMemoryHeapInfo", (const char *) pName, sizeof ("xglGetMemoryHeapInfo"))) + else if (!strncmp("xglGetMemoryHeapInfo", pName, sizeof ("xglGetMemoryHeapInfo"))) return disp_table->GetMemoryHeapInfo; - else if (!strncmp("xglAllocMemory", (const char *) pName, sizeof ("xglAllocMemory"))) + else if (!strncmp("xglAllocMemory", pName, sizeof ("xglAllocMemory"))) return disp_table->AllocMemory; - else if (!strncmp("xglFreeMemory", (const char *) pName, sizeof ("xglFreeMemory"))) + else if (!strncmp("xglFreeMemory", pName, sizeof ("xglFreeMemory"))) return disp_table->FreeMemory; - else if (!strncmp("xglSetMemoryPriority", (const char *) pName, sizeof ("xglSetMemoryPriority"))) + else if (!strncmp("xglSetMemoryPriority", pName, sizeof ("xglSetMemoryPriority"))) return disp_table->SetMemoryPriority; - else if (!strncmp("xglMapMemory", (const char *) pName, sizeof ("xglMapMemory"))) + else if (!strncmp("xglMapMemory", pName, sizeof ("xglMapMemory"))) return disp_table->MapMemory; - else if (!strncmp("xglUnmapMemory", (const char *) pName, sizeof ("xglUnmapMemory"))) + else if (!strncmp("xglUnmapMemory", pName, sizeof ("xglUnmapMemory"))) return disp_table->UnmapMemory; - else if (!strncmp("xglPinSystemMemory", (const char *) pName, sizeof ("xglPinSystemMemory"))) + else if (!strncmp("xglPinSystemMemory", pName, sizeof ("xglPinSystemMemory"))) return disp_table->PinSystemMemory; - else if (!strncmp("xglRemapVirtualMemoryPages", (const char *) pName, sizeof ("xglRemapVirtualMemoryPages"))) + else if (!strncmp("xglRemapVirtualMemoryPages", pName, sizeof ("xglRemapVirtualMemoryPages"))) return disp_table->RemapVirtualMemoryPages; - else if (!strncmp("xglGetMultiGpuCompatibility", (const char *) pName, sizeof ("xglGetMultiGpuCompatibility"))) + else if (!strncmp("xglGetMultiGpuCompatibility", pName, sizeof ("xglGetMultiGpuCompatibility"))) return disp_table->GetMultiGpuCompatibility; - else if (!strncmp("xglOpenSharedMemory", (const char *) pName, sizeof ("xglOpenSharedMemory"))) + else if (!strncmp("xglOpenSharedMemory", pName, sizeof ("xglOpenSharedMemory"))) return disp_table->OpenSharedMemory; - else if (!strncmp("xglOpenSharedQueueSemaphore", (const char *) pName, sizeof ("xglOpenSharedQueueSemaphore"))) + else if (!strncmp("xglOpenSharedQueueSemaphore", pName, sizeof ("xglOpenSharedQueueSemaphore"))) return disp_table->OpenSharedQueueSemaphore; - else if (!strncmp("xglOpenPeerMemory", (const char *) pName, sizeof ("xglOpenPeerMemory"))) + else if (!strncmp("xglOpenPeerMemory", pName, sizeof ("xglOpenPeerMemory"))) return disp_table->OpenPeerMemory; - else if (!strncmp("xglOpenPeerImage", (const char *) pName, sizeof ("xglOpenPeerImage"))) + else if (!strncmp("xglOpenPeerImage", pName, sizeof ("xglOpenPeerImage"))) return disp_table->OpenPeerImage; - else if (!strncmp("xglDestroyObject", (const char *) pName, sizeof ("xglDestroyObject"))) + else if (!strncmp("xglDestroyObject", pName, sizeof ("xglDestroyObject"))) return disp_table->DestroyObject; - else if (!strncmp("xglGetObjectInfo", (const char *) pName, sizeof ("xglGetObjectInfo"))) + else if (!strncmp("xglGetObjectInfo", pName, sizeof ("xglGetObjectInfo"))) return disp_table->GetObjectInfo; - else if (!strncmp("xglBindObjectMemory", (const char *) pName, sizeof ("xglBindObjectMemory"))) + else if (!strncmp("xglBindObjectMemory", pName, sizeof ("xglBindObjectMemory"))) return disp_table->BindObjectMemory; - else if (!strncmp("xglCreateFence", (const char *) pName, sizeof ("xgllCreateFence"))) + else if (!strncmp("xglCreateFence", pName, sizeof ("xgllCreateFence"))) return disp_table->CreateFence; - else if (!strncmp("xglGetFenceStatus", (const char *) pName, sizeof ("xglGetFenceStatus"))) + else if (!strncmp("xglGetFenceStatus", pName, sizeof ("xglGetFenceStatus"))) return disp_table->GetFenceStatus; - else if (!strncmp("xglWaitForFences", (const char *) pName, sizeof ("xglWaitForFences"))) + else if (!strncmp("xglWaitForFences", pName, sizeof ("xglWaitForFences"))) return disp_table->WaitForFences; - else if (!strncmp("xglCreateQueueSemaphore", (const char *) pName, sizeof ("xgllCreateQueueSemaphore"))) + else if (!strncmp("xglCreateQueueSemaphore", pName, sizeof ("xgllCreateQueueSemaphore"))) return disp_table->CreateQueueSemaphore; - else if (!strncmp("xglSignalQueueSemaphore", (const char *) pName, sizeof ("xglSignalQueueSemaphore"))) + else if (!strncmp("xglSignalQueueSemaphore", pName, sizeof ("xglSignalQueueSemaphore"))) return disp_table->SignalQueueSemaphore; - else if (!strncmp("xglWaitQueueSemaphore", (const char *) pName, sizeof ("xglWaitQueueSemaphore"))) + else if (!strncmp("xglWaitQueueSemaphore", pName, sizeof ("xglWaitQueueSemaphore"))) return disp_table->WaitQueueSemaphore; - else if (!strncmp("xglCreateEvent", (const char *) pName, sizeof ("xgllCreateEvent"))) + else if (!strncmp("xglCreateEvent", pName, sizeof ("xgllCreateEvent"))) return disp_table->CreateEvent; - else if (!strncmp("xglGetEventStatus", (const char *) pName, sizeof ("xglGetEventStatus"))) + else if (!strncmp("xglGetEventStatus", pName, sizeof ("xglGetEventStatus"))) return disp_table->GetEventStatus; - else if (!strncmp("xglSetEvent", (const char *) pName, sizeof ("xglSetEvent"))) + else if (!strncmp("xglSetEvent", pName, sizeof ("xglSetEvent"))) return disp_table->SetEvent; - else if (!strncmp("xglResetEvent", (const char *) pName, sizeof ("xgllResetEvent"))) + else if (!strncmp("xglResetEvent", pName, sizeof ("xgllResetEvent"))) return disp_table->ResetEvent; - else if (!strncmp("xglCreateQueryPool", (const char *) pName, sizeof ("xglCreateQueryPool"))) + else if (!strncmp("xglCreateQueryPool", pName, sizeof ("xglCreateQueryPool"))) return disp_table->CreateQueryPool; - else if (!strncmp("xglGetQueryPoolResults", (const char *) pName, sizeof ("xglGetQueryPoolResults"))) + else if (!strncmp("xglGetQueryPoolResults", pName, sizeof ("xglGetQueryPoolResults"))) return disp_table->GetQueryPoolResults; - else if (!strncmp("xglGetFormatInfo", (const char *) pName, sizeof ("xglGetFormatInfo"))) + else if (!strncmp("xglGetFormatInfo", pName, sizeof ("xglGetFormatInfo"))) return disp_table->GetFormatInfo; - else if (!strncmp("xglCreateImage", (const char *) pName, sizeof ("xglCreateImage"))) + else if (!strncmp("xglCreateImage", pName, sizeof ("xglCreateImage"))) return disp_table->CreateImage; - else if (!strncmp("xglGetImageSubresourceInfo", (const char *) pName, sizeof ("xglGetImageSubresourceInfo"))) + else if (!strncmp("xglGetImageSubresourceInfo", pName, sizeof ("xglGetImageSubresourceInfo"))) return disp_table->GetImageSubresourceInfo; - else if (!strncmp("xglCreateImageView", (const char *) pName, sizeof ("xglCreateImageView"))) + else if (!strncmp("xglCreateImageView", pName, sizeof ("xglCreateImageView"))) return disp_table->CreateImageView; - else if (!strncmp("xglCreateColorAttachmentView", (const char *) pName, sizeof ("xglCreateColorAttachmentView"))) + else if (!strncmp("xglCreateColorAttachmentView", pName, sizeof ("xglCreateColorAttachmentView"))) return disp_table->CreateColorAttachmentView; - else if (!strncmp("xglCreateDepthStencilView", (const char *) pName, sizeof ("xglCreateDepthStencilView"))) + else if (!strncmp("xglCreateDepthStencilView", pName, sizeof ("xglCreateDepthStencilView"))) return disp_table->CreateDepthStencilView; - else if (!strncmp("xglCreateShader", (const char *) pName, sizeof ("xglCreateShader"))) + else if (!strncmp("xglCreateShader", pName, sizeof ("xglCreateShader"))) return disp_table->CreateShader; - else if (!strncmp("xglCreateGraphicsPipeline", (const char *) pName, sizeof ("xglCreateGraphicsPipeline"))) + else if (!strncmp("xglCreateGraphicsPipeline", pName, sizeof ("xglCreateGraphicsPipeline"))) return disp_table->CreateGraphicsPipeline; - else if (!strncmp("xglCreateComputePipeline", (const char *) pName, sizeof ("xglCreateComputePipeline"))) + else if (!strncmp("xglCreateComputePipeline", pName, sizeof ("xglCreateComputePipeline"))) return disp_table->CreateComputePipeline; - else if (!strncmp("xglStorePipeline", (const char *) pName, sizeof ("xglStorePipeline"))) + else if (!strncmp("xglStorePipeline", pName, sizeof ("xglStorePipeline"))) return disp_table->StorePipeline; - else if (!strncmp("xglLoadPipeline", (const char *) pName, sizeof ("xglLoadPipeline"))) + else if (!strncmp("xglLoadPipeline", pName, sizeof ("xglLoadPipeline"))) return disp_table->LoadPipeline; - else if (!strncmp("xglCreatePipelineDelta", (const char *) pName, sizeof ("xglCreatePipelineDelta"))) + else if (!strncmp("xglCreatePipelineDelta", pName, sizeof ("xglCreatePipelineDelta"))) return disp_table->CreatePipelineDelta; - else if (!strncmp("xglCreateSampler", (const char *) pName, sizeof ("xglCreateSampler"))) + else if (!strncmp("xglCreateSampler", pName, sizeof ("xglCreateSampler"))) return disp_table->CreateSampler; - else if (!strncmp("xglCreateDescriptorSet", (const char *) pName, sizeof ("xglCreateDescriptorSet"))) + else if (!strncmp("xglCreateDescriptorSet", pName, sizeof ("xglCreateDescriptorSet"))) return disp_table->CreateDescriptorSet; - else if (!strncmp("xglBeginDescriptorSetUpdate", (const char *) pName, sizeof ("xglBeginDescriptorSetUpdate"))) + else if (!strncmp("xglBeginDescriptorSetUpdate", pName, sizeof ("xglBeginDescriptorSetUpdate"))) return disp_table->BeginDescriptorSetUpdate; - else if (!strncmp("xglEndDescriptorSetUpdate", (const char *) pName, sizeof ("xglEndDescriptorSetUpdate"))) + else if (!strncmp("xglEndDescriptorSetUpdate", pName, sizeof ("xglEndDescriptorSetUpdate"))) return disp_table->EndDescriptorSetUpdate; - else if (!strncmp("xglAttachSamplerDescriptors", (const char *) pName, sizeof ("xglAttachSamplerDescriptors"))) + else if (!strncmp("xglAttachSamplerDescriptors", pName, sizeof ("xglAttachSamplerDescriptors"))) return disp_table->AttachSamplerDescriptors; - else if (!strncmp("xglAttachImageViewDescriptors", (const char *) pName, sizeof ("xglAttachImageViewDescriptors"))) + else if (!strncmp("xglAttachImageViewDescriptors", pName, sizeof ("xglAttachImageViewDescriptors"))) return disp_table->AttachImageViewDescriptors; - else if (!strncmp("xglAttachMemoryViewDescriptors", (const char *) pName, sizeof ("xglAttachMemoryViewDescriptors"))) + else if (!strncmp("xglAttachMemoryViewDescriptors", pName, sizeof ("xglAttachMemoryViewDescriptors"))) return disp_table->AttachMemoryViewDescriptors; - else if (!strncmp("xglAttachNestedDescriptors", (const char *) pName, sizeof ("xglAttachNestedDescriptors"))) + else if (!strncmp("xglAttachNestedDescriptors", pName, sizeof ("xglAttachNestedDescriptors"))) return disp_table->AttachNestedDescriptors; - else if (!strncmp("xglClearDescriptorSetSlots", (const char *) pName, sizeof ("xglClearDescriptorSetSlots"))) + else if (!strncmp("xglClearDescriptorSetSlots", pName, sizeof ("xglClearDescriptorSetSlots"))) return disp_table->ClearDescriptorSetSlots; - else if (!strncmp("xglCreateViewportState", (const char *) pName, sizeof ("xglCreateViewportState"))) + else if (!strncmp("xglCreateViewportState", pName, sizeof ("xglCreateViewportState"))) return disp_table->CreateViewportState; - else if (!strncmp("xglCreateRasterState", (const char *) pName, sizeof ("xglCreateRasterState"))) + else if (!strncmp("xglCreateRasterState", pName, sizeof ("xglCreateRasterState"))) return disp_table->CreateRasterState; - else if (!strncmp("xglCreateMsaaState", (const char *) pName, sizeof ("xglCreateMsaaState"))) + else if (!strncmp("xglCreateMsaaState", pName, sizeof ("xglCreateMsaaState"))) return disp_table->CreateMsaaState; - else if (!strncmp("xglCreateColorBlendState", (const char *) pName, sizeof ("xglCreateColorBlendState"))) + else if (!strncmp("xglCreateColorBlendState", pName, sizeof ("xglCreateColorBlendState"))) return disp_table->CreateColorBlendState; - else if (!strncmp("xglCreateDepthStencilState", (const char *) pName, sizeof ("xglCreateDepthStencilState"))) + else if (!strncmp("xglCreateDepthStencilState", pName, sizeof ("xglCreateDepthStencilState"))) return disp_table->CreateDepthStencilState; - else if (!strncmp("xglCreateCommandBuffer", (const char *) pName, sizeof ("xglCreateCommandBuffer"))) + else if (!strncmp("xglCreateCommandBuffer", pName, sizeof ("xglCreateCommandBuffer"))) return disp_table->CreateCommandBuffer; - else if (!strncmp("xglBeginCommandBuffer", (const char *) pName, sizeof ("xglBeginCommandBuffer"))) + else if (!strncmp("xglBeginCommandBuffer", pName, sizeof ("xglBeginCommandBuffer"))) return disp_table->BeginCommandBuffer; - else if (!strncmp("xglEndCommandBuffer", (const char *) pName, sizeof ("xglEndCommandBuffer"))) + else if (!strncmp("xglEndCommandBuffer", pName, sizeof ("xglEndCommandBuffer"))) return disp_table->EndCommandBuffer; - else if (!strncmp("xglResetCommandBuffer", (const char *) pName, sizeof ("xglResetCommandBuffer"))) + else if (!strncmp("xglResetCommandBuffer", pName, sizeof ("xglResetCommandBuffer"))) return disp_table->ResetCommandBuffer; - else if (!strncmp("xglCmdBindPipeline", (const char *) pName, sizeof ("xglCmdBindPipeline"))) + else if (!strncmp("xglCmdBindPipeline", pName, sizeof ("xglCmdBindPipeline"))) return disp_table->CmdBindPipeline; - else if (!strncmp("xglCmdBindPipelineDelta", (const char *) pName, sizeof ("xglCmdBindPipelineDelta"))) + else if (!strncmp("xglCmdBindPipelineDelta", pName, sizeof ("xglCmdBindPipelineDelta"))) return disp_table->CmdBindPipelineDelta; - else if (!strncmp("xglCmdBindStateObject", (const char *) pName, sizeof ("xglCmdBindStateObject"))) + else if (!strncmp("xglCmdBindStateObject", pName, sizeof ("xglCmdBindStateObject"))) return disp_table->CmdBindStateObject; - else if (!strncmp("xglCmdBindDescriptorSet", (const char *) pName, sizeof ("xglCmdBindDescriptorSet"))) + else if (!strncmp("xglCmdBindDescriptorSet", pName, sizeof ("xglCmdBindDescriptorSet"))) return disp_table->CmdBindDescriptorSet; - else if (!strncmp("xglCmdBindDynamicMemoryView", (const char *) pName, sizeof ("xglCmdBindDynamicMemoryView"))) + else if (!strncmp("xglCmdBindDynamicMemoryView", pName, sizeof ("xglCmdBindDynamicMemoryView"))) return disp_table->CmdBindDynamicMemoryView; - else if (!strncmp("xglCmdBindVertexData", (const char *) pName, sizeof ("xglCmdBindVertexData"))) + else if (!strncmp("xglCmdBindVertexData", pName, sizeof ("xglCmdBindVertexData"))) return disp_table->CmdBindVertexData; - else if (!strncmp("xglCmdBindIndexData", (const char *) pName, sizeof ("xglCmdBindIndexData"))) + else if (!strncmp("xglCmdBindIndexData", pName, sizeof ("xglCmdBindIndexData"))) return disp_table->CmdBindIndexData; - else if (!strncmp("xglCmdBindAttachments", (const char *) pName, sizeof ("xglCmdBindAttachments"))) + else if (!strncmp("xglCmdBindAttachments", pName, sizeof ("xglCmdBindAttachments"))) return disp_table->CmdBindAttachments; - else if (!strncmp("xglCmdPrepareMemoryRegions", (const char *) pName, sizeof ("xglCmdPrepareMemoryRegions"))) + else if (!strncmp("xglCmdPrepareMemoryRegions", pName, sizeof ("xglCmdPrepareMemoryRegions"))) return disp_table->CmdPrepareMemoryRegions; - else if (!strncmp("xglCmdPrepareImages", (const char *) pName, sizeof ("xglCmdPrepareImages"))) + else if (!strncmp("xglCmdPrepareImages", pName, sizeof ("xglCmdPrepareImages"))) return disp_table->CmdPrepareImages; - else if (!strncmp("xglCmdDraw", (const char *) pName, sizeof ("xglCmdDraw"))) + else if (!strncmp("xglCmdDraw", pName, sizeof ("xglCmdDraw"))) return disp_table->CmdDraw; - else if (!strncmp("xglCmdDrawIndexed", (const char *) pName, sizeof ("xglCmdDrawIndexed"))) + else if (!strncmp("xglCmdDrawIndexed", pName, sizeof ("xglCmdDrawIndexed"))) return disp_table->CmdDrawIndexed; - else if (!strncmp("xglCmdDrawIndirect", (const char *) pName, sizeof ("xglCmdDrawIndirect"))) + else if (!strncmp("xglCmdDrawIndirect", pName, sizeof ("xglCmdDrawIndirect"))) return disp_table->CmdDrawIndirect; - else if (!strncmp("xglCmdDrawIndexedIndirect", (const char *) pName, sizeof ("xglCmdDrawIndexedIndirect"))) + else if (!strncmp("xglCmdDrawIndexedIndirect", pName, sizeof ("xglCmdDrawIndexedIndirect"))) return disp_table->CmdDrawIndexedIndirect; - else if (!strncmp("xglCmdDispatch", (const char *) pName, sizeof ("xglCmdDispatch"))) + else if (!strncmp("xglCmdDispatch", pName, sizeof ("xglCmdDispatch"))) return disp_table->CmdDispatch; - else if (!strncmp("xglCmdDispatchIndirect", (const char *) pName, sizeof ("xglCmdDispatchIndirect"))) + else if (!strncmp("xglCmdDispatchIndirect", pName, sizeof ("xglCmdDispatchIndirect"))) return disp_table->CmdDispatchIndirect; - else if (!strncmp("xglCmdCopyMemory", (const char *) pName, sizeof ("xglCmdCopyMemory"))) + else if (!strncmp("xglCmdCopyMemory", pName, sizeof ("xglCmdCopyMemory"))) return disp_table->CmdCopyMemory; - else if (!strncmp("xglCmdCopyImage", (const char *) pName, sizeof ("xglCmdCopyImage"))) + else if (!strncmp("xglCmdCopyImage", pName, sizeof ("xglCmdCopyImage"))) return disp_table->CmdCopyImage; - else if (!strncmp("xglCmdCopyMemoryToImage", (const char *) pName, sizeof ("xglCmdCopyMemoryToImage"))) + else if (!strncmp("xglCmdCopyMemoryToImage", pName, sizeof ("xglCmdCopyMemoryToImage"))) return disp_table->CmdCopyMemoryToImage; - else if (!strncmp("xglCmdCopyImageToMemory", (const char *) pName, sizeof ("xglCmdCopyImageToMemory"))) + else if (!strncmp("xglCmdCopyImageToMemory", pName, sizeof ("xglCmdCopyImageToMemory"))) return disp_table->CmdCopyImageToMemory; - else if (!strncmp("xglCmdCloneImageData", (const char *) pName, sizeof ("xglCmdCloneImageData"))) + else if (!strncmp("xglCmdCloneImageData", pName, sizeof ("xglCmdCloneImageData"))) return disp_table->CmdCloneImageData; - else if (!strncmp("xglCmdUpdateMemory", (const char *) pName, sizeof ("xglCmdUpdateMemory"))) + else if (!strncmp("xglCmdUpdateMemory", pName, sizeof ("xglCmdUpdateMemory"))) return disp_table->CmdUpdateMemory; - else if (!strncmp("xglCmdFillMemory", (const char *) pName, sizeof ("xglCmdFillMemory"))) + else if (!strncmp("xglCmdFillMemory", pName, sizeof ("xglCmdFillMemory"))) return disp_table->CmdFillMemory; - else if (!strncmp("xglCmdClearColorImage", (const char *) pName, sizeof ("xglCmdClearColorImage"))) + else if (!strncmp("xglCmdClearColorImage", pName, sizeof ("xglCmdClearColorImage"))) return disp_table->CmdClearColorImage; - else if (!strncmp("xglCmdClearColorImageRaw", (const char *) pName, sizeof ("xglCmdClearColorImageRaw"))) + else if (!strncmp("xglCmdClearColorImageRaw", pName, sizeof ("xglCmdClearColorImageRaw"))) return disp_table->CmdClearColorImageRaw; - else if (!strncmp("xglCmdClearDepthStencil", (const char *) pName, sizeof ("xglCmdClearDepthStencil"))) + else if (!strncmp("xglCmdClearDepthStencil", pName, sizeof ("xglCmdClearDepthStencil"))) return disp_table->CmdClearDepthStencil; - else if (!strncmp("xglCmdResolveImage", (const char *) pName, sizeof ("xglCmdResolveImage"))) + else if (!strncmp("xglCmdResolveImage", pName, sizeof ("xglCmdResolveImage"))) return disp_table->CmdResolveImage; - else if (!strncmp("xglCmdSetEvent", (const char *) pName, sizeof ("xglCmdSetEvent"))) + else if (!strncmp("xglCmdSetEvent", pName, sizeof ("xglCmdSetEvent"))) return disp_table->CmdSetEvent; - else if (!strncmp("xglCmdResetEvent", (const char *) pName, sizeof ("xglCmdResetEvent"))) + else if (!strncmp("xglCmdResetEvent", pName, sizeof ("xglCmdResetEvent"))) return disp_table->CmdResetEvent; - else if (!strncmp("xglCmdMemoryAtomic", (const char *) pName, sizeof ("xglCmdMemoryAtomic"))) + else if (!strncmp("xglCmdMemoryAtomic", pName, sizeof ("xglCmdMemoryAtomic"))) return disp_table->CmdMemoryAtomic; - else if (!strncmp("xglCmdBeginQuery", (const char *) pName, sizeof ("xglCmdBeginQuery"))) + else if (!strncmp("xglCmdBeginQuery", pName, sizeof ("xglCmdBeginQuery"))) return disp_table->CmdBeginQuery; - else if (!strncmp("xglCmdEndQuery", (const char *) pName, sizeof ("xglCmdEndQuery"))) + else if (!strncmp("xglCmdEndQuery", pName, sizeof ("xglCmdEndQuery"))) return disp_table->CmdEndQuery; - else if (!strncmp("xglCmdResetQueryPool", (const char *) pName, sizeof ("xglCmdResetQueryPool"))) + else if (!strncmp("xglCmdResetQueryPool", pName, sizeof ("xglCmdResetQueryPool"))) return disp_table->CmdResetQueryPool; - else if (!strncmp("xglCmdWriteTimestamp", (const char *) pName, sizeof ("xglCmdWriteTimestamp"))) + else if (!strncmp("xglCmdWriteTimestamp", pName, sizeof ("xglCmdWriteTimestamp"))) return disp_table->CmdWriteTimestamp; - else if (!strncmp("xglCmdInitAtomicCounters", (const char *) pName, sizeof ("xglCmdInitAtomicCounters"))) + else if (!strncmp("xglCmdInitAtomicCounters", pName, sizeof ("xglCmdInitAtomicCounters"))) return disp_table->CmdInitAtomicCounters; - else if (!strncmp("xglCmdLoadAtomicCounters", (const char *) pName, sizeof ("xglCmdLoadAtomicCounters"))) + else if (!strncmp("xglCmdLoadAtomicCounters", pName, sizeof ("xglCmdLoadAtomicCounters"))) return disp_table->CmdLoadAtomicCounters; - else if (!strncmp("xglCmdSaveAtomicCounters", (const char *) pName, sizeof ("xglCmdSaveAtomicCounters"))) + else if (!strncmp("xglCmdSaveAtomicCounters", pName, sizeof ("xglCmdSaveAtomicCounters"))) return disp_table->CmdSaveAtomicCounters; - else if (!strncmp("xglDbgSetValidationLevel", (const char *) pName, sizeof ("xglDbgSetValidationLevel"))) + else if (!strncmp("xglDbgSetValidationLevel", pName, sizeof ("xglDbgSetValidationLevel"))) return disp_table->DbgSetValidationLevel; - else if (!strncmp("xglDbgRegisterMsgCallback", (const char *) pName, sizeof ("xglDbgRegisterMsgCallback"))) + else if (!strncmp("xglDbgRegisterMsgCallback", pName, sizeof ("xglDbgRegisterMsgCallback"))) return disp_table->DbgRegisterMsgCallback; - else if (!strncmp("xglDbgUnregisterMsgCallback", (const char *) pName, sizeof ("xglDbgUnregisterMsgCallback"))) + else if (!strncmp("xglDbgUnregisterMsgCallback", pName, sizeof ("xglDbgUnregisterMsgCallback"))) return disp_table->DbgUnregisterMsgCallback; - else if (!strncmp("xglDbgSetMessageFilter", (const char *) pName, sizeof ("xglDbgSetMessageFilter"))) + else if (!strncmp("xglDbgSetMessageFilter", pName, sizeof ("xglDbgSetMessageFilter"))) return disp_table->DbgSetMessageFilter; - else if (!strncmp("xglDbgSetObjectTag", (const char *) pName, sizeof ("xglDbgSetObjectTag"))) + else if (!strncmp("xglDbgSetObjectTag", pName, sizeof ("xglDbgSetObjectTag"))) return disp_table->DbgSetObjectTag; - else if (!strncmp("xglDbgSetGlobalOption", (const char *) pName, sizeof ("xglDbgSetGlobalOption"))) + else if (!strncmp("xglDbgSetGlobalOption", pName, sizeof ("xglDbgSetGlobalOption"))) return disp_table->DbgSetGlobalOption; - else if (!strncmp("xglDbgSetDeviceOption", (const char *) pName, sizeof ("xglDbgSetDeviceOption"))) + else if (!strncmp("xglDbgSetDeviceOption", pName, sizeof ("xglDbgSetDeviceOption"))) return disp_table->DbgSetDeviceOption; - else if (!strncmp("xglCmdDbgMarkerBegin", (const char *) pName, sizeof ("xglCmdDbgMarkerBegin"))) + else if (!strncmp("xglCmdDbgMarkerBegin", pName, sizeof ("xglCmdDbgMarkerBegin"))) return disp_table->CmdDbgMarkerBegin; - else if (!strncmp("xglCmdDbgMarkerEnd", (const char *) pName, sizeof ("xglCmdDbgMarkerEnd"))) + else if (!strncmp("xglCmdDbgMarkerEnd", pName, sizeof ("xglCmdDbgMarkerEnd"))) return disp_table->CmdDbgMarkerEnd; - else if (!strncmp("xglWsiX11AssociateConnection", (const char *) pName, sizeof("xglWsiX11AssociateConnection"))) + else if (!strncmp("xglWsiX11AssociateConnection", pName, sizeof("xglWsiX11AssociateConnection"))) return disp_table->WsiX11AssociateConnection; - else if (!strncmp("xglWsiX11GetMSC", (const char *) pName, sizeof("xglWsiX11GetMSC"))) + else if (!strncmp("xglWsiX11GetMSC", pName, sizeof("xglWsiX11GetMSC"))) return disp_table->WsiX11GetMSC; - else if (!strncmp("xglWsiX11CreatePresentableImage", (const char *) pName, sizeof("xglWsiX11CreatePresentableImage"))) + else if (!strncmp("xglWsiX11CreatePresentableImage", pName, sizeof("xglWsiX11CreatePresentableImage"))) return disp_table->WsiX11CreatePresentableImage; - else if (!strncmp("xglWsiX11QueuePresent", (const char *) pName, sizeof("xglWsiX11QueuePresent"))) + else if (!strncmp("xglWsiX11QueuePresent", pName, sizeof("xglWsiX11QueuePresent"))) return disp_table->WsiX11QueuePresent; else { if (disp_table->GetProcAddr == NULL) diff --git a/xgl-generate.py b/xgl-generate.py index 9a06778a..ae59ed16 100755 --- a/xgl-generate.py +++ b/xgl-generate.py @@ -185,16 +185,16 @@ class Subcommand(object): " return NULL;\n" " pCurObj = gpuw;\n" " pthread_once(&tabOnce, initLayerTable);\n\n" - ' if (!strncmp("xglGetProcAddr", (const char *) funcName, sizeof("xglGetProcAddr")))\n' + ' if (!strncmp("xglGetProcAddr", funcName, sizeof("xglGetProcAddr")))\n' ' return xglGetProcAddr;') for name in xgl.icd_dispatch_table: if name == "GetProcAddr": continue if name == "InitAndEnumerateGpus": - func_body.append(' else if (!strncmp("%s%s", (const char *) funcName, sizeof("%s%s")))\n' + func_body.append(' else if (!strncmp("%s%s", funcName, sizeof("%s%s")))\n' ' return nextTable.%s;' % (prefix, name, prefix, name, name)) else: - func_body.append(' else if (!strncmp("%s%s", (const char *) funcName, sizeof("%s%s")))\n' + func_body.append(' else if (!strncmp("%s%s", funcName, sizeof("%s%s")))\n' ' return %s%s;' % (prefix, name, prefix, name, prefix, name)) func_body.append(" else {\n" diff --git a/xgl-layer-generate.py b/xgl-layer-generate.py index 7fe0e131..bc397984 100755 --- a/xgl-layer-generate.py +++ b/xgl-layer-generate.py @@ -547,20 +547,20 @@ class Subcommand(object): " return NULL;\n" " pCurObj = gpuw;\n" " pthread_once(&tabOnce, initLayerTable);\n\n" - ' if (!strncmp("xglGetProcAddr", (const char *) funcName, sizeof("xglGetProcAddr")))\n' + ' if (!strncmp("xglGetProcAddr", funcName, sizeof("xglGetProcAddr")))\n' ' return xglGetProcAddr;') if 0 != len(extensions): for ext_name in extensions: - func_body.append(' else if (!strncmp("%s", (const char *) funcName, sizeof("%s")))\n' + func_body.append(' else if (!strncmp("%s", funcName, sizeof("%s")))\n' ' return %s;' % (ext_name, ext_name, ext_name)) for name in xgl.icd_dispatch_table: if name == "GetProcAddr": continue if name == "InitAndEnumerateGpus": - func_body.append(' else if (!strncmp("%s%s", (const char *) funcName, sizeof("%s%s")))\n' + func_body.append(' else if (!strncmp("%s%s", funcName, sizeof("%s%s")))\n' ' return nextTable.%s;' % (prefix, name, prefix, name, name)) else: - func_body.append(' else if (!strncmp("%s%s", (const char *) funcName, sizeof("%s%s")))\n' + func_body.append(' else if (!strncmp("%s%s", funcName, sizeof("%s%s")))\n' ' return %s%s;' % (prefix, name, prefix, name, prefix, name)) func_body.append(" else {\n" @@ -724,7 +724,7 @@ class ObjectTrackerSubcommand(Subcommand): header_txt.append(' XGL_LAYER_DBG_FUNCTION_NODE *pTrav = pDbgFunctionHead;') header_txt.append(' if (pTrav) {') header_txt.append(' while (pTrav) {') - header_txt.append(' pTrav->pfnMsgCallback(msgType, validationLevel, srcObject, location, msgCode, (const XGL_CHAR *) pMsg, pTrav->pUserData);') + header_txt.append(' pTrav->pfnMsgCallback(msgType, validationLevel, srcObject, location, msgCode, pMsg, pTrav->pUserData);') header_txt.append(' pTrav = pTrav->pNext;') header_txt.append(' }') header_txt.append(' }') -- cgit v1.2.3