From 8b96d9bee1fa7573bf74a3d9d5fec336bb82b893 Mon Sep 17 00:00:00 2001 From: Per Mathisen Date: Wed, 6 Nov 2024 14:53:00 +0100 Subject: [PATCH] Fix more warnings --- TODO.md | 2 ++ scripts/struct.py | 1 + scripts/util.py | 1 + src/hardcode_read.cpp | 3 +++ src/hardcode_write.cpp | 3 +++ 5 files changed, 10 insertions(+) diff --git a/TODO.md b/TODO.md index 794eb9b..cde5dbf 100644 --- a/TODO.md +++ b/TODO.md @@ -25,6 +25,8 @@ Missing Vulkan call implementations: Missing and desirable extension support: * VK_EXT_mutable_descriptor_type +* VK_EXT_device_generated_commands +* VK_KHR_pipeline_binary Replayer: * Preloading diff --git a/scripts/struct.py b/scripts/struct.py index ed43b33..99a965b 100755 --- a/scripts/struct.py +++ b/scripts/struct.py @@ -17,6 +17,7 @@ 'VkMemoryMapPlacedInfoEXT', 'VkBindMemoryStatusKHR', 'VkRenderingInputAttachmentIndexInfoKHR', + 'VkIndirectCommandsLayoutCreateInfoEXT', 'VkIndirectExecutionSetCreateInfoEXT', 'VkIndirectCommandsLayoutTokenEXT', # TBD ] hardcoded_read = [ 'VkAccelerationStructureBuildGeometryInfoKHR' ] diff --git a/scripts/util.py b/scripts/util.py index 33479d5..3a09089 100755 --- a/scripts/util.py +++ b/scripts/util.py @@ -93,6 +93,7 @@ 'vkGetDeviceFaultInfoEXT', # we never want to trace this, but rather inject it during tracing if device loss happens, print the info, then abort 'vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT', 'vkCmdPushDescriptorSetWithTemplate2KHR', 'vkCmdSetRenderingInputAttachmentIndicesKHR', 'vkGetEncodedVideoSessionParametersKHR', + 'vkCreatePipelineBinariesKHR', 'vkCreateIndirectCommandsLayoutEXT', 'vkCreateIndirectExecutionSetEXT', 'vkGetPipelineBinaryDataKHR', # TBD ] struct_noop = [] diff --git a/src/hardcode_read.cpp b/src/hardcode_read.cpp index c8ec055..7585817 100644 --- a/src/hardcode_read.cpp +++ b/src/hardcode_read.cpp @@ -162,6 +162,9 @@ static uint64_t object_lookup(VkObjectType type, uint32_t index) case VK_OBJECT_TYPE_ACCELERATION_STRUCTURE_NV: case VK_OBJECT_TYPE_CU_FUNCTION_NVX: case VK_OBJECT_TYPE_CU_MODULE_NVX: + case VK_OBJECT_TYPE_PIPELINE_BINARY_KHR: + case VK_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_EXT: + case VK_OBJECT_TYPE_INDIRECT_EXECUTION_SET_EXT: case VK_OBJECT_TYPE_UNKNOWN: case VK_OBJECT_TYPE_MAX_ENUM: assert(false); return 0; } diff --git a/src/hardcode_write.cpp b/src/hardcode_write.cpp index 311f00c..de6dbbe 100644 --- a/src/hardcode_write.cpp +++ b/src/hardcode_write.cpp @@ -134,6 +134,9 @@ static trackable* object_trackable(const trace_records& r, VkObjectType type, ui case VK_OBJECT_TYPE_BUFFER_COLLECTION_FUCHSIA: case VK_OBJECT_TYPE_OPTICAL_FLOW_SESSION_NV: case VK_OBJECT_TYPE_UNKNOWN: + case VK_OBJECT_TYPE_PIPELINE_BINARY_KHR: + case VK_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_EXT: + case VK_OBJECT_TYPE_INDIRECT_EXECUTION_SET_EXT: case VK_OBJECT_TYPE_MAX_ENUM: assert(false); return nullptr; } return nullptr;