Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions impeller/aiks/picture.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,17 @@ std::shared_ptr<Texture> Picture::RenderToTexture(
size, // size
"Picture Snapshot MSAA", // label
RenderTarget::
kDefaultColorAttachmentConfigMSAA // color_attachment_config
#ifndef FML_OS_ANDROID // Reduce PSO variants for Vulkan.
,
std::nullopt // stencil_attachment_config
#endif // FML_OS_ANDROID
kDefaultColorAttachmentConfigMSAA, // color_attachment_config
std::nullopt // stencil_attachment_config
);
} else {
target = RenderTarget::CreateOffscreen(
*impeller_context, // context
render_target_allocator, // allocator
size, // size
"Picture Snapshot", // label
RenderTarget::kDefaultColorAttachmentConfig // color_attachment_config
#ifndef FML_OS_ANDROID // Reduce PSO variants for Vulkan.
,
*impeller_context, // context
render_target_allocator, // allocator
size, // size
"Picture Snapshot", // label
RenderTarget::kDefaultColorAttachmentConfig, // color_attachment_config
std::nullopt // stencil_attachment_config
#endif // FML_OS_ANDROID
);
}
if (!target.IsValid()) {
Expand Down
10 changes: 2 additions & 8 deletions impeller/entity/contents/content_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -382,21 +382,15 @@ std::shared_ptr<Texture> ContentContext::MakeSubpass(
subpass_target = RenderTarget::CreateOffscreenMSAA(
*context, *GetRenderTargetCache(), texture_size,
SPrintF("%s Offscreen", label.c_str()),
RenderTarget::kDefaultColorAttachmentConfigMSAA //
#ifndef FML_OS_ANDROID // Reduce PSO variants for Vulkan.
,
RenderTarget::kDefaultColorAttachmentConfigMSAA,
std::nullopt // stencil_attachment_config
#endif // FML_OS_ANDROID
);
} else {
subpass_target = RenderTarget::CreateOffscreen(
*context, *GetRenderTargetCache(), texture_size,
SPrintF("%s Offscreen", label.c_str()),
RenderTarget::kDefaultColorAttachmentConfig //
#ifndef FML_OS_ANDROID // Reduce PSO variants for Vulkan.
,
RenderTarget::kDefaultColorAttachmentConfig, //
std::nullopt // stencil_attachment_config
#endif // FML_OS_ANDROID
);
}
auto subpass_texture = subpass_target.GetRenderTargetTexture();
Expand Down
10 changes: 0 additions & 10 deletions impeller/renderer/render_target.cc
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,6 @@ RenderTarget RenderTarget::CreateOffscreen(
return {};
}

// Dont force additional PSO variants on Vulkan.
#ifdef FML_OS_ANDROID
FML_DCHECK(stencil_attachment_config.has_value());
#endif // FML_OS_ANDROID

RenderTarget target;
PixelFormat pixel_format = context.GetCapabilities()->GetDefaultColorFormat();
TextureDescriptor color_tex0;
Expand Down Expand Up @@ -278,11 +273,6 @@ RenderTarget RenderTarget::CreateOffscreenMSAA(
return {};
}

// Dont force additional PSO variants on Vulkan.
#ifdef FML_OS_ANDROID
FML_DCHECK(stencil_attachment_config.has_value());
#endif // FML_OS_ANDROID

RenderTarget target;
PixelFormat pixel_format = context.GetCapabilities()->GetDefaultColorFormat();

Expand Down