Commit d446e9c
committed
sycl: cache committed candidate type in hit writeback path
rtcIntersectRTHW queried intel_get_hit_candidate(committed_hit)
multiple times in the final writeback section.
Cache the committed candidate once and reuse it for:
- triangle primID/barycentric extraction
- triangle normal fetch
This removes a redundant hardware query in a hot post-traversal path
without changing behavior.1 parent 99097b6 commit d446e9c
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
739 | | - | |
| 739 | + | |
| 740 | + | |
740 | 741 | | |
741 | 742 | | |
742 | 743 | | |
| |||
768 | 769 | | |
769 | 770 | | |
770 | 771 | | |
771 | | - | |
| 772 | + | |
772 | 773 | | |
773 | 774 | | |
774 | 775 | | |
| |||
0 commit comments