I got bit (again) by the fact that if you write a shader with uninitialized values your images can have garbage in them. I tried to find where to fix this in the source code and gave it my best shot in ri/shader.cpp. I made it so that even that if no default value for a variable is specified a "default default" value is used in CProgrammableShaderInstance::prepare(). But either it doesn't work or I didn't fix the whole problem. I'm using valgrind to detect uninitialized values.
Sorry. The earlier post was a mistake.
I got bit (again) by the fact that if you write a shader with uninitialized values your images can have garbage in them. I tried to find where to fix this in the source code and gave it my best shot in ri/shader.cpp. I made it so that even that if no default value for a variable is specified a "default default" value is used in CProgrammableShaderInstance::prepare(). But either it doesn't work or I didn't fix the whole problem. I'm using valgrind to detect uninitialized values.
http://www1.cs.columbia.edu/~ktegan/download/pixie_default_val.diff
Okan, or anyone else, any ideas what I'm missing?
Kevin