From 06dc0e966f449a6ee394fdd5b0924be4b5719819 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Tue, 6 Feb 2024 15:13:04 -0800 Subject: [PATCH] [Impeller] Fix pipeline attachment layout in CanRenderToTexture. (flutter/engine#50413) The pipeline descriptor defaults changed, so we need to align the attachments to the RenderPass in this test. Should fix https://github.com/flutter/flutter/issues/142868. --- engine/src/flutter/impeller/renderer/renderer_unittests.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/src/flutter/impeller/renderer/renderer_unittests.cc b/engine/src/flutter/impeller/renderer/renderer_unittests.cc index 1e5c38344a..c3634fafb9 100644 --- a/engine/src/flutter/impeller/renderer/renderer_unittests.cc +++ b/engine/src/flutter/impeller/renderer/renderer_unittests.cc @@ -291,6 +291,8 @@ TEST_P(RendererTest, CanRenderToTexture) { auto pipeline_desc = BoxPipelineBuilder::MakeDefaultPipelineDescriptor(*context); pipeline_desc->SetSampleCount(SampleCount::kCount1); + pipeline_desc->ClearDepthAttachment(); + pipeline_desc->SetStencilPixelFormat(PixelFormat::kS8UInt); ASSERT_TRUE(pipeline_desc.has_value()); auto box_pipeline =