Skip to content

[Impeller] Generated shaders always use high precision. #115044

@chinmaygarde

Description

@chinmaygarde

Static analysis of Impeller shaders shows that ImpellerC always uses high precision in generated shaders. In all cases analyzed, this was entirely unnecessary. On lower end devices using GPUs like Mali T720, this causes stack spills. These shaders will cause higher power draw and have lower throughput.

ImpellerC must default to using mediump for generated shaders and respect precision qualifiers in shader code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions