An Optimizing Compiler for Automatic Shader Bounding
Petrik Clarberg, Robert Toth, Jon Hasselgren, Tomas Akenine-Möller
Rendering Techniques (EGSR'10), 2010, pp. 1259--1268.
Abstract: Programmable shading provides artistic control over materials and geometry, but the black box nature of shaders makes some rendering optimizations difficult to apply. In many cases, it is desirable to compute bounds of shaders in order to speed up rendering. A bounding shader can be automatically derived from the original shader by a compiler using interval analysis, but creating optimized interval arithmetic code is non-trivial. A key insight in this paper is that shaders contain metadata that can be automatically extracted by the compiler using data flow analysis. We present a number of domain-specific optimizations that make the generated code faster, while computing the same bounds as before. This enables a wider use and opens up possibilities for more efficient rendering. Our results show that on average 42-44% of the shader instructions can be eliminated for a common use case: single-sided bounding shaders used in lightcuts and importance sampling.
Article URL: http://diglib.eg.org/EG/CGF/volume29/issue4/v29i4pp1259-1268.pdf
BibTeX format:
@inproceedings{Clarberg:2010:AOC,
  author = {Petrik Clarberg and Robert Toth and Jon Hasselgren and Tomas Akenine-Möller},
  title = {An Optimizing Compiler for Automatic Shader Bounding},
  booktitle = {Rendering Techniques (EGSR'10)},
  pages = {1259--1268},
  year = {2010},
}
Search for more articles by Petrik Clarberg.
Search for more articles by Robert Toth.
Search for more articles by Jon Hasselgren.
Search for more articles by Tomas Akenine-Möller.

Return to the search page.


graphbib: Powered by "bibsql" and "SQLite3."