]> git.tdb.fi Git - libs/gl.git/commit
Generate correct OpPhi instructions for nested ternary expressions
authorMikko Rasa <tdb@tdb.fi>
Sun, 7 Nov 2021 14:06:09 +0000 (16:06 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 7 Nov 2021 14:10:46 +0000 (16:10 +0200)
commitb125c684e2c2feb86845f051285fe666d8ebfc76
treeaa76a8608d81d02fc843e6592bcc69970ee32179
parente8369afbde298a3011a341cd2d4dfed76ecd8d3b
Generate correct OpPhi instructions for nested ternary expressions

The parent blocks must be immediate predecessors of the block containing
the OpPhi instruction.
source/glsl/spirv.cpp
source/glsl/spirvwriter.h
tests/glsl/nested_ternary.glsl [new file with mode: 0644]