Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[Impeller] disable blending in gaussian intermediate steps. #51118

Merged
merged 1 commit into from
Mar 6, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
#include "impeller/entity/contents/content_context.h"
#include "impeller/entity/texture_fill.frag.h"
#include "impeller/entity/texture_fill.vert.h"
#include "impeller/renderer/command.h"
#include "impeller/renderer/render_pass.h"
#include "impeller/renderer/texture_mipmap.h"
#include "impeller/renderer/vertex_buffer_builder.h"

namespace impeller {
Expand Down Expand Up @@ -86,6 +84,7 @@ fml::StatusOr<RenderTarget> MakeDownsampleSubpass(
pass.SetCommandLabel("Gaussian blur downsample");
auto pipeline_options = OptionsFromPass(pass);
pipeline_options.primitive_type = PrimitiveType::kTriangleStrip;
pipeline_options.blend_mode = BlendMode::kSource;
pass.SetPipeline(renderer.GetTexturePipeline(pipeline_options));

TextureFillVertexShader::FrameInfo frame_info;
Expand Down Expand Up @@ -147,6 +146,7 @@ fml::StatusOr<RenderTarget> MakeBlurSubpass(

ContentContextOptions options = OptionsFromPass(pass);
options.primitive_type = PrimitiveType::kTriangleStrip;
options.blend_mode = BlendMode::kSource;

if (tile_mode == Entity::TileMode::kDecal &&
!renderer.GetDeviceCapabilities()
Expand Down