INTEL_shader_integer_functions2: Add compiler front-end support
The changes to glslang/glslang/MachineIndependent/ParseHelper.cpp exist purely to prevent even more instances of "warning: enumeration value ‘EOp...’ not handled in switch" v2: Remove 8-bit types. Overzealous copy-and-paste led to adding support for a bunch of types that the extension doesn't actually enable. v3: Update expected test results file. Just changing an expected results file to make a test pass seems sketchy to me, but I'm not sure what else to do. v4: Add missing entry for EOpAbsDifference in TOutputTraverser::visitBinary. Noticed by JohnK.
This commit is contained in:
parent
e0da415dff
commit
fbcdcac254
4 changed files with 215 additions and 3 deletions
|
|
@ -213,6 +213,13 @@ bool TOutputTraverser::visitBinary(TVisit /* visit */, TIntermBinary* node)
|
|||
case EOpLogicalXor: out.debug << "logical-xor"; break;
|
||||
case EOpLogicalAnd: out.debug << "logical-and"; break;
|
||||
|
||||
case EOpAbsDifference: out.debug << "absoluteDifference"; break;
|
||||
case EOpAddSaturate: out.debug << "addSaturate"; break;
|
||||
case EOpSubSaturate: out.debug << "subtractSaturate"; break;
|
||||
case EOpAverage: out.debug << "average"; break;
|
||||
case EOpAverageRounded: out.debug << "averageRounded"; break;
|
||||
case EOpMul32x16: out.debug << "multiply32x16"; break;
|
||||
|
||||
default: out.debug << "<unknown op>";
|
||||
}
|
||||
|
||||
|
|
@ -557,6 +564,9 @@ bool TOutputTraverser::visitUnary(TVisit /* visit */, TIntermUnary* node)
|
|||
case EOpFindLSB: out.debug << "findLSB"; break;
|
||||
case EOpFindMSB: out.debug << "findMSB"; break;
|
||||
|
||||
case EOpCountLeadingZeros: out.debug << "countLeadingZeros"; break;
|
||||
case EOpCountTrailingZeros: out.debug << "countTrailingZeros"; break;
|
||||
|
||||
case EOpNoise: out.debug << "noise"; break;
|
||||
|
||||
case EOpBallot: out.debug << "ballot"; break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue