SPV: Use OpLogicalEqual/OpLogicalNotEqual for boolean type comparison.

This commit is contained in:
Rex Xu
2016-04-27 08:15:37 +08:00
parent d6abcee1fc
commit c7d3656dde
3 changed files with 8 additions and 3 deletions

View File

@@ -470,7 +470,7 @@ Linked fragment stage:
339: Label
341: 179(bvec4) Load 181(ub41)
343: 179(bvec4) Load 342(ub42)
344: 179(bvec4) IEqual 341 343
344: 179(bvec4) LogicalEqual 341 343
345: 178(bool) Any 344
Branch 340
340: Label
@@ -482,7 +482,7 @@ Linked fragment stage:
348: Label
350: 179(bvec4) Load 181(ub41)
351: 179(bvec4) Load 342(ub42)
352: 179(bvec4) INotEqual 350 351
352: 179(bvec4) LogicalNotEqual 350 351
353: 178(bool) Any 352
Branch 349
349: Label

View File

@@ -91,6 +91,6 @@ Linked vertex stage:
9(b): 7(ptr) FunctionParameter
11: Label
12: 6(bool) Load 9(b)
14: 6(bool) INotEqual 12 13
14: 6(bool) LogicalNotEqual 12 13
ReturnValue 14
FunctionEnd