Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tools/clang/unittests/HLSLExec/ShaderOpArith.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4475,6 +4475,10 @@ void MSMain(uint GID : SV_GroupIndex,

vector<OUT_TYPE, NUM> Result = DERIVATIVE_FUNC(Vector);

// Prevents the above derivative call from being sunk into the if
// condition below. DXC Bug: https://github.com/microsoft/DirectXShaderCompiler/issues/8001
WaveReadLaneAt(Result, 3);

// For coarse derivatives, all lanes in the quad get the same result.
// But for fine derivatives, each lane gets a different result. To
// keep things generic we only store in the third lane as thats the
Expand Down