Skip to content

Commit

Permalink
Addressed some comments in the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mdagois committed Aug 16, 2024
1 parent ac6426c commit 409943b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion filament/backend/src/vulkan/VulkanDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1298,9 +1298,9 @@ void VulkanDriver::beginRenderPass(Handle<HwRenderTarget> rth, const RenderPassP
if (rpkey.samples > 1) {
const VulkanTexture* sidecar = info.texture->getSidecar();
assert_invariant(sidecar);
assert_invariant(sidecar->samples > 1);
if (sidecar && sidecar->isTransientAttachment()) {
rpkey.usesLazilyAllocatedMemory |= (1 << i);
assert_invariant(sidecar->samples > 1);
}
if (info.texture->samples == 1) {
rpkey.needsResolveMask |= (1 << i);
Expand Down
2 changes: 1 addition & 1 deletion filament/backend/src/vulkan/VulkanTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ VulkanTexture::VulkanTexture(VkDevice device, VkPhysicalDevice physicalDevice,
// Lazily allocated memory is available.
context.isLazilyAllocatedMemorySupported() &&
// Usage consists of attachment flags only.
!any(tusage & ~TextureUsage::ALL_ATTACHMENTS) &&
none(tusage & ~TextureUsage::ALL_ATTACHMENTS) &&
// Usage contains at least one attachment flag.
any(tusage & TextureUsage::ALL_ATTACHMENTS);
mIsTransientAttachment = useTransientAttachment;
Expand Down

0 comments on commit 409943b

Please sign in to comment.