From 5aad90f60d9b3c6ddc28cd1e06561354a74d7046 Mon Sep 17 00:00:00 2001 From: jonahwilliams Date: Thu, 29 Feb 2024 21:36:10 -0800 Subject: [PATCH] [Impeller] disable blending in gaussian intermediate steps. --- .../entity/contents/filters/gaussian_blur_filter_contents.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/impeller/entity/contents/filters/gaussian_blur_filter_contents.cc b/impeller/entity/contents/filters/gaussian_blur_filter_contents.cc index 93d5dd760f3ed..e269fa450390a 100644 --- a/impeller/entity/contents/filters/gaussian_blur_filter_contents.cc +++ b/impeller/entity/contents/filters/gaussian_blur_filter_contents.cc @@ -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 { @@ -86,6 +84,7 @@ fml::StatusOr 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; @@ -147,6 +146,7 @@ fml::StatusOr MakeBlurSubpass( ContentContextOptions options = OptionsFromPass(pass); options.primitive_type = PrimitiveType::kTriangleStrip; + options.blend_mode = BlendMode::kSource; if (tile_mode == Entity::TileMode::kDecal && !renderer.GetDeviceCapabilities()