News: 0001619872

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

RADV Driver Lands Another Optimization: "Missing In RADV For A Very Long Time"

([Mesa] 38 Minutes Ago RADV)


A four year old optimization idea for the RADV driver was scratched off the TODO list last week for next quarter's Mesa 26.1 release.

Opened back in May 2022 was [1]this ticket by Timur Kristof of Valve's Linux graphics team:

"radv: Port si_emit_guardband to RADV

Setting PA_SU_HARDWARE_SCREEN_OFFSET properly (like RadeonSI does) should improve clipping (not culling) performance."

After no major work on it until a week ago, Samuel Pitoiset -- also of Valve's Linux graphics team -- has ported the optimization over to the RADV Vulkan driver.

[2]This code was merged last week for Mesa 26.1 RADV to optimize the clipping performance with PA_SU_HARDWARE_SCREEN_OFFSET.

The PA_SU_HARDWARE_SCREEN_OFFSET register has been found on AMD GPUs for at least 16+ years and making use of it should help with clipping performance. No specific performance numbers were shared though as part of either the issue tracker or merge request.



[1] https://gitlab.freedesktop.org/mesa/mesa/-/issues/6492

[2] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40249



Double Bucky, you're the one,
You make my keyboard so much fun,
Double Bucky, an additional bit or two, (Vo-vo-de-o)
Control and meta, side by side,
Augmented ASCII, 9 bits wide!
Double Bucky, a half a thousand glyphs, plus a few!

Oh, I sure wish that I,
Had a couple of bits more!
Perhaps a set of pedals to make the number of bits four.

Double Double Bucky! Double Bucky left and right
OR'd together, outta sight!
Double Bucky, I'd like a whole word of,
Double Bucky, I'm happy I heard of,
Double Bucky, I'd like a whole word of you!
-- to Nicholas Wirth, who suggested that an extra bit
be added to terminal codes on 36-bit machines for use
by screen editors. [to the tune of "Rubber Ducky"]