HansKristian-Work / vkd3d-proton

Fork of VKD3D. Development branches for Proton's Direct3D 12 implementation.
GNU Lesser General Public License v2.1
1.89k stars 198 forks source link

Fix view creation with denorm MinLodClamp #1841

Closed doitsujin closed 9 months ago

doitsujin commented 9 months ago

Atlas Fallen sets ResourceMinLODClamp to binary 0x1 for most texture views, so we end up skipping view creation a lot of the time and rendering appears completely black.

The correct behaviour is a bit obscure since at least AMD native does not match what the D3D11 functional spec suggest in terms of rounding, but the test passes with this implementation.