diff options
| author | Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> | 2023-02-22 22:22:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-22 19:22:26 -0800 |
| commit | e8c08e7ecb1124f115a1d1042277776193122b57 (patch) | |
| tree | 9c1d970c8be244aa4a32762e1de3338507d24444 /tests | |
| parent | 6eb0b4dea4da1fc21767c86cc0837d0c8b68063b (diff) | |
Fixed hoisting of intermediate array & context vars (#2674)
Also added legalization for loops
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/autodiff/reverse-control-flow-3.slang | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/autodiff/reverse-control-flow-3.slang b/tests/autodiff/reverse-control-flow-3.slang index e94f55b03..01b533279 100644 --- a/tests/autodiff/reverse-control-flow-3.slang +++ b/tests/autodiff/reverse-control-flow-3.slang @@ -65,7 +65,7 @@ DifferentialPair<MaterialParam> d_getParam(uint id) MaterialParam p; p.roughness = 0.5f; MaterialParam.Differential d; - d.roughness = 0.0f; + d.roughness = 1.0f; return diffPair(p, d); } @@ -140,7 +140,7 @@ void handleHit(inout PathState path, inout PathResult rs, inout VisibilityQuery path.terminated = true; return; } - + generateScatterRay(param, path, rs); rs.L = rs.thp * lightEval(path.depth); @@ -179,7 +179,6 @@ bool tracePath(uint pathID, out PathState path, inout PathResult pathRes) float thp = pathRes.thp; float L = pathRes.L; - [ForceUnroll] for (int i = 0; i < 3; ++i) { if (path.isHit()) |
