protonscr

Dead Space: RSSetShadingRateImage called with invalid resource for VRS.

vkd3dclosed
HansKristian-Work/vkd3d-proton#1398 · opened 2023-01-28 by K0bin · updated 2023-01-28 · 0 comments · github
KK0bin 2023-01-28 github

This warning is spammed in Dead Space. The resource is rejected for VRS because it was created with the flag ALLOW_RENDER_TARGET. According to the docs this flag is not allowed for VRS images.

These flags are not permitted.
ALLOW_RENDER_TARGET
ALLOW_DEPTH_STENCIL
ALLOW_CROSS_ADAPTER
ALLOW_SIMULTANEOUS_ACCESS
VIDEO_DECODE_REFERENCE_ONLY

https://learn.microsoft.com/en-us/windows/win32/direct3d12/vrs

There's three options here:

  • this isn't enforced and works fine despite what the docs say
  • this changed with a newer Agility SDK release and the docs are out of date
  • this is a game bug and doesn't work on Windows either.

I've tried removing ALLOW_RENDER_TARGET from the VRS check and the game worked fine and was slightly faster.

Nothing extracted yet.