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

Commit 8bf8e99

Browse files
authored
Revert "[Impeller] Speculatively attempt to fix Metal PSO construction errors on host targets. (#38229)"
This reverts commit b97d354.
1 parent 479bb73 commit 8bf8e99

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

impeller/renderer/backend/metal/pipeline_library_mtl.mm

+2-14
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
// found in the LICENSE file.
44

55
#include "impeller/renderer/backend/metal/pipeline_library_mtl.h"
6-
76
#include <Metal/Metal.h>
87

9-
#include "flutter/fml/build_config.h"
108
#include "flutter/fml/container.h"
119
#include "impeller/base/promise.h"
1210
#include "impeller/renderer/backend/metal/compute_pipeline_mtl.h"
@@ -133,19 +131,9 @@
133131
));
134132
promise->set_value(new_pipeline);
135133
};
136-
auto mtl_descriptor = GetMTLRenderPipelineDescriptor(descriptor);
137-
#if FML_OS_IOS
138-
[device_ newRenderPipelineStateWithDescriptor:mtl_descriptor
134+
[device_ newRenderPipelineStateWithDescriptor:GetMTLRenderPipelineDescriptor(
135+
descriptor)
139136
completionHandler:completion_handler];
140-
#else // FML_OS_IOS
141-
// TODO(116919): Investigate and revert speculative fix to make MTL pipeline
142-
// state creation use a worker.
143-
NSError* error = nil;
144-
auto render_pipeline_state =
145-
[device_ newRenderPipelineStateWithDescriptor:mtl_descriptor
146-
error:&error];
147-
completion_handler(render_pipeline_state, error);
148-
#endif // FML_OS_IOS
149137
return pipeline_future;
150138
}
151139

0 commit comments

Comments
 (0)