Project

General

Issue template

Template for note

Profile

Actions

Emulator Issues #6474

closed

D3D11 Backend Broken Since ZComploc Emulation

Added by nigel.harris.uk over 11 years ago.

Status:
Fixed
Priority:
Urgent
Assignee:
Category:
GFX
% Done:

0%

Operating system:
Windows
Issue type:
Bug
Milestone:
Current
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Do not attach files to this issue. Upload them to another site and
link here. Use imgur.com for images.

READ THIS: https://forums.dolphin-emu.org/showthread.php?pid=276132 <<<
Your answers are here!

Have you searched the issue tracker for a similar issue?
Yes

Game Name?
Any game using D3D11 backend

Game ID?

What went wrong?
I get an error saying fail to compile pixel shader. I have DirectX11 hardware. Please see the image in the link.

http://imgur.com/2cY6YZq

This has happened since the Zcomploc emulation commit: https://code.google.com/p/dolphin-emu/source/detail?r=eed36cbf78d45bcdc13b4c8cc980f6187c8357cf

The contents of the bad_PS_0000.txt can be seen in the link below:
http://pastebin.com/htBKS7kR

What did you expect to happen?
I expect not to get the above error as shown below:
http://imgur.com/ONfKlU4

What steps will reproduce the problem?
Use dolphin3.5-1729 with DX11 backend.

64 or 32 bit Dolphin?
64bit

What version of Dolphin used to work?
versions prior to 1729

What Operating System were you using and what are your hardware
specifications?
GTX780
Windows 7 64bit.

Any other relevant information or links to logs:
I did update my driver to latest version from Nvidia to see if it will fix this.
Please see pastebin link.

Actions #1

Updated by delroth over 11 years ago

  • Status changed from New to Accepted
  • Issue type set to Bug
  • Priority set to Urgent
  • Category set to gfx
  • Milestone set to Current
  • Operating system Windows added
Actions #2

Updated by kostamarino over 11 years ago

There is an error message thrown in case you have disabled fast depth calc basically in various games. In the mean time you should probably enable fast depth calc since ZComploc Emulation for direct 3d 11 relies on that.

Actions #3

Updated by nigel.harris.uk over 11 years ago

I just tried it with Fast Depth Calculation. I no longer get the Fail to Compile pixel shader error

Actions #4

Updated by NeoBrainX over 11 years ago

Try replacing line 262 in Source/Core/VideoCommon/PixelShaderGen.cpp
"const bool per_pixel_depth = (bpmem.ztex2.op != ZTEXTURE_DISABLE && bpmem.UseLateDepthTest()) || (!g_ActiveConfig.bFastDepthCalc && !forced_early_z);"
with
"const bool per_pixel_depth = (bpmem.ztex2.op != ZTEXTURE_DISABLE && bpmem.UseLateDepthTest()) || (!g_ActiveConfig.bFastDepthCalc && bpmem.zmode.testenable && !forced_early_z);"

Actions #5

Updated by Autoran1 over 11 years ago

This one fixes a terrible performance loss if Fast Depth is off with new DX11 ZComploc, and a number of graphic issues introduced during this performance loss

Actions #6

Updated by NeoBrainX over 11 years ago

  • Status changed from Accepted to Fixed

This issue was closed by revision 4c22e1264e0f.

Actions #7

Updated by NeoBrainX over 11 years ago

This issue was closed by revision 4c22e1264e0f.

Actions

Also available in: Atom PDF