Hello everyone,
I am trying to figure out why my pixels shaders are being slow. I mean I know why, I want to find specific instructions that could potentially be changed and optimized. So some information about the setup:
- API is D3D12
- Shader Model is SM6
- Everything is compiled through DXC, not FXC
NVIDIA Nsight Graphics is giving stall information like below (in case it is not readable the text is: %158 = phi i32 [ 0, %153 ], [ %342, %338 ]
which apparently is some LLVM specific syntax and it is causing “Wait” stalls on the pixel shader, dropping the SM occupancy by a lot. That line is never hit by a breakpoint in PIX so it's not part of “my code”. Does anyone have any clue what is going on here or what that line means? I am honestly completely lost. I know this is very specific and weird, but I'm at my rope's end so I figured I would ask here.
Do you have any other suggestions on how to approach profiling this thing? Keep in mind it is my own implementation not in some kind of engine.
I apologize if this is not the correct forum to ask, if there is a better place for this I would appreciate if you pointed me to it.