Skip to content
reMESA-devgroupPublic

About

Open-source Wayland, 3D and 2D driver for Intel Poulsbo / GMA 500 (PowerVR SGX535), Mesa Gallium + gma500 kernel work. SGX544 research.

Topics

Resources

Code of conduct

Stars

31 stars

Watchers

2 watching

Forks

Repository files navigation

reMESA logo

reMESA

Hey! I'm Gama. I started with one GPU (Intel Poulsbo), somehow ended up with two, and now I'm apparently making a Wayland desktop too.

Welcome to reMESA (Reverse Engineered MESA), an independent project to bring usable open-source graphics drivers to the Intel GMA 500 (SGX535) and PowerVR SGX544.

Possibly the most unprofessional graphics driver project ever developed on a Galaxy Tab S7.

Made in Brazil. 🇧🇷

Development poll | Development updates and FAQ

Pipoca says hello too.

Pipoca saying hello Pipoca: Gama said he was making a graphics driver. Now there are two monitors, Wayland and an entire desktop. I don't know what happened either.

Wait, Wayland?

Yes.

Wayland on Poulsbo.

I honestly didn't expect this to work as well as it did, especially considering that my test machine is a Dell Inspiron Mini 12 with an Atom Z520 and 1 GB of RAM.

Wayland and XWayland are now running on this machine. I also managed to get two monitors working simultaneously, including an external Full HD monitor at 60 Hz.

Even I didn't believe it.

Something that surprised me was how responsive Wayland felt even with CPU rendering. Getting it working was surprisingly easier than getting my previous Xorg integration working.

So, after spending quite a lot of time fighting with Xorg, I decided to make Wayland the primary desktop target of reMESA.

X11 applications can still run through XWayland.

Wayland go brr.

Pipoca celebrating Pipoca: Two monitors on a GMA500! One of them is Full HD. Gama went to sleep after that.

Current status (November 25, 2026)

I'm currently preparing the first public installable beta of reMESA.

A lot has changed since the previous README, particularly with the introduction of the HRE architecture and the move towards Wayland.

Feature Status
SGX535 hardware rendering Demonstrated
Native 2D acceleration Demonstrated
Hybrid 2D acceleration Demonstrated
HRE Experimental
Mesa / Gallium In development
NIR-to-USSE Experimental
Textures Demonstrated in restricted workloads
Continuous GPU rendering Demonstrated in restricted workloads
Wayland Working in experimental tests
XWayland Working in experimental tests
Nested mode Working
Native mode Previously demonstrated; release integration in progress
Multiple monitors Demonstrated
External Full HD output Demonstrated
reMESA Desktop Experimental
Installer In development
Full desktop GPU acceleration In qualification
OpenGL 2.1 In development
OpenGL ES 2.0 In development
PRIME / DMA-BUF Experimental
Atomic KMS Planned
VA-API Planned
SGX544 Research

Please keep in mind that this is still an experimental driver.

Getting a desktop to work doesn't automatically mean every application is hardware accelerated. Similarly, getting GLXGears to work doesn't mean the driver supports every OpenGL application.

Some of the latest code and physical test results are still being prepared for publication.

The first installable beta has not been released yet.

HRE (Hybrid Rendering Engine)

This is probably the biggest architectural change in reMESA so far.

While working on 2D acceleration, I noticed something interesting: the GPU wasn't always faster than the CPU.

The Atom was actually faster at some fills and console scrolling operations, while the native 2D engine was considerably faster at large framebuffer copies.

So instead of trying to make the GPU do absolutely everything, I decided to take a different approach.

Why not use all three?

  • The CPU.
  • The native 2D engine.
  • The SGX535 3D engine.

That's basically the idea behind HRE.

The architecture is intended to select an appropriate execution path depending on the operation, rather than blindly sending everything to the GPU.

         Applications
              |
      Wayland / XWayland
              |
      Compositor / Mesa
              |
             HRE
              |
     +--------+--------+
     |        |        |
    CPU    Native    SGX535
 Rendering   2D       3D
     |        |        |
     +--------+--------+
              |
     Resource management
     and synchronization
              |
          DRM / KMS
              |
           Display

This is a simplified view of the intended architecture. Not all of these paths are fully integrated or qualified yet.

HRE development includes persistent rendering sessions, resource management, texture updates, shader compilation, synchronization and hybrid rendering.

The idea isn't to pretend that the SGX535 is a modern GPU.

It's to make the best possible use of the hardware we actually have.

Pipoca thinking Pipoca: Sometimes the CPU is faster. Sometimes the GPU is faster. Gama decided to stop arguing with both of them.

reMESA Desktop

Apparently I'm making a desktop now too.

reMESA Desktop is a lightweight Wayland environment built using existing open-source applications and desktop components.

It's not a new Linux distribution, and I don't intend to force anyone to replace their current distribution just to use reMESA.

The current desktop configuration includes:

Component Application
Compositor Labwc
Panel Waybar
Application launcher Fuzzel
Terminal Foot
File manager Thunar
Browser Firefox ESR
Text editor Mousepad
Image viewer imv
Media player MPV
Screenshots Grim + Slurp
Display configuration wdisplays
Notifications Mako
Wallpaper Swaybg
Audio configuration Pavucontrol
Clipboard wl-clipboard

The exact applications available will depend on your distribution.

I'm trying to keep the desktop lightweight. After all, we're talking about machines that sometimes have only 1 GB of RAM.

No unnecessary animations, no ridiculous blur effects, and hopefully no exploding Atom processors.

Nested

This is probably the easiest way to try reMESA Desktop.

Nested mode runs a Wayland compositor inside your existing graphical session. You don't need to replace your current desktop or reboot just to try it.

I've already tested multiple graphical applications, EGLGears, GLXGears, terminals and other desktop applications in this mode.

Yes, two GLXGears instances at the same time. Why? Because I could.

The current Nested configuration uses one virtual display.

Nested mode is also useful for testing applications without having to deal with direct DRM device ownership.

Keep in mind that Nested mode working doesn't necessarily mean that the applications are using the SGX535 for rendering.

Native

Native mode is intended to run Wayland directly on DRM/KMS, without an Xorg session underneath it.

This is where multiple physical monitors and direct display control come into play.

The installer is being designed to provide a separate boot entry for Native mode while preserving the original Linux installation.

The original boot entry should remain available in case something goes wrong.

Native Wayland has already been demonstrated experimentally, including multiple monitors, but I'm still working on making the current release configuration reliable.

The full integration of HRE with the native compositor is also still being qualified.

Installation

I'm working on an installer that doesn't require a custom Linux distribution or a specific laptop model.

The Dell Mini 12 is my test machine, not a hardware requirement for reMESA.

The intention is to support compatible Poulsbo machines, including the Sony VAIO Type P and other devices using the GMA500.

Debian-based distributions are the initial focus, but I'm also investigating support for other distributions, including Arch Linux 32.

Kernel compatibility and package availability will vary.

Please don't install an experimental kernel module just because it compiled successfully. Compilation and physical qualification are two very different things.

Why are we doing this?

Intel Poulsbo machines can still display a Linux desktop, but the existing gma500 driver alone doesn't provide a modern open SGX 3D stack.

Yet, hehe.

The SGX544 has its own platform and driver history, including Android graphics components. Public programming information is limited for both, so I've been digging.

Both projects exist because I want to understand these chips and build open graphics support for them.

That doesn't mean they speak the same language. Their command formats and hardware interfaces need independent evidence, even when some tools can be shared.

The SGX535 project started on September 16, 2026.

Since then, I've studied historical drivers, compiler behavior, hardware interfaces and quite a lot of hexadecimal numbers that I wish I could forget.

Some discoveries took hours.

0x07000345 took a lot, lot, lot, LOT longer.

ALWAYS.

Pipoca checking the details Pipoca: SGX535 is the one drawing on Gama's Mini 12. SGX544 is still at the research stage. Similar names don't make them the same GPU.
SGX535 SGX544
Architecture PowerVR Series5 PowerVR Series5XT
Platform Intel Poulsbo / GMA500 Platform-specific SGX544 devices
Tested hardware Dell Mini 12, rev121 Physical qualification pending
Rendering Physical GPU rendering demonstrated No independent rendering demonstrated
Shaders Experimental NIR, USSE and PDS implementation GLSL, UniFlex and UniPatch research
Kernel Experimental gma500 integration Research
Desktop Wayland and XWayland demonstrated Not available
Maturity Experimental driver Early reverse engineering
Code SGX535 SGX544

What actually worked on SGX535

The SGX535 in my Mini 12 has rendered real triangles, and an OpenGL glDrawArrays call reached the GPU through the Gallium implementation.

An earlier qualified GLXGears test at 1280x800 completed 600 GPU submissions and averaged 16.1345 FPS across six measurement windows.

See the physical results and the GLXGears reproduction guide for the original test conditions.

That result is historical and doesn't represent a benchmark of the current HRE architecture.

Later tests covered color and depth buffers, texture sampling, persistent sessions and continuous rendering.

Physical COLOR and Z24 readbacks have also been validated in restricted managed rendering workloads.

The more recent desktop tests include:

  • Wayland and XWayland.
  • Multiple graphical applications.
  • Nested Wayland inside X11.
  • EGL and GLX applications.
  • Multiple simultaneous gears applications.
  • Two physical monitors in earlier native tests.
  • External 1920x1080 output at 60 Hz.

I'm keeping desktop compatibility, CPU rendering, hardware rendering and offline tests separate.

Otherwise it's very easy to celebrate the wrong triangle.

Pipoca celebrating Pipoca: Those triangles really came from the GPU! The other triangles might have come from the CPU. Please check the renderer before celebrating.

What about upstream Linux?

I'm also interested in modernizing the existing upstream drm/gma500 driver.

I've been discussing the architecture and possible improvements with DRM developers and the gma500 maintainer.

For Poulsbo, my intention is to keep the rendering infrastructure within gma500 rather than introduce another competing PCI driver for the same hardware.

Some of the things I'd like to work on are:

  • GEM and MMU improvements.
  • Buffer ownership and lifetime management.
  • PRIME / DMA-BUF support.
  • Atomic modesetting.
  • Better compatibility with modern Wayland compositors.
  • Synchronization and failure handling.

I'd also like to improve the stock driver independently of reMESA's experimental 3D implementation.

Hopefully, some of this work can eventually benefit other devices supported by gma500.

Of course, upstream integration depends on testing, code quality and maintainer review.

Nothing here should be interpreted as an announcement that reMESA has already been accepted into Linux or Mesa.

The SGX544 side

Pipoca reacting to a difficult problem Pipoca: The SGX544 library points to a GLSL compiler and UniFlex. Finding that signpost isn't the same as finding the road to a finished shader.

The SGX544 research follows the original GLES shader compilation path, including dynamic loading of libglslcompiler.so, GLSLCompileToUniflex, and parts of UniPatch.

There's no working independent SGX544 renderer yet, and I can't assume SGX535 command encodings will work on it.

The starting point was an Android driver archive, including an x86 32-bit GLES library.

Static analysis traced glCompileShader to a compiler callback and the lookup of GLSLCompileToUniflex. It also found UniPatch setup.

The matching compiler wasn't in that archive.

Where UniFlex becomes final USSE, and how this device submits work and manages GPU memory, still need answers.

See the findings and their evidence limits.

Special thanks to Incogninto for sharing the Android driver binaries that made this investigation possible.

This repository does not redistribute those proprietary libraries.

For now, SGX535 remains the main development priority.

SGX544MP2 and other SGX variants are longer-term research targets.

How the pieces fit

Pipoca thinking Pipoca: Mesa takes the OpenGL calls, Gallium gives the driver the draws and state, and then Gama has to convince the GPU to do something with them.

Mesa provides the OpenGL frontend, while Gallium provides an interface through which the driver receives draws, state and resources.

The experimental SGX535 userspace builds hardware-facing state and shader programs. The kernel handles controlled memory access, resource ownership and GPU submission.

GEM manages graphics buffers, and the GPU MMU maps the addresses used by the GPU.

Getting the pixels right once isn't enough if the next draw uses freed memory.

Synchronization, fences, retirement and resource lifetimes are just as important as rendering itself.

USSE is the shader instruction architecture.

PDS (aka: hell) programs help prepare and deliver data and tasks to the GPU.

GLSL and UniFlex belong to compiler paths studied in the original software.

These terms aren't interchangeable, and neither are the encodings of the different SGX GPUs.

Provenance and AI

Yes, I've used AI during the development of reMESA.

I don't want to hide that.

AI has been used for implementation assistance, analysis, documentation and other development tasks. Generated code still needs review, testing and physical validation.

It has also produced incorrect code, including memory lifetime problems that had to be identified and fixed.

I'm documenting the sources used during development, including historical public repositories, SDK material and reverse engineering references.

The goal is to keep the implementation independent and its provenance traceable.

Please don't contribute leaked source code, confidential documentation or proprietary material that you don't have permission to redistribute.

Where to look

The November 13 beta checkpoint is a historical snapshot, not the current development status.

The previous SGX535 README preserves the earlier project story and acknowledgments.

The original SGX544 repository is also available separately.

Some recent development bundles may not yet be available in this repository.

What's next?

Pipoca running Pipoca: Gama finally has a desktop with actual applications. Now he has to make it work on computers that aren't his own. No pressure, Gama.

My immediate priorities are finishing the beta installer, improving Native mode, qualifying the HRE integration and getting reMESA tested on more Poulsbo machines.

After that:

  • Better OpenGL 2.1 and GLES 2.0 coverage.
  • More application and game compatibility.
  • Performance improvements.
  • Better memory management and synchronization.
  • Atomic KMS.
  • Video acceleration.
  • GMA600 research.
  • Further SGX544 development.

I'd really like to see reMESA running on a VAIO Type P.

And yes, Minecraft is still on my list.

Contributing

Pipoca waiting for contributors Have compatible hardware, references, test results or driver experience? Issues and contributions are welcome. Even a report saying that something doesn't work can be useful.

If you're testing reMESA, please include:

  • Your device model.
  • Your Linux distribution.
  • Kernel version.
  • CPU architecture.
  • GPU PCI ID.
  • Commands and relevant logs.
  • Whether you used Nested or Native mode.
  • Whether rendering was performed by the CPU or GPU.

You don't need a Dell Mini 12 to contribute.

In fact, testing other machines is exactly what I need right now.

Thanks to Simon Fenney, e1zo, Alex, Garnet, monocasa, nicman24, intelminer, Incogninto, everyone sharing evidence, the DRM developers providing feedback, and of course Pipoca.

And thanks to everyone who still uses these ridiculous little computers.

Pipoca resting The goal is serious. The documentation and commit messages don't always have to be.

— Gama

Poulsbo isn't dead.

Stone Badge

About

Open-source Wayland, 3D and 2D driver for Intel Poulsbo / GMA 500 (PowerVR SGX535), Mesa Gallium + gma500 kernel work. SGX544 research.

Topics

Resources

Code of conduct

Stars

31 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Contributors

Languages