OSDN Git Service

glsl: Remove const decoration from inlined function parameters
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 8 Oct 2010 21:29:11 +0000 (14:29 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 8 Oct 2010 21:29:11 +0000 (14:29 -0700)
commit0ea8b993324365769ed0aa2f7bab2dd9281b4924
treebf2b44180e2e2d0a79dc0e86f14ad3a1d5b9b1cc
parentdc459f87566576d06310f6ff6b0bcb2080653f3e
glsl: Remove const decoration from inlined function parameters

The constness of the function parameter gets inlined with the rest of
the function.  However, there is also an assignment to the parameter.
If this occurs inside a loop the loop analysis code will get confused
by the assignment to a read-only variable.

Fixes bugzilla #30552.

NOTE: this is a candidate for the 7.9 branch.
src/glsl/ir_function_inlining.cpp