From 534d47e5ca11468577db743fcb4ba7211e90c246 Mon Sep 17 00:00:00 2001 From: spencer-lunarg Date: Fri, 27 Sep 2024 14:26:51 -0400 Subject: [PATCH] gpuav: Use PostCallRecordCmdDispatchBase alias --- layers/gpu/core/gpuav_record.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/layers/gpu/core/gpuav_record.cpp b/layers/gpu/core/gpuav_record.cpp index 74f6160dfe5..bb20ef85bbe 100644 --- a/layers/gpu/core/gpuav_record.cpp +++ b/layers/gpu/core/gpuav_record.cpp @@ -833,15 +833,8 @@ void Validator::PreCallRecordCmdDispatchBaseKHR(VkCommandBuffer commandBuffer, u void Validator::PostCallRecordCmdDispatchBaseKHR(VkCommandBuffer commandBuffer, uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ, const RecordObject &record_obj) { - BaseClass::PostCallRecordCmdDispatchBaseKHR(commandBuffer, baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, - groupCountZ, record_obj); - - auto cb_state = GetWrite(commandBuffer); - if (!cb_state) { - InternalError(commandBuffer, record_obj.location, "Unrecognized command buffer."); - return; - } - PostCallSetupShaderInstrumentationResources(*this, *cb_state, VK_PIPELINE_BIND_POINT_COMPUTE, record_obj.location); + PostCallRecordCmdDispatchBase(commandBuffer, baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ, + record_obj); } void Validator::PreCallRecordCmdTraceRaysNV(VkCommandBuffer commandBuffer, VkBuffer raygenShaderBindingTableBuffer,