Skip to content

gpuav: Select pipeline to instrument post creation#12291

Open
arno-lunarg wants to merge 1 commit into
KhronosGroup:mainfrom
arno-lunarg:arno-gpuav-select-pipeline
Open

gpuav: Select pipeline to instrument post creation#12291
arno-lunarg wants to merge 1 commit into
KhronosGroup:mainfrom
arno-lunarg:arno-gpuav-select-pipeline

Conversation

@arno-lunarg
Copy link
Copy Markdown
Contributor

No description provided.

@arno-lunarg arno-lunarg requested a review from a team as a code owner May 21, 2026 13:26
@ci-tester-lunarg
Copy link
Copy Markdown
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 744964.

@ci-tester-lunarg
Copy link
Copy Markdown
Collaborator

CI Vulkan-ValidationLayers build # 23400 running.

return;
}

if (disabled[handle_wrapping]) {
Copy link
Copy Markdown
Contributor

@spencer-lunarg spencer-lunarg May 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do this after MatchesAnyShaderSelectionRegex with a InternalError to let the user know they must have handle wrapping turned on


VkPipeline instrumed_pipeline = VK_NULL_HANDLE;
if (pipeline_state->linking_shaders == 0 &&
IsValueIn(pipeline_state->pipeline_type, {VK_PIPELINE_BIND_POINT_GRAPHICS, VK_PIPELINE_BIND_POINT_COMPUTE})) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave comment why we are not able to do in ray tracing at the moment

}

VkPipeline instrumed_pipeline = VK_NULL_HANDLE;
if (pipeline_state->linking_shaders == 0 &&
Copy link
Copy Markdown
Contributor

@spencer-lunarg spencer-lunarg May 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not go

if (pipeline_state->pipeline_type == VK_PIPELINE_BIND_POINT_GRAPHICS) {
    if (pipeline_state->linking_shaders == 0) {
    } else {
    }
} else if (pipeline_state->pipeline_type == VK_PIPELINE_BIND_POINT_COMPUTE) {
} else {
    // comment about RTX
    return;
}

as I think that would be cleaner to follow when we add RTX in the future


const VkResult result =
DispatchCreateGraphicsPipelines(device, VK_NULL_HANDLE, 1, new_pipeline_ci.ptr(), nullptr, &instrumed_pipeline);
if (result != VK_SUCCESS || instrumed_pipeline == VK_NULL_HANDLE) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@ci-tester-lunarg
Copy link
Copy Markdown
Collaborator

CI Vulkan-ValidationLayers build # 23400 failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants