As of driver version 522.25, I am seeing a new problem with a program that uses Shader Model 6.6 HLSL dynamic resources with D3D12. There are flickering artifacts when copying from an intermediate resource. It seems like it’s behaving as if there’s a missing resource barrier. I’ve attached a minimal reproduction both as a release binary and as a complete Visual Studio 2019 project. There are more details in the included project readme.
Graphics Hardware Tested
RTX 3070
RTX 3080 10GB
RTX 3080 Ti
Driver Versions Confirmed Showing Problem
522.25
526.47
526.86
Driver Versions Confirmed NOT Showing Problem
517.48
Steps to reproduce:
Install driver 522.25 or higher
Unzip hlsl-dynamic-resource-bug-bin.zip and run Project.exe
Wait a moment and observe flickering triangle. The expected output is a solid triangle with no flickering.
To use the source project, unzip hlsl-dynamic-resource-bug-source.zip. There is a readme included with instructions and more information about the code. Within the project, it’s possible to do an A/B comparison of using a descriptor table vs HLSL dynamic resources, where the former does not present any issue. I believe the behavior should be identical, as was the case with driver version 517.48 (and presumably earlier).
To update, this is still occurring on driver 527.37 on the same hardware. Also, as another data point, it does not occur on a Steam Deck running Windows 10 using the latest AMD APU driver (Nov 8th).
Is there any news regarding this issue? On the latest drivers with my RTX 3080 I still very much have this same issue, except it’s even worse with more complicated renders than OP showcased. To show what I mean, I’ll attach a couple screenshots. The obviously good screenshot is before using dynamic resources. And I know the dynamic resources work as intended on at least the RTX 2070 and a radeon card (not sure which model off the top of my head).
Screenshot, with the left side being before dynamic resources, and right side being with dynamic resources: https://prnt.sc/JW6eCCaTjkkT
I’m experiencing the exact same issue on 537.34, so I guess this still hasn’t been fixed?
As mentioned in the original post, downgrading to 517.48 gets rid of the artifacting entirely.
Driver version 537.34 (latest as of post)
Windows 10 Pro 22H2 19045.3448 (latest as of post)
Hello @MrMarlax and welcome to the NVIDIA developer forums!
By now we do have a fix, but unfortunately we are not able to include it in the r53x driver versions anymore. But we do have a fix which will be part of a future driver release. I cannot say which one exactly though, I am sorry.
In my case I discovered that the glitching only appeared when GPU-based validation was disabled, so it only affected release builds.
Needless to say that lead to a very confusing debugging experience.
I’m just relieved it was already reported and I managed to find this topic.