aboutsummaryrefslogtreecommitdiffstats
path: root/doxygen/core_subset.doxy
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2012-08-26 12:11:50 -0700
committerKenneth Graunke <[email protected]>2012-08-27 14:23:40 -0700
commit9ef710575b914ddfc8e9a162d98ad554c1c217f7 (patch)
tree078a6d2b306e4dc61031378cd7603c2852776f41 /doxygen/core_subset.doxy
parent88b3850c272636e0385f2111b4bc56724febb45b (diff)
i965: Reenable the fragment shader precompile.
Precompiling the shader at link time often allows us to avoid compiling it at the first use. This moves the expensive compilation and optimization process to game or level load time, rather than at draw time, where we really can't avoid any cycles and don't want to risk stalling the GPU. The downside is that we have to guess the non-orthagonal state the program will have set when it draws with the shader. Previously, we guessed wrong for nearly every shader, so it wasn't useful. With the recent SamplerUnits rework and this series, we've either eliminated state or made smarter guesses, and usually get it right now. In the L4D2 time demo, I now have 39 fragment shader recompiles and no vertex shader recompiles. Before this series and the SamplerUnits rework, I had 206 fragment shader recompiles and 192 vertex shader recompiles. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'doxygen/core_subset.doxy')
0 files changed, 0 insertions, 0 deletions