News: 0001539400

  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 Lands Workaround For Buggy HiZ/HiS On AMD RDNA4 GPUs

([Radeon] 6 Hours Ago RADV Workaround)


It turns out the Hierarchical Z "HiZ" implementation with AMD RDNA4 GPUs with the GFX12 graphics engine for early rejection of fragments before hitting the rendering pipeline is slightly buggy. Driver workarounds are needed for the HiZ/HiS support with RDNA4 GPUs to avoid potential hangs.

Hardware bugs and driver workarounds are unfortunately nothing new and with RDNA4/GFX12 there's special treatment needed around the HiZ/HiS features that are important for performance. Linux graphics driver engineer Samuel Pitoiset with Valve has landed a workaround for "buggy" HiZ/HiS on GFX12 (RDNA4). Radeon RX 9070 series hangs were experienced with The Last Of Us Part 1 "TLOU1" and tracked down due to the buggy HiZ.

It turns out the RadeonSI Gallium3D driver and AMD PAL code for AMDVLK already have a similar workaround in place for the buggy HiZ/HiS on RDNA4 GPUs. In one of the code comments on the now-merged Mesa RADV code, Pitoiset explains the situation as:

"On GFX12, HiZ/HiS is buggy and can cause random GPU hangs. There are basically two alternatives:

- disable HiZ/HiS completely which is the safest workaround but this is known to decrease performance

- emit a dummy BOTTOM_OF_PIPE_TS after every draw which should workaround the hang and maintain performance"

Thus the later option is preferred in the name of performance.

[1]This merge now in Mesa 25.1-devel and should be back-ported to a Mesa 25.0 point release soon takes care of this buggy HiZ/HiS behavior for GFX12/RDNA4 GPUs. So if you were encountering hangs with any games on the new Radeon RX 9070 series with RADV, it may be worthwhile trying out the very newest Mesa code.



[1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34381



phoronix

Q: How many members of the U.S.S. Enterprise does it take to change a
light bulb?
A: Seven. Scotty has to report to Captain Kirk that the light bulb in
the Engineering Section is getting dim, at which point Kirk will send
Bones to pronounce the bulb dead (although he'll immediately claim
that he's a doctor, not an electrician). Scotty, after checking
around, realizes that they have no more new light bulbs, and complains
that he "canna" see in the dark. Kirk will make an emergency stop at
the next uncharted planet, Alpha Regula IV, to procure a light bulb
from the natives, who, are friendly, but seem to be hiding something.
Kirk, Spock, Bones, Yeoman Rand and two red shirt security officers
beam down to the planet, where the two security officers are promptly
killed by the natives, and the rest of the landing party is captured.
As something begins to develop between the Captain and Yeoman Rand,
Scotty, back in orbit, is attacked by a Klingon destroyer and must
warp out of orbit. Although badly outgunned, he cripples the Klingon
and races back to the planet in order to rescue Kirk et. al. who have
just saved the natives' from an awful fate and, as a reward, been
given all light bulbs they can carry. The new bulb is then inserted
and the Enterprise continues on its five year mission.