Skip to content

Commit

Permalink
gpuav: Fix VUID 02721 features check
Browse files Browse the repository at this point in the history
  • Loading branch information
ziga-lunarg authored and spencer-lunarg committed Dec 28, 2024
1 parent f5453e1 commit 8018a6f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions layers/gpu/cmd_validation/gpuav_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -912,16 +912,18 @@ void DrawIndexed(Validator &gpuav, CommandBuffer &cb_state, const Location &loc,
return;
}

if (gpuav.enabled_features.robustBufferAccess2) {
const LvlBindPoint lv_bind_point = ConvertToLvlBindPoint(VK_PIPELINE_BIND_POINT_GRAPHICS);
const LastBound &last_bound = cb_state.lastBound[lv_bind_point];
const vvl::Pipeline *pipeline_state = last_bound.pipeline_state;
if (pipeline_state) {
const auto robustness_ci =
vku::FindStructInPNextChain<VkPipelineRobustnessCreateInfo>(pipeline_state->GraphicsCreateInfo().pNext);
if (robustness_ci && robustness_ci->vertexInputs) {
return;
}
if (gpuav.enabled_features.robustBufferAccess) {
return;
}

const LvlBindPoint lv_bind_point = ConvertToLvlBindPoint(VK_PIPELINE_BIND_POINT_GRAPHICS);
const LastBound &last_bound = cb_state.lastBound[lv_bind_point];
const vvl::Pipeline *pipeline_state = last_bound.pipeline_state;
if (pipeline_state) {
const auto robustness_ci =
vku::FindStructInPNextChain<VkPipelineRobustnessCreateInfo>(pipeline_state->GraphicsCreateInfo().pNext);
if (robustness_ci && robustness_ci->vertexInputs) {
return;
}
}

Expand Down

0 comments on commit 8018a6f

Please sign in to comment.