linux/run-7900.sh: MESA_PREFIX picks the RADV of one run #33

Closed
Molier wants to merge 1 commit from upstream-pr/33 into main
Molier commented 2026-12-01 00:58:49 +00:00 (Migrated from github.com)

Imported from Slaktarn700/SlaktarnVI. Originally posted by Molier on 2026-12-01T00:58:49Z.


MESA_PREFIX=<prefix> sets VK_DRIVER_FILES to that prefix's radeon ICD for this run only, so a
Vulkan-only Mesa build installed into a prefix of its own can be compared against the system's driver
without touching the system. When the prefix has no ICD, the script stops with the path it looked for.

Split out of #4 as you suggested. The script that builds such a prefix is left out: it follows whatever
Mesa main is that day.

Checked: bash -n, MESA_PREFIX=/nonexistent stops with MESA_PREFIX: no /nonexistent/..., and a
prefix with the ICD passes that check and carries on (it is what the 5800X numbers in #4 were measured
with).

<!-- greyfinch-sync:Slaktarn700/SlaktarnVI:issue:5576711399 --> Imported from [Slaktarn700/SlaktarnVI](https://github.com/Slaktarn700/SlaktarnVI/pull/33). Originally posted by [Molier](https://github.com/Molier) on 2026-12-01T00:58:49Z. --- `MESA_PREFIX=<prefix>` sets `VK_DRIVER_FILES` to that prefix's radeon ICD for this run only, so a Vulkan-only Mesa build installed into a prefix of its own can be compared against the system's driver without touching the system. When the prefix has no ICD, the script stops with the path it looked for. Split out of #4 as you suggested. The script that builds such a prefix is left out: it follows whatever Mesa main is that day. Checked: `bash -n`, `MESA_PREFIX=/nonexistent` stops with `MESA_PREFIX: no /nonexistent/...`, and a prefix with the ICD passes that check and carries on (it is what the 5800X numbers in #4 were measured with).
Slaktarn700 commented 2026-12-01 02:29:20 +00:00 (Migrated from github.com)

Imported from Slaktarn700/SlaktarnVI. Originally posted by Slaktarn700 on 2026-12-01T02:29:20Z.


Taken into main as your commit (57bfc69), thank you. One change after it (680b9b6): the driver file may also be called radeon_icd.json, as it is here with Mesa 26.3.1. Tried in a game: with a prefix holding a copy of the driver, the running game had only that copy mapped, two minutes, right picture, no crash; a prefix without the file stops with the message.

<!-- greyfinch-sync:Slaktarn700/SlaktarnVI:comment:7298669019 --> Imported from [Slaktarn700/SlaktarnVI](https://github.com/Slaktarn700/SlaktarnVI/pull/33#issuecomment-7298669019). Originally posted by [Slaktarn700](https://github.com/Slaktarn700) on 2026-12-01T02:29:20Z. --- Taken into main as your commit (57bfc69), thank you. One change after it (680b9b6): the driver file may also be called `radeon_icd.json`, as it is here with Mesa 26.3.1. Tried in a game: with a prefix holding a copy of the driver, the running game had only that copy mapped, two minutes, right picture, no crash; a prefix without the file stops with the message.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Slaktarn700/SlaktarnVI!33
No description provided.