Skip to content

Commit

Permalink
layers: Revert ImageBufferCopyMemoryOverlap
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Nov 9, 2023
1 parent daec145 commit 0eec8db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
16 changes: 10 additions & 6 deletions layers/core_checks/cc_copy_blit_resolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2573,9 +2573,11 @@ bool CoreChecks::ValidateCmdCopyImageToBuffer(VkCommandBuffer commandBuffer, VkI
region.imageSubresource.layerCount, subresource_loc, vuid);
}

if (!skip && !dst_buffer_state->sparse && !src_image_state->sparse) {
skip |= ValidateImageBufferCopyMemoryOverlap(*cb_state_ptr, regionCount, pRegions, *src_image_state, *dst_buffer_state, loc, true, is_2);
}
// TODO 6898 - ValidateImageBufferCopyMemoryOverlap logic has issues
// if (!skip && !dst_buffer_state->sparse && !src_image_state->sparse) {
// skip |= ValidateImageBufferCopyMemoryOverlap(*cb_state_ptr, regionCount, pRegions, *src_image_state, *dst_buffer_state,
// loc, true, is_2);
// }
return skip;
}

Expand Down Expand Up @@ -2726,9 +2728,11 @@ bool CoreChecks::ValidateCmdCopyBufferToImage(VkCommandBuffer commandBuffer, VkB
}
}

if (!skip && !src_buffer_state->sparse && !dst_image_state->sparse){
skip |= ValidateImageBufferCopyMemoryOverlap(*cb_state_ptr, regionCount, pRegions, *dst_image_state, *src_buffer_state, loc, false, is_2);
}
// TODO 6898 - ValidateImageBufferCopyMemoryOverlap logic has issues
// if (!skip && !src_buffer_state->sparse && !dst_image_state->sparse){
// skip |= ValidateImageBufferCopyMemoryOverlap(*cb_state_ptr, regionCount, pRegions, *dst_image_state, *src_buffer_state,
// loc, false, is_2);
// }

return skip;
}
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6267,7 +6267,8 @@ TEST_F(NegativeCommand, CopyCommands2V13) {
m_errorMonitor->VerifyFound();
}

TEST_F(NegativeCommand, CopyImageOverlappingMemory) {
// TODO 6898
TEST_F(NegativeCommand, DISABLED_CopyImageOverlappingMemory) {
TEST_DESCRIPTION("Validate Copy Image from/to Buffer with overlapping memory");
SetTargetApiVersion(VK_API_VERSION_1_3);

Expand Down

0 comments on commit 0eec8db

Please sign in to comment.