summaryrefslogtreecommitdiffstats
path: root/docs/debugging.html
diff options
context:
space:
mode:
authorMathias Fröhlich <Mathias.Froehlich@gmx.net>2012-01-25 17:35:01 +0100
committerMathias Fröhlich <Mathias.Froehlich@gmx.net>2012-02-09 21:23:16 +0100
commit67007080b716c7e51039a381f407ababd68230f7 (patch)
tree07726358e0b898b5558eb9b6bc0b997c0d96cd14 /docs/debugging.html
parentea228d97f811092b9ffcb90565184a7a8f089477 (diff)
downloadexternal_mesa3d-67007080b716c7e51039a381f407ababd68230f7.zip
external_mesa3d-67007080b716c7e51039a381f407ababd68230f7.tar.gz
external_mesa3d-67007080b716c7e51039a381f407ababd68230f7.tar.bz2
glsl: Avoid excessive loop unrolling.
Avoid unrollong loops that are either nested loops or where the loop body times the unroll count is huge. The change is far from being perfect but it extends the loop unrolling decision heuristic by some additional safeguard. In particular this cuts down compilation of a shader precomputing atmospheric scattering integral tables containing two nesting levels in a loop from something way beyond some minutes (I never waited for it to finish) to some fractions of a second. This fixes piglit tests glsl-fs-unroll-explosion and glsl-vs-unroll-explosion on r600g. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Diffstat (limited to 'docs/debugging.html')
0 files changed, 0 insertions, 0 deletions