Skip to content

Commit

Permalink
layers: Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Jun 7, 2024
1 parent 1303dab commit b9dc23b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
21 changes: 10 additions & 11 deletions layers/core_checks/cc_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1216,16 +1216,6 @@ bool CoreChecks::PreCallValidateCmdClearAttachments(VkCommandBuffer commandBuffe
}
}

auto describe_color_count = [is_dynamic_rendering, &cb_state]() {
std::stringstream ss;
if (is_dynamic_rendering) {
ss << "VkRenderingInfo::colorAttachmentCount";
} else {
ss << "pSubpasses[" << cb_state.GetActiveSubpass() << "].colorAttachmentCount";
}
return ss.str();
};

if (aspect_mask & VK_IMAGE_ASPECT_METADATA_BIT) {
const LogObjectList objlist(commandBuffer, cb_state.activeRenderPass->Handle());
skip |= LogError("VUID-VkClearAttachment-aspectMask-00020", objlist, attachment_loc.dot(Field::aspectMask), "is %s.",
Expand All @@ -1240,7 +1230,16 @@ bool CoreChecks::PreCallValidateCmdClearAttachments(VkCommandBuffer commandBuffe
const LogObjectList objlist(commandBuffer, cb_state.activeRenderPass->Handle());
skip |= LogError("VUID-vkCmdClearAttachments-aspectMask-07271", objlist, attachment_loc.dot(Field::colorAttachment),
"is VK_ATTACHMENT_UNUSED, but aspectMask is VK_IMAGE_ASPECT_COLOR_BIT.");
} else if (clear_desc->colorAttachment >= color_attachment_count) {
} else if (clear_desc->colorAttachment >= color_attachment_count && color_attachment_count > 0) {
auto describe_color_count = [is_dynamic_rendering, &cb_state]() {
std::stringstream ss;
if (is_dynamic_rendering) {
ss << "VkRenderingInfo::colorAttachmentCount";
} else {
ss << "pSubpasses[" << cb_state.GetActiveSubpass() << "].colorAttachmentCount";
}
return ss.str();
};
const LogObjectList objlist(commandBuffer, cb_state.activeRenderPass->Handle());
skip |=
LogError("VUID-vkCmdClearAttachments-aspectMask-07271", objlist, attachment_loc.dot(Field::colorAttachment),
Expand Down
4 changes: 1 addition & 3 deletions layers/core_checks/cc_render_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3973,9 +3973,7 @@ bool CoreChecks::InsideRenderPass(const vvl::CommandBuffer &cb_state, const Loca
// routine should ONLY be called inside a render pass.
bool CoreChecks::OutsideRenderPass(const vvl::CommandBuffer &cb_state, const Location &loc, const char *vuid) const {
bool outside = false;
if ((cb_state.IsPrimary() && (!cb_state.activeRenderPass)) ||
(cb_state.IsSeconary() && (!cb_state.activeRenderPass) &&
!(cb_state.beginInfo.flags & VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT))) {
if (!cb_state.activeRenderPass && !(cb_state.beginInfo.flags & VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT)) {
outside = LogError(vuid, cb_state.Handle(), loc, "This call must be issued inside an active render pass.");
}
return outside;
Expand Down
6 changes: 4 additions & 2 deletions tests/unit/buffer_positive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ TEST_F(PositiveBuffer, TexelBufferAlignmentIn13) {
CreateBufferViewTest(*this, &buff_view_ci, {});
}

TEST_F(PositiveBuffer, PerfGetBufferAddressWorstCase) {
// The two PerfGetBufferAddress tests are intended to be used locally to monitor performance of the internal address -> buffer map
TEST_F(PositiveBuffer, DISABLED_PerfGetBufferAddressWorstCase) {
TEST_DESCRIPTION("Add elements to buffer_address_map, worst case scenario");

SetTargetApiVersion(VK_API_VERSION_1_1);
Expand Down Expand Up @@ -130,7 +131,8 @@ TEST_F(PositiveBuffer, PerfGetBufferAddressWorstCase) {
}
}

TEST_F(PositiveBuffer, PerfGetBufferAddressGoodCase) {
// The two PerfGetBufferAddress tests are intended to be used locally to monitor performance of the internal address -> buffer map
TEST_F(PositiveBuffer, DISABLED_PerfGetBufferAddressGoodCase) {
TEST_DESCRIPTION("Add elements to buffer_address_map, good case scenario");

SetTargetApiVersion(VK_API_VERSION_1_1);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/subgroups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ TEST_F(NegativeSubgroup, PNextDisabled) {

VkPhysicalDeviceSubgroupProperties subgroup_prop = vku::InitStructHelper();
VkPhysicalDeviceProperties2 props2 = vku::InitStructHelper(&subgroup_prop);
vk::GetPhysicalDeviceProperties2(gpu_, &props2);
vk::GetPhysicalDeviceProperties2KHR(gpu_, &props2);
}

TEST_F(NegativeSubgroup, ExtendedTypesEnabled) {
Expand Down

0 comments on commit b9dc23b

Please sign in to comment.