Turn graphics pipeline libraries off by default on AMD's Windows driver for RX 5000 and RX 6000 cards.

That driver faults inside vkCreateGraphicsPipelines when it links the stage libraries of a burst of new pipelines. The game asks for one when an enemy dies and its effects are drawn for the first time, so the game ended with code 71 at every kill on an RX 6700 XT and an RX 5700 XT (issue #418), and the player who reported it found that gpl = 0 stops it. Unset, the setting is now off with that driver (vk_caps.amd_sc) and on everywhere else; gpl = 1 turns it on there, gpl = 0 off anywhere, and the caps line of the log says why it is off.

The price on those cards is that a new pipeline is built whole on the draw's path. Not run here: there is no AMD card. On an RTX 5090 the device probe reads "gpl yes" as before and "off by NX2NAVI_GPL=0" with the setting.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-10 22:57:58 -05:00
parent ed1ba735b4
commit 6750e0bee1
6 changed files with 42 additions and 16 deletions

View File

@@ -33,6 +33,13 @@ Draft notes for the release after 0.7.1. The version number is not decided yet.
shader compiler"); with it each NaN test is now made on the bits of the number instead, which no compiler can drop.
It is on by default only with that driver (`vk_nan_bits`); the first start after the update compiles the pipelines
again. Untested on those cards before this release: please report whether the blocks are gone.
- AMD RX 5000 and RX 6000 cards: the game no longer ends (code 71) when an enemy is killed. The Windows driver for
these cards faults when it links a burst of new pipelines from shader libraries, which is what the first kill of a
session asks for; players with an RX 6700 XT and an RX 5700 XT had it at every kill, and one of them found that
`gpl = 0` stops it. That is now the default with this driver (the log reads "gpl no ... off by default on AMD's
driver for RDNA 1 and 2"). The price: a pipeline the game needs for the first time is built whole while its draw
waits, so a new area hitches more on these cards. `gpl = 1` in `nx2navi.ini` turns the libraries back on. A
contributor's change, checked on their card; none of us has such a card.
- The older installer's last step no longer writes `nx2navi.ini` again as a whole to set the language: it changes the
`lang` line and keeps every other byte (it turned Windows line ends into Unix ones and dropped a byte order mark).