protonscr

[d3d9] Kane & Lynch: Dead Men Unhandled render state D3DRS_ADAPTIVETESS_Y

dxvkclosed appid 8080
doitsujin/dxvk#1307 · opened 2019-12-25 by pchome · updated 2026-06-11 · 5 comments · github · game page · search this game
Ppchome 2019-12-25 github

The FOURCC value is KanL. I doubt it used somewhere in drivers, it looks like it was either for debugging purposes or to be treated as D3D9Format::Unknown (Edit: I mean "and applied with D3DRS_ADAPTIVETESS_Y". Name likely was "invented" to be unsupported format.).

Out of curiosity I created a hack to accept this format (where D3D9Format::ATOC check is in current code)
https://github.com/doitsujin/dxvk/blob/b4f2094c02bea9b241f558a1c1888ba28a88d3f0/src/d3d9/d3d9_device.cpp#L1695-L1697
and there is indeed noticeable difference (see screenshots). Actually I don't know what I'm doing, so this bug report is FYI.

Before

KanL-default

After

KanL-hack

Software information

  • Native dlls: d3dx9_31, d3dcompiler_47, d3dx9_34.dll (present in game's installdir)
  • GFWL: xliveless (Bundled version failed to install)
  • Maxed settings (upped to AA:8/AF:16).

System information

  • Wine version: Proton-4.11-11 (local build)

Apitrace file(s)

  • 'll try to do on request

Log files

Mmisyltoad 2019-12-25 github

What you linked to was just my code for ADAPTIVENESS_Y and ATOC?

Please don't link random values up to ATOC... That can break things.

Mmisyltoad 2019-12-25 github

IDK what KanL is meant to do, I imagine its meant to signify to the driver that this is Kane and Lynch for driver hacks.

Is there an actual problem with the game btw?

Ppchome 2019-12-25 github

What you linked to was just my code for ADAPTIVENESS_Y and ATOC?

Yes, for context.

Is there an actual problem with the game btw?

No, the game works good.

Mmisyltoad 2019-12-25 github

This isn't a bug then.

If there's any difference on native drivers that's noticable, let me know.
(ie. does it look like ATOC or another feature is enabled?)

Ppchome 2026-06-11 github

AMD variant. Just for the record[^1]. No LOD-Bias hack or sharpening unlike the initial screenshots.

Image Image

The hack (ported to dxvk-2.7.1):

KanL-ATOC.patch

[^1]: @WinterSnowfall thought about what to do with the game-specific hacks after #4888, so more info if this still relevant ...

Proton versions

DLLs