Skip to content

Commit

Permalink
sync: Clarify aspect mask specification
Browse files Browse the repository at this point in the history
  • Loading branch information
jzulauf-lunarg committed Jul 14, 2023
1 parent 36f660f commit e8ddab2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layers/containers/subresource_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ ImageRangeEncoder::ImageRangeEncoder(const IMAGE_STATE& image, const AspectParam

// WORKAROUND for profile and mock_icd not containing valid VkSubresourceLayout yet. Treat it as optimal image.
if (image.createInfo.tiling == VK_IMAGE_TILING_LINEAR) {
subres = {static_cast<VkImageAspectFlags>(AspectBit(0)), 0, 0};
const VkImageAspectFlags first_aspect = AspectBit(0); // AspectBit returns aspects by index
subres = {first_aspect, 0, 0};
DispatchGetImageSubresourceLayout(image.store_device_as_workaround, image.image(), &subres, &layout);
if (layout.size > 0) {
linear_image_ = true;
Expand Down

0 comments on commit e8ddab2

Please sign in to comment.