protonscr

Glitchy hair rendering with VRS in Senua's Saga: Hellblade 2

vkd3dclosed
HansKristian-Work/vkd3d-proton#2003 · opened 2024-05-29 by runar-work · updated 2024-05-30 · 1 comments · github
Rrunar-work 2024-05-29 github

When VRS is enabled in Senua's Saga: Hellblade 2, there are hair rendering glitches on certain NPCs.

screenshot-2024-05-28-15-50-21

Original report: https://github.com/ValveSoftware/Proton/issues/7754#issuecomment-2132070672

System information

Captures

Renderdoc capture

KK0bin 2024-05-29 github

I took a quick look at it. It reproduced with the renderdoc capture but I couldn't see anything wrong with the problematic draw.

Looking at the first draw where these black squares show up:

  • shader outputs are roughly the same between an affected pixel and a neighboring unaffected one
  • depth test & stencil test are both fine
  • No discard/demote in the fragment shader
  • Shading rate of the pipeline: 1x1, combine ops: Keep, Max
  • It doesn't write the shading rate in either the vertex or fragment shader
  • no TCS, TES or GS shader
  • the affected (black) pixels match up with non-zero pixels in the shading rate attachment (values are 1, 4, 5)
  • unaffected (correct) pixels match up with black (zero) pixels in the shading rate attachment

image
image

Upstream links