Commit 84bab56
Simplified OptiX intersection programs (#1563)
The OptiX intersection programs for various shapes contained an
unnecessary world <-> object space transformation. This step was not
only unnecessary, but it generates a shockingly large amount of code
related to OptiX motion transforms and all sorts of features that we are
to using at all. All of this logic consumes registers, which has a
negative impact on occupancy of generated kernels.
This commit incorporates a small change to the `get_ray()` function and
adapts the other intersection programs, which brings `optix_rt.ptx` to
14% of its current size.
* SDFGrid: Consider ray's mint (#1564)
* updated PTX code
---------
Co-authored-by: Lovro Nuic <12744626+lnuic@users.noreply.github.com>1 parent 71276ab commit 84bab56
File tree
7 files changed
+941
-7718
lines changed- include/mitsuba/render/optix
- resources/ptx
- src/shapes/optix
7 files changed
+941
-7718
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
0 commit comments