e3b520049675f78065eccbc25c001ea77861c129 |
|
29-Jan-2012 |
Kenneth Graunke <kenneth@whitecape.org> |
glsl: Rename class variable_entry to ir_variable_refcount_entry. Exporting a publicly visible class with a generic name like "variable_entry" via ir_variable_refcount.h is kind of mean. Many IR transformers would like to define their own "variable_entry" class. If they accidentally include this header, the compiler/linker may get confused and try to instantiate the wrong variable_entry class, leading to bizarre runtime crashes. The hope is that renaming this one will allow .cpp files to safely declare and use their own file-scope "variable_entry" classes. This avoids crashes caused by converting src/glsl to automake. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-and-tested-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/glsl/ir_variable_refcount.cpp
|
2eb8b2d3bb68cef1d3fc431debe1b18f6c017aeb |
|
24-Aug-2010 |
Brian Paul <brianp@vmware.com> |
glsl2: move constructor into .cpp file to work around compiler bug 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.
/external/mesa3d/src/glsl/ir_variable_refcount.cpp
|
c8b26c63fdad84d311748a24972146b6a371ab31 |
|
24-Aug-2010 |
Vinson Lee <vlee@vmware.com> |
glsl: Add assert to check variable_entry referenced_count after construction. 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.
/external/mesa3d/src/glsl/ir_variable_refcount.cpp
|
d72edc4dddb6dd7908ef0d3f2cec353b028bf6c5 |
|
31-Jul-2010 |
Eric Anholt <eric@anholt.net> |
glsl2: Factor out the variable refcounting part of ir_dead_code.cpp.
/external/mesa3d/src/glsl/ir_variable_refcount.cpp
|