summaryrefslogtreecommitdiff
path: root/src/glsl/ir_variable_refcount.cpp
AgeCommit message (Collapse)Author
2010-08-24glsl2: move constructor into .cpp file to work around compiler bugBrian Paul
Fixes fd.o bug 29770 The refcount==0 assertion only failed on some systems. One example being 32-bit Linux with gcc 4.4.4.
2010-08-24glsl: Add assert to check variable_entry referenced_count after construction.Vinson Lee
A variable_entry after construction should have its referenced_count member set to 0. However, occassionally this isn't the case and entry->referenced_count has been observed to be a garbage value. This leads to crashes of several tests in the Piglit test suite. This patch adds an assert to check that a variable_entry instance has its referenced_count member initialized to 0 after construction.
2010-07-31glsl2: Factor out the variable refcounting part of ir_dead_code.cpp.Eric Anholt