[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.
This commit is contained in:
Brandon DeRosier
2024-02-06 15:13:04 -08:00
committed by GitHub
parent 05e5a97357
commit 06dc0e966f

View File

@@ -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 =