]> git.tdb.fi Git - libs/gl.git/commit
Make ConstantConditionEliminator less trigger-happy
authorMikko Rasa <tdb@tdb.fi>
Wed, 10 Mar 2021 10:12:26 +0000 (12:12 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 10 Mar 2021 13:33:38 +0000 (15:33 +0200)
commit05d8360ceef28e0b36e96127e04a82dd77a5c433
treea0d1c815e3df4638d7576b85b9aecfca0d4b464e
parentcfee1ea700d860db170fd1621f3716bc47b677f8
Make ConstantConditionEliminator less trigger-happy

Since I removed the variable value tracking in 1cd0ea7 it started
optimizing conditions on specialization constants, even when they
had not been specialized yet.
source/glsl/optimize.cpp
tests/glsl/keep_spec_constants_in_module.glsl [new file with mode: 0644]
tests/glsl/specialization_constants.glsl [new file with mode: 0644]