dxvk icon indicating copy to clipboard operation
dxvk copied to clipboard

Batman:Arkham Knight sample mask and multisampling behavior problem

Open viktoriiapalianytsia opened this issue 3 years ago • 2 comments

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

viktoriiapalianytsia avatar May 27 '22 08:05 viktoriiapalianytsia

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.

doitsujin avatar May 28 '22 14:05 doitsujin

@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

Blisto91 avatar Sep 10 '22 17:09 Blisto91

@viktoriiapalianytsia Friendly double ping.

Blisto91 avatar May 14 '23 15:05 Blisto91

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.

viktoriiapalianytsia avatar May 18 '23 09:05 viktoriiapalianytsia