protonscr

FSR4.0.3 Unsupported AGS magic instruction

vkd3dclosed
HansKristian-Work/vkd3d-proton#2753 · opened 2025-12-13 by mbriar · updated 2025-12-16 · 2 comments · github
Mmbriar 2025-12-13 github

When replacing the amd_fidelityfx_dx12.dll from Ghost of Tsushima (it ships FSR4.0.0) with the (renamed) amd_fidelityfx_upscaler_dx12.dll from the FidelityFX-SDK 2.1.0, it crashes with this log output:

20307.052:0134:0138:err:vkd3d-proton:vkd3d_dxil_log_callback: dxil-spirv: Unsupported AGS magic instruction 0x35 (immediate 256).
20307.052:0134:0138:err:vkd3d-proton:vkd3d_dxil_log_callback: dxil-spirv: Failed DXIL opcode 79.
20307.052:0134:0138:err:vkd3d-proton:vkd3d_dxil_log_callback: dxil-spirv: Failed to emit instruction.
20307.052:0134:0138:err:vkd3d-proton:vkd3d_dxil_log_callback: dxil-spirv: Failed to convert function.

Replacing the dll with the one from the FidelityFX-SDK 2.0.0 that comes with FSR4.0.2 works fine.

Software information

Ghost of Tsushima and probably all other games using the amd_fidelityfx_upscaler_dx12.dll from the FidelityFX-SDK 2.1.0

System information

  • GPU: 9070 XT
  • Driver: RADV git 25.99.99 (105263203)
  • Wine version: proton-EM-10.0-32
  • VKD3D-Proton version: 734bcaaa0527efb9b2d6a1a62dc01d4186e5a6b8

Log files

steam-2215430.zip

shader dump: fsr.zip

HHansKristian-Work maintainer 2025-12-15 github

AmdExtD3DShaderIntrinsicsOpcode_MatrixElementWiseArithmetic = 0x35. Shouldn't be too hard to add I guess.

Mmbriar 2025-12-15 github

Seems to work fine with #2755, also with Optiscaler in other games and even seems to shave off 0.1 ms from the upscaler time, thanks.