From: Tobin Ehlis Date: Fri, 20 Feb 2015 19:05:30 +0000 (-0700) Subject: layers: Don't run ObjectTracker checks on NULL mem objects X-Git-Tag: sdk-0.1.0~501 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2467fc0e86bfae37622a3f23970ce17ffd34449;p=platform%2Fupstream%2FVulkan-LoaderAndValidationLayers.git layers: Don't run ObjectTracker checks on NULL mem objects --- diff --git a/xgl-layer-generate.py b/xgl-layer-generate.py index 6e0d885..c1b1091 100755 --- a/xgl-layer-generate.py +++ b/xgl-layer-generate.py @@ -1393,7 +1393,8 @@ class ObjectTrackerSubcommand(Subcommand): header_txt.append('static void validate_memory_mapping_status(const XGL_MEMORY_REF* pMemRefs, uint32_t numRefs) {') header_txt.append(' uint32_t i;') header_txt.append(' for (i = 0; i < numRefs; i++) {') - header_txt.append(' validate_status((void *)pMemRefs[i].mem, XGL_OBJECT_TYPE_GPU_MEMORY, OBJSTATUS_GPU_MEM_MAPPED, OBJSTATUS_NONE, XGL_DBG_MSG_ERROR, OBJTRACK_GPU_MEM_MAPPED, "A Mapped Memory Object was referenced in a command buffer");') + header_txt.append(' if(pMemRefs[i].mem)') + header_txt.append(' validate_status((void *)pMemRefs[i].mem, XGL_OBJECT_TYPE_GPU_MEMORY, OBJSTATUS_GPU_MEM_MAPPED, OBJSTATUS_NONE, XGL_DBG_MSG_ERROR, OBJTRACK_GPU_MEM_MAPPED, "A Mapped Memory Object was referenced in a command buffer");') header_txt.append(' }') header_txt.append('}') header_txt.append('')