mesa/src
Kenneth Graunke 0405bd08ca glsl: Don't trust loop analysis in the presence of function calls.
Function calls may have side effects that alter variables used inside
the loop.  In the fragment shader, they may even terminate the shader.
This means our analysis about loop-constant or induction variables may
be completely wrong.

In general it's impossible to determine whether they actually do or not
(due to the halting problem), so we'd need to perform conservative
static analysis.  For now, it's not worth the complexity: most functions
will be inlined, at which point we can unroll them successfully.

Fixes Piglit tests:
- shaders/glsl-fs-unroll-out-param
- shaders/glsl-fs-unroll-side-effect

NOTE: This is a candidate for release branches.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-04-02 14:15:19 -07:00
..
egl egl_dri2: use gbm_surface as the native window type in drm platform 2012-03-28 22:14:34 -04:00
gallium r600g: unduplicate code for PS partial flush 2012-04-01 23:57:50 +02:00
gbm gbm: Create hooks for dri2_loader_extension in dri backend 2012-03-28 22:14:34 -04:00
getopt
glsl glsl: Don't trust loop analysis in the presence of function calls. 2012-04-02 14:15:19 -07:00
glu scons: Add Haiku build support 2012-01-17 20:01:14 +00:00
glx Use -no-undefined libtool flag in src/glx/Makefile.am 2012-03-28 13:03:52 +01:00
mapi shared-glapi: Include from builddir 2012-03-29 09:25:15 -04:00
mesa i965/aub: Dump a final bitmap from DestroyContext. 2012-04-02 13:47:53 -07:00
Makefile
SConscript scons: Add Haiku build support 2012-01-17 20:01:14 +00:00