From: Jon Ashburn Date: Mon, 9 Feb 2015 16:43:26 +0000 (-0700) Subject: glave: Qualify adding to trace packet descriptor set layout structs X-Git-Tag: sdk-0.1.0~666 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=280bb68167900739dbaaa603e33c0b116ebaa970;p=platform%2Fupstream%2FVulkan-LoaderAndValidationLayers.git glave: Qualify adding to trace packet descriptor set layout structs --- diff --git a/glave-generate.py b/glave-generate.py index f049abe..8d8a680 100755 --- a/glave-generate.py +++ b/glave-generate.py @@ -596,7 +596,8 @@ class Subcommand(object): elif 'UpdateDescriptors' == proto.name: func_body.append(' add_update_descriptors_to_trace_packet(pHeader, (void**)&(pPacket->pUpdateChain), pUpdateChain);') elif 'CreateDescriptorSetLayout' == proto.name: - func_body.append(' add_create_ds_layout_to_trace_packet(pHeader, (void**)&(pPacket->pSetLayoutInfoList->pNext), pSetLayoutInfoList->pNext);') + func_body.append(' if (pSetLayoutInfoList)') + func_body.append(' add_create_ds_layout_to_trace_packet(pHeader, (void**)&(pPacket->pSetLayoutInfoList->pNext), pSetLayoutInfoList->pNext);') elif 'CreateDescriptorRegion' == proto.name: func_body.append(' glv_add_buffer_to_trace_packet(pHeader, (void**)&(pPacket->pCreateInfo->pTypeCount), rgCount * sizeof(XGL_DESCRIPTOR_TYPE_COUNT), pCreateInfo->pTypeCount);') func_body.append(' glv_finalize_buffer_address(pHeader, (void**)&(pPacket->pCreateInfo->pTypeCount));')