Skip to content

Impeller on linux does not apply anti-aliasing to vector images #191171

Closed

Description

@ferraridamiano

Steps to reproduce

  1. Copy the code below to a new flutter project. Use flutter 3.47.0
  2. Copy the circle asset in the assets folder and include it in the pubspec.yaml file
  3. Run the code on a linux PC with and without the --no-enable-impeller flag

Expected results

flutter run -d linux --no-enable-impeller

Image

Actual results

flutter run -d linux

Image

Code sample

Code sample
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(body: Column(
        children: [
          Center(child: Icon(Icons.circle, size: 200)),
          SvgPicture.asset('assets/circle.svg', width: 200),
        ],
      )),
    );
  }
}

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.47.0, on Arch Linux 7.1.8-arch1-3, locale en_US.UTF-8) [38ms]
    • Flutter version 3.47.0 on channel stable at /home/damiano/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cf2416426 (5 days ago), 2026-08-11 11:53:49 -0700
    • Engine revision 5f77625673
    • Dart version 3.13.0
    • DevTools version 2.60.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations,
      enable-native-assets, enable-record-use, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [1,856ms]
    • Android SDK at /home/damiano/Android/Sdk
    • Emulator version 36.1.9.0 (build_id 13823996) (CL:N/A)
    • Platform android-36, build-tools 36.0.0
    • Java binary at: /opt/android-studio/jbr/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 25.0.2+-15348964-b329.117)
    • All Android licenses accepted.

[✓] Chrome - develop for the web [9ms]
    • CHROME_EXECUTABLE = /var/lib/flatpak/app/com.google.Chrome/current/active/export/bin/com.google.Chrome

[✓] Linux toolchain - develop for Linux desktop [367ms]
    • clang version 22.1.8
    • cmake version 4.4.2
    • ninja version 1.13.2
    • pkg-config version 3.0.5
    • OpenGL core renderer: AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.64, 7.1.8-arch1-3)
    • OpenGL core version: 4.6 (Core Profile) Mesa 26.1.7-arch1.1
    • OpenGL core shading language version: 4.60
    • OpenGL ES renderer: AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.64, 7.1.8-arch1-3)
    • OpenGL ES version: OpenGL ES 3.2 Mesa 26.1.7-arch1.1
    • OpenGL ES shading language version: OpenGL ES GLSL ES 3.20
    • GL_EXT_framebuffer_blit: yes
    • GL_EXT_texture_format_BGRA8888: yes

[✓] Connected device (3 available) [857ms]
    • Pixel 7a (mobile) • 37281JEHN00912 • android-arm64  • Android 17 (API 37)
    • Linux (desktop)   • linux          • linux-x64      • Arch Linux 7.1.8-arch1-3
    • Chrome (web)      • chrome         • web-javascript • Google Chrome 151.0.7922.137

[✓] Network resources [372ms]
    • All expected network resources are available.

• No issues found!

Activity

  1. suryaKommana2662 commented on Aug 17, 2026

    @suryaKommana2662
    Contributor

    @ferraridamiano Thanks for the detailed reproduction and for demonstrating the difference between Impeller and --no-enable-impeller. I able to reproduce the issue in Linux. Routing this issue to team-engine for further investigation.

    Flutter run -d linux
    Image

    flutter run -d linux --no-enable-impeller

    Image

    Flutter Doctor Output:

    [✓] Flutter (Channel stable, 3.47.0, on Ubuntu 26.04 LTS
        6.6.119-09283-g9c138e0af8c3, locale C.UTF-8) [53ms]
        • Flutter version 3.47.0 on channel stable at /home/suryak2662/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 4cf2416426 (6 days ago), 2026-08-11 11:53:49 -0700
        • Engine revision 5f77625673
        • Dart version 3.13.0
        • DevTools version 2.60.0
        • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop,
          enable-windows-desktop, enable-android, enable-ios, cli-animations,
          enable-native-assets, enable-record-use, enable-swift-package-manager,
          omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
        [3.5s]
        • Android SDK at /home/suryak2662/Android/Sdk
        • Emulator version 36.6.11.0 (build_id 15507667) (CL:N/A)
        • Platform android-36.1, build-tools 36.0.0
        • Java binary at: /opt/android-studio/jbr/bin/java
          This is the JDK bundled with the latest Android Studio installation on this
          machine.
          To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
        • Java version OpenJDK Runtime Environment (build 21.0.10+-14961533-b1163.108)
        • All Android licenses accepted.
    
    [✓] Chrome - develop for the web [18ms]
        • Chrome at google-chrome
    
    [✓] Linux toolchain - develop for Linux desktop [1,176ms]
        • Ubuntu clang version 21.1.8 (6ubuntu1)
        • cmake version 4.2.3
        • ninja version 1.13.2
        • pkg-config version 2.5.1
        • OpenGL core renderer: llvmpipe (LLVM 21.1.8, 256 bits)
        • OpenGL core version: 4.5 (Core Profile) Mesa 26.0.3-1ubuntu1
        • OpenGL core shading language version: 4.50
        • OpenGL ES renderer: llvmpipe (LLVM 21.1.8, 256 bits)
        • OpenGL ES version: OpenGL ES 3.2 Mesa 26.0.3-1ubuntu1
        • OpenGL ES shading language version: OpenGL ES GLSL ES 3.20
        • GL_EXT_framebuffer_blit: yes
        • GL_EXT_texture_format_BGRA8888: yes
    
    [✓] Connected device (2 available) [581ms]
        • Linux (desktop) • linux  • linux-x64      • Ubuntu 26.04 LTS
          6.6.119-09283-g9c138e0af8c3
        • Chrome (web)    • chrome • web-javascript • Google Chrome 150.0.7871.128
    
    [✓] Network resources [1,024ms]
        • All expected network resources are available.
    
    • No issues found!
  2. added
    engineflutter/engine related. See also e: labels.
    e: impellerImpeller rendering backend issues and features requests
    fyi-linuxFor the attention of the Linux platform team
    and removed
    in triagePresently being triaged by the triage team
    on Aug 17, 2026
  3. gaaclarke commented on Aug 17, 2026

    @gaaclarke
    Member

    This is a known limitation of the SDF renderer right now. If you look at the SDF it's using a path to represent a circle, not a circle command. Antialiasing on DrawPath isn't implemented now and instead relies on MSAA (#185117).

    Looking at the screenshots though, it seems like we aren't seeing MSAA. On windows we had to go back into the embedder and fix MSAA because it was programmed for mobile platforms, not desktop platforms. We should double check that for the linux embedder too. ( #190374 )

  4. self-assigned this
    on Aug 17, 2026
  5. added
    P1High-priority issues at the top of the work list
    on Aug 17, 2026
  6. caduandrade commented on Aug 18, 2026

    @caduandrade

    I believe the same problem is also affecting the CircularProgressIndicator: #191234

  7. github-actions commented on Sep 6, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  8. locked as resolved and limited conversation to collaborators on Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.fyi-linuxFor the attention of the Linux platform teamteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions