Skip to content
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

gpuav: Fix / 0 in draw mesh indirect validation #9019

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

arno-lunarg
Copy link
Contributor

Closes #9014

@arno-lunarg arno-lunarg requested a review from a team as a code owner December 13, 2024 12:14
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 323679.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18322 running.

max_held_draw_cmds =
static_cast<uint32_t>((draw_buffer_full_size - draw_buffer_offset) / draw_cmds_byte_stride);
} else {
max_held_draw_cmds = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: quote section from the spec: "If drawCount is less than or equal to one, stride is ignored." ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes good point!

@arno-lunarg arno-lunarg force-pushed the arno-gpuav-valcmd-fix branch from 7806eba to eae9fd1 Compare December 13, 2024 13:44
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 323712.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18323 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 18323 passed.

@@ -176,3 +176,67 @@ TEST_F(PositiveGpuAVIndirectBuffer, Mesh) {
m_default_queue->Submit(m_command_buffer);
m_default_queue->Wait();
}

TEST_F(PositiveGpuAVIndirectBuffer, MeshSingleCommand) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add a test for vkCmdDrawIndirect and vkCmdDrawIndexedIndirect which also can have this draw, you only added a code change to the DrawMeshIndirect code

@arno-lunarg arno-lunarg merged commit c71f5b9 into KhronosGroup:main Dec 16, 2024
21 checks passed
@arno-lunarg arno-lunarg deleted the arno-gpuav-valcmd-fix branch December 16, 2024 15:02
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.

Divide by zero crash validating single-draw vkCmdDrawMeshTasksIndirectEXT
4 participants