protonscr

Batman:Arkham Knight sample mask and multisampling behavior problem

dxvkclosed d3d11
doitsujin/dxvk#2653 · opened 2022-05-27 by viktoriiapalianytsia · updated 2024-10-02 · 5 comments · github
Vviktoriiapalianytsia 2022-05-27 github

I have encountered a problem with Batman's cloak in the game Batman:Arkham Knight. It is always flickering and it looks like it is caused by DXVK.

Firstly the Mesa issue was created: 6078. You can find most of information in this issue, but in general it appears that sample mask out behavior with multisampling is a problem here. It looks like DXVK is expecting GL behavior. It expects sample mask to be disabled for single sampled target, while VK behavior is different - per the Vulkan spec, shader writes to the sample mask work regardless of whether multisample is enabled.

Trace
BatmanAK

Ddoitsujin maintainer 2022-05-28 github

Is the D3D behaviour documented anywhere?

We don't really "expect" anything, we just translate the shader as normal since I'm not aware that this is a special case in some APIs.

BBlisto91 2022-09-10 github

@viktoriiapalianytsia i see this have been worked around in the driver but if you are still around i think the devs would like some more info about the original issue if possible

BBlisto91 2023-05-14 github

@viktoriiapalianytsia Friendly double ping.

Vviktoriiapalianytsia 2023-05-18 github

All the info I had about this misrendering is in the original issue. I can also provide the trace that was used while working with workaround in this link.

Mmykola-shubeliak 2024-10-02 github

Hi there!
Seems that this problem was fixed on the Mesa side by this commit and is no longer present on the main branch. Could we close this issue?

Nothing extracted yet.