-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix robustBufferAccess2 check for 08798 #9184
Conversation
CI Vulkan-ValidationLayers build queued with queue ID 341092. |
CI Vulkan-ValidationLayers build # 18584 running. |
CI Vulkan-ValidationLayers build # 18584 passed. |
return; | ||
} | ||
|
||
const LvlBindPoint lv_bind_point = ConvertToLvlBindPoint(VK_PIPELINE_BIND_POINT_GRAPHICS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is we don't need to go doing a state object lookup for most people, so this should look like
if (gpuav.enabled_features.robustBufferAccess2) {
return;
}
if (gpuav.enabled_features.pipelineRobustness) {
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;
}
}
}
b07b706
to
5e4969b
Compare
CI Vulkan-ValidationLayers build queued with queue ID 341154. |
CI Vulkan-ValidationLayers build # 18585 running. |
CI Vulkan-ValidationLayers build # 18585 passed. |
No description provided.