Skip to content

linux-drivers: add rga3 Rockchip multi-RGA driver#2977

Closed
felixjones wants to merge 4 commits into
ROCKNIX:nextfrom
felixjones:fejones/librga-kernel
Closed

linux-drivers: add rga3 Rockchip multi-RGA driver#2977
felixjones wants to merge 4 commits into
ROCKNIX:nextfrom
felixjones:fejones/librga-kernel

Conversation

@felixjones

Copy link
Copy Markdown
Contributor

Summary

Based on #2969

Ports rga3 driver from https://github.com/rockchip-linux/kernel to the latest kernel (hosted from a mirror https://github.com/felixjones/linux-rga3-mirror).

Developer guide for the rga3: https://github.com/sz-jack-01/linux-rga/blob/rkr3.5/docs/Rockchip_Developer_Guide_RGA_EN.md

This is another change from my gamescope experiments, rga3 has neat hardware rotation available, and AFBC 32x8 rotation with the RK3576 (where I'm getting gamescope working).

Testing

I had patched this driver for my gamescope experiments, it's been tested over the past few weeks.

Additional Context

Again, uses a mirror host here https://github.com/felixjones/linux-rga3-mirror for the rga3 driver


AI Usage

NO

@sunshineinabox

Copy link
Copy Markdown
Contributor

How are you managing rotating in gamescope using the pr recently submitted and wlroot?

@felixjones

Copy link
Copy Markdown
Contributor Author

How are you managing rotating in gamescope using the pr recently submitted and wlroot?

The Raster Graphics Accelerator (RGA) hardware in the RK3576 provides hardware rotation (and scaling) of a CMA scanout buffer

I had issues with gamescope's Vulkan compositor and the rotation shader (stability and performance) so went down this route instead for rotating the image. Since then I've figured out the rotation shader issues - however using RGA for hardware rotation saves having to compile additional rotation shader permutations so I still see value in using RGA even with the VK compositor (hardware is there, might as well use it)

I'm currently cleaning up the patches for gamescope for the next PR, that will show the user code side of it

@aenertia

aenertia commented Jul 5, 2026 via email

Copy link
Copy Markdown
Contributor

@sunshineinabox

Copy link
Copy Markdown
Contributor

ValveSoftware/gamescope#2228

yea I believe this PR is a better solution than the rotaiton shader on sm6115 noticed a similar issue but motivated me to get the hardware rotator working.

@felixjones

Copy link
Copy Markdown
Contributor Author

Superseded by #3019

@felixjones felixjones closed this Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants