glsl: Don't mark assignment temporaries as read-only
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 23 Dec 2011 18:59:38 +0000 (10:59 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 6 Jan 2012 22:32:50 +0000 (14:32 -0800)
commit1f125374e73d1718cd54c946826c76b09998c055
treeeec2e3222c833f2f71bb2cf4a1955fe05194626c
parent208b5b113faab324854d457c3ad4abf05cafedd1
glsl: Don't mark assignment temporaries as read-only

The various l-value errors this was designed to catch are now caught
by other means.  Marking the temporaries as read-only now just
prevents sensible error messages from being generated.  It's

0:0(0): error: function parameter 'out p' references the read-only variable '_post_incdec_tmp'

versus

0:13(5): error: function parameter 'out p' references a post-decrement operation

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ast_to_hir.cpp