From 573472ec214ac7c3e58b4cec3897ea9266eb6c20 Mon Sep 17 00:00:00 2001 From: Jim Graham Date: Tue, 21 Nov 2023 22:45:58 -0800 Subject: [PATCH] re-enable GPU compute tessellator for PointFields --- impeller/entity/geometry/point_field_geometry.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/impeller/entity/geometry/point_field_geometry.cc b/impeller/entity/geometry/point_field_geometry.cc index 9a8b3a39bf85a..7ecccd521c026 100644 --- a/impeller/entity/geometry/point_field_geometry.cc +++ b/impeller/entity/geometry/point_field_geometry.cc @@ -21,8 +21,7 @@ GeometryResult PointFieldGeometry::GetPositionBuffer( const ContentContext& renderer, const Entity& entity, RenderPass& pass) { - if (renderer.GetDeviceCapabilities().SupportsCompute() && false) { - FML_LOG(ERROR) << "Using compute"; + if (renderer.GetDeviceCapabilities().SupportsCompute()) { return GetPositionBufferGPU(renderer, entity, pass); } auto vtx_builder = GetPositionBufferCPU(renderer, entity, pass); @@ -46,8 +45,7 @@ GeometryResult PointFieldGeometry::GetPositionUVBuffer( const ContentContext& renderer, const Entity& entity, RenderPass& pass) { - if (renderer.GetDeviceCapabilities().SupportsCompute() && false) { - FML_LOG(ERROR) << "Using compute"; + if (renderer.GetDeviceCapabilities().SupportsCompute()) { return GetPositionBufferGPU(renderer, entity, pass, texture_coverage, effect_transform); }