/external/swiftshader/src/OpenGL/compiler/ |
D | ConstantUnion.h | 37 case EbtFloat: in cast() 43 case EbtFloat: setFConst(static_cast<float>(constant.getFConst())); break; in cast() 53 case EbtFloat: setIConst(static_cast<int>(constant.getFConst())); break; in cast() 63 case EbtFloat: setUConst(static_cast<unsigned int>(constant.getFConst())); break; in cast() 73 case EbtFloat: setBConst(constant.getFConst() != 0.0f); break; in cast() 83 case EbtFloat: setFConst(constant.getFConst()); break; in cast() 96 void setFConst(float f) {fConst = f; type = EbtFloat; } in setFConst() 112 case EbtFloat: return fConst; in getAsFloat() 148 case EbtFloat: 190 case EbtFloat: [all …]
|
D | Initialize.cpp | 27 TType *float1 = new TType(EbtFloat); in InsertBuiltInFunctions() 28 TType *float2 = new TType(EbtFloat, 2); in InsertBuiltInFunctions() 29 TType *float3 = new TType(EbtFloat, 3); in InsertBuiltInFunctions() 30 TType *float4 = new TType(EbtFloat, 4); in InsertBuiltInFunctions() 112 TType *outFloat1 = new TType(EbtFloat, EbpUndefined, EvqOut); in InsertBuiltInFunctions() 113 TType *outFloat2 = new TType(EbtFloat, EbpUndefined, EvqOut, 2); in InsertBuiltInFunctions() 114 TType *outFloat3 = new TType(EbtFloat, EbpUndefined, EvqOut, 3); in InsertBuiltInFunctions() 115 TType *outFloat4 = new TType(EbtFloat, EbpUndefined, EvqOut, 4); in InsertBuiltInFunctions() 148 TType *mat2 = new TType(EbtFloat, 2, 2); in InsertBuiltInFunctions() 149 TType *mat2x3 = new TType(EbtFloat, 2, 3); in InsertBuiltInFunctions() [all …]
|
D | Intermediate.cpp | 69 case EbtFloat: in TypeToConstructorOperator() 371 …tBasicType() == EbtStruct || left->getBasicType() == EbtBool || left->getBasicType() == EbtFloat) { in addBinaryMath() 928 if (operand->getBasicType() != EbtFloat) in promote() 1171 setType(TType(EbtFloat, right->getNominalSize(), left->getNominalSize())); in promote() 1177 setType(TType(EbtFloat, right->getSecondarySize(), right->getNominalSize())); in promote() 1183 setType(TType(EbtFloat)); in promote() 1458 if (getType().getBasicType() != EbtFloat || node->getBasicType() != EbtFloat) { in fold() 1554 case EbtFloat: in fold() 1599 if (node->getBasicType() != EbtFloat) { in fold() 1614 …tempNode = new TIntermConstantUnion(tempConstArray, TType(EbtFloat, EbpUndefined, EvqConstExpr, ge… in fold() [all …]
|
D | SymbolTable.h | 270 case EbtGenType: return new TType(EbtFloat, size); in GenType() 291 case EbtVec: return new TType(EbtFloat, size); in VecType() 359 …insertBuiltIn(level, gvec4 ? new TType(EbtFloat, 4) : rvalue, name, new TType(EbtSampler2D), ptype… 367 …insertBuiltIn(level, gvec4 ? new TType(EbtFloat, 4) : rvalue, name, new TType(EbtSampler3D), ptype… 375 …insertBuiltIn(level, gvec4 ? new TType(EbtFloat, 4) : rvalue, name, new TType(EbtSamplerCube), pty… 383 …insertBuiltIn(level, gvec4 ? new TType(EbtFloat, 4) : rvalue, name, new TType(EbtSampler2DArray), … 465 if (type.type != EbtFloat && type.type != EbtInt) in setDefaultPrecision() 480 if( type != EbtFloat && type != EbtInt ) return EbpUndefined; in getDefaultPrecision()
|
D | glslang.y | 265 …$$ = context->intermediate.addConstantUnion(unionArray, TType(EbtFloat, EbpUndefined, EvqConstExpr… 1087 $$.setBasic(EbtFloat, qual, @1); 1103 $$.setBasic(EbtFloat, qual, @1); 1108 $$.setBasic(EbtFloat, qual, @1); 1113 $$.setBasic(EbtFloat, qual, @1); 1164 $$.setBasic(EbtFloat, qual, @1); 1170 $$.setBasic(EbtFloat, qual, @1); 1176 $$.setBasic(EbtFloat, qual, @1); 1182 $$.setBasic(EbtFloat, qual, @1); 1188 $$.setBasic(EbtFloat, qual, @1); [all …]
|
D | BaseTypes.h | 49 EbtFloat, enumerator 111 case EbtFloat: return "float"; in getBasicString() 340 return type == EbtFloat || type == EbtInt || type == EbtUInt || IsSampler(type); in SupportsPrecision()
|
D | glslang_tab.cpp | 2424 …rmTypedNode) = context->intermediate.addConstantUnion(unionArray, TType(EbtFloat, EbpUndefined, Ev… in yyparse() 3841 (yyval.interm.type).setBasic(EbtFloat, qual, (yylsp[0])); in yyparse() 3877 (yyval.interm.type).setBasic(EbtFloat, qual, (yylsp[0])); in yyparse() 3887 (yyval.interm.type).setBasic(EbtFloat, qual, (yylsp[0])); in yyparse() 3897 (yyval.interm.type).setBasic(EbtFloat, qual, (yylsp[0])); in yyparse() 3998 (yyval.interm.type).setBasic(EbtFloat, qual, (yylsp[0])); in yyparse() 4009 (yyval.interm.type).setBasic(EbtFloat, qual, (yylsp[0])); in yyparse() 4020 (yyval.interm.type).setBasic(EbtFloat, qual, (yylsp[0])); in yyparse() 4031 (yyval.interm.type).setBasic(EbtFloat, qual, (yylsp[0])); in yyparse() 4042 (yyval.interm.type).setBasic(EbtFloat, qual, (yylsp[0])); in yyparse() [all …]
|
D | OutputASM.cpp | 37 case EbtFloat: in glVariableType() 180 if(type.getBasicType() == EbtFloat) in glVariablePrecision() 223 …embler) : TIntermSymbol(TSymbolTableLevel::nextUniqueId(), "tmp", TType(EbtFloat, EbpHigh, EvqTemp… in Temporary() 239 …Constant(float x, float y, float z, float w) : TIntermConstantUnion(constants, TType(EbtFloat, Ebp… in Constant() 567 case EbtFloat: in getOpcode() 576 case EbtFloat: in getOpcode() 585 case EbtFloat: in getOpcode() 595 case EbtFloat: in getOpcode() 605 case EbtFloat: in getOpcode() 615 case EbtFloat: in getOpcode() [all …]
|
D | ValidateLimitations.cpp | 87 case EbtFloat: in visitSymbol() 265 if (!IsInteger(type) && (type != EbtFloat)) { in validateForLoopInit()
|
D | Compiler.cpp | 179 floatingPoint.type = EbtFloat; in InitBuiltInSymbolTable()
|
D | SymbolTable.cpp | 58 case EbtFloat: mangledName += 'f'; break; in buildMangledName()
|
D | ParseHelper.cpp | 279 case EbtFloat: in precisionErrorCheck() 1195 TType type(EbtFloat, EbpUndefined); in getNamedVariable() 2086 publicType.type = EbtFloat; in addConstructorFunc() 2590 …indexedExpression = intermediate.addConstantUnion(unionArray, TType(EbtFloat, EbpHigh, EvqConstExp… in addIndexExpression() 3435 …getBasicType() == EbtStruct || left->getBasicType() == EbtBool || left->getBasicType() == EbtFloat) in addBinaryMathInternal() 3701 …callNode = intermediate.addConstantUnion(unionArray, TType(EbtFloat, EbpUndefined, EvqConstExpr), … in addFunctionCallOrMethod()
|
D | intermOut.cpp | 388 case EbtFloat: in visitConstantUnion()
|
/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | glslang.y | 336 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true); 1535 $$.basicType = EbtFloat; 1550 $$.basicType = EbtFloat; 1612 $$.basicType = EbtFloat; 1617 $$.basicType = EbtFloat; 1622 $$.basicType = EbtFloat; 1664 $$.basicType = EbtFloat; 1670 $$.basicType = EbtFloat; 1676 $$.basicType = EbtFloat; 1891 $$.basicType = EbtFloat; [all …]
|
D | Intermediate.cpp | 319 case EOpConstructFloat: newType = EbtFloat; break; in addUnaryMath() 511 case EbtFloat: newOp = EOpConvFloatToDouble; break; in createConversion() 519 case EbtFloat: in createConversion() 545 case EbtFloat: newOp = EOpConvFloatToFloat16; break; in createConversion() 561 case EbtFloat: newOp = EOpConvFloatToBool; break; in createConversion() 580 case EbtFloat: newOp = EOpConvFloatToInt8; break; in createConversion() 597 case EbtFloat: newOp = EOpConvFloatToUint8; break; in createConversion() 615 case EbtFloat: newOp = EOpConvFloatToInt16; break; in createConversion() 632 case EbtFloat: newOp = EOpConvFloatToUint16; break; in createConversion() 648 case EbtFloat: newOp = EOpConvFloatToInt; break; in createConversion() [all …]
|
D | glslang_tab.cpp | 4225 …pedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloat, (yyvsp[0].lex).l… in yyparse() 6167 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6197 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6324 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6334 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6344 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6421 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6432 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6443 (yyval.interm.type).basicType = EbtFloat; in yyparse() 6843 (yyval.interm.type).basicType = EbtFloat; in yyparse() [all …]
|
D | reflection.cpp | 390 case EbtFloat: in mapSamplerToGlType() 492 case EbtFloat: in mapSamplerToGlType() 593 case EbtFloat: return GL_FLOAT_VEC2 + offset; in mapToGlType() 609 case EbtFloat: in mapToGlType() 689 case EbtFloat: return GL_FLOAT; in mapToGlType()
|
D | Constant.cpp | 181 case EbtFloat: in fold() 531 case EbtFloat: newConstArray[i].setDConst(-unionArray[i].getDConst()); break; in fold() 1073 case EbtFloat: in fold() 1107 case EbtFloat: in fold() 1141 case EbtFloat: in fold()
|
D | SymbolTable.cpp | 63 case EbtFloat: mangledName += 'f'; break; in buildMangledName()
|
D | ParseHelper.cpp | 127 sampler.set(EbtFloat, Esd2D); in setPrecisionDefaults() 129 sampler.set(EbtFloat, EsdCube); in setPrecisionDefaults() 131 sampler.set(EbtFloat, Esd2D); in setPrecisionDefaults() 147 defaultPrecision[EbtFloat] = EpqHigh; in setPrecisionDefaults() 384 return intermediate.addConstantUnion(0.0, EbtFloat, loc); in handleBracketDereference() 1179 result = intermediate.addConstantUnion(0.0, EbtFloat, loc); in handleFunctionCall() 2239 TType errorType(EbtFloat); in handleConstructorCall() 2318 TVariable* fakeVariable = new TVariable(&symbol->getName(), TType(EbtFloat)); in variableCheck() 3397 if (basicType == EbtInt || basicType == EbtFloat) { in setDefaultPrecision() 3455 …if (baseType == EbtFloat || baseType == EbtUint || baseType == EbtInt || baseType == EbtSampler ||… in precisionQualifierCheck() [all …]
|
D | Initialize.cpp | 86 prefixes[EbtFloat] = ""; in TBuiltIns() 6273 TBasicType bTypes[4] = { EbtFloat, EbtFloat16, EbtInt, EbtUint }; in add2ndGenerationSamplingImaging() 6275 TBasicType bTypes[3] = { EbtFloat, EbtInt, EbtUint }; in add2ndGenerationSamplingImaging() 6839 … TBasicType t = fetch ? EbtInt : (f16TexAddr ? EbtFloat16 : EbtFloat); in add2ndGenerationSamplingImaging() 6854 TBasicType t = fetch ? EbtInt : EbtFloat; in add2ndGenerationSamplingImaging() 7016 if (version < 140 && sampler.dim == EsdRect && sampler.type != EbtFloat) in add2ndGenerationSamplingImaging() 9486 TType fragData(EbtFloat, EvqFragColor, pq, 4); in add2ndGenerationSamplingImaging()
|
/external/deqp-deps/glslang/hlsl/ |
D | hlslGrammar.cpp | 815 basicType = EbtFloat; in acceptTemplateVecMatBasicType() 850 new(&type) TType(EbtFloat, EvqTemporary, 4); in acceptVectorTemplateType() 902 new(&type) TType(EbtFloat, EvqTemporary, 0, 4, 4); in acceptMatrixTemplateType() 1124 TType subpassType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptSubpassInputType() 1135 case EbtFloat: in acceptSubpassInputType() 1178 TType txType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptSamplerTypeDX9() 1302 TType txType(EbtFloat, EvqUniform, 4); // default type is float4 in acceptTextureType() 1316 case EbtFloat: in acceptTextureType() 1418 const TBasicType min16float_bt = enable16BitTypes ? EbtFloat16 : EbtFloat; in acceptType() 1419 const TBasicType min10float_bt = enable16BitTypes ? EbtFloat16 : EbtFloat; in acceptType() [all …]
|
D | hlslParseHelper.cpp | 205 case EbtFloat: return selectFormat(ElfR32f, ElfRg32f, ElfRgba32f); in getLayoutFromTxType() 854 result = intermediate.addConstantUnion(0.0, EbtFloat, loc); in handleBracketDereference() 2521 TType clipCullType(EbtFloat, clipCullNode->getType().getQualifier().storage, 1); in assignClipCullDistance() 2560 assert(clipCullSym->getType().getBasicType() == EbtFloat); in assignClipCullDistance() 3631 TType retType(EbtFloat, EvqConst, 2); in getSamplePosArray() 4114 … txsample->getSequence().push_back(intermediate.addConstantUnion(0.0, EbtFloat, loc, true)); in decomposeSampleMethods() 4418 lodComponentIdx->setType(TType(EbtFloat, EvqTemporary, 1)); in decomposeSampleMethods() 4466 index[count++]->setType(TType(EbtFloat, EvqTemporary, 2)); in decomposeSampleMethods() 4484 compoundStatement->setType(TType(EbtFloat, EvqTemporary, 2)); in decomposeSampleMethods() 4781 … TIntermTyped* base = intermediate.addConstantUnion(0.301029995663981f, EbtFloat, loc, true); in decomposeIntrinsic() [all …]
|
/external/deqp-deps/glslang/glslang/Include/ |
D | BaseTypes.h | 48 EbtFloat, enumerator 508 case EbtFloat: in isTypeFloat()
|
D | Types.h | 208 case EbtFloat: break; in getString() 1506 …virtual bool isFloatingDomain() const { return basicType == EbtFloat || basicType == EbtDouble || … in isFloatingDomain() 1589 case EbtFloat: in containsNonOpaque() 1706 case EbtFloat: return "float"; in getBasicString()
|