Commit addab037 authored by Danylo Piliaiev's avatar Danylo Piliaiev Committed by Marge Bot
Browse files

tu: do not corrupt unwritten render targets

There is no point in having a write to an attachment enabled when there
is no corresponding output in the shader. Per VK spec it is an UB,
however a few apps depend on attachment not being changed if FS doesn't
have corresponding output.

Fixes water in Genshin Impact.
Signed-off-by: Danylo Piliaiev's avatarDanylo Piliaiev <>
Reviewed-by: Emma Anholt's avatarEric Anholt <>
Reviewed-by: Samuel Iglesias Gonsálvez's avatarSamuel Iglesias Gonsálvez <>
Part-of: <!10489>
parent aa038773
Pipeline #309904 waiting for manual action with stages