summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/angle/src/compiler/translator/Operator.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-05-18 15:16:30 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-05-26 15:11:40 +0200
commit752497910b67b2a1a80560840ca44548d8893434 (patch)
tree541501c9abfd97c3d2fa450d2e6abb60582c4420 /src/3rdparty/angle/src/compiler/translator/Operator.cpp
parent7db527dbdd911c79f31425d099d1fc9c63e42453 (diff)
Remove ANGLE
This marks the end of EGL and OpenGL ES support on Windows. The concepts of -opengl dynamic, -opengl desktop, QT_OPENGL=software, etc. remain unchanged, with the exception of the disapperance of everything ANGLE related. CMake builds now work identically to qmake on Windows: they default to 'dynamic' OpenGL on Windows, unless -DINPUT_opengl=desktop is specified. On Windows, Qt 6 is expected to default to the "dynamic" OpenGL model by default, just like Qt 5.15. This can be changed by switching to "desktop" OpenGL, which will link to opengl32 (publicly, so other libs and applications will do so as well) and disallows using another OpenGL DLL. The "dynamic" mode is essential still because the fallback to a software rasterizer, such as the opengl32sw.dll we ship with the Qt packages, has to to work exactly like in Qt 5, the removal of ANGLE does not change this concept in any way (except of course that the middle option of using ANGLE is now gone) When it comes to the windows plugin's OpenGL blacklist feature, it works like before and accepts the ANGLE/D3D related keywords. They will then be ignored. Similarly, requesting QT_OPENGL=angle is ignored (but will show a warning). The D3D11 and DXGI configure time tests are removed: Qt 5.14 already depends on D3D 11.1 and DXGI 1.3 headers being available unconditionally on Win32 (in QRhi's D3D11 backend). No need to test for these. [ChangeLog][Windows] ANGLE is no longer included with Qt. Dynamic OpenGL builds work like before but ANGLE is no longer an option. OpenGL proper or an alternative opengl32 implementation are the two remaining options now. Attempting to set QT_OPENGL=angle or Qt::AA_UseOpenGLES will have no effect on Windows. Fixes: QTBUG-79103 Change-Id: Ia404e0d07f3fe191b27434d863c81180112ecb3b Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/3rdparty/angle/src/compiler/translator/Operator.cpp')
-rw-r--r--src/3rdparty/angle/src/compiler/translator/Operator.cpp385
1 files changed, 0 insertions, 385 deletions
diff --git a/src/3rdparty/angle/src/compiler/translator/Operator.cpp b/src/3rdparty/angle/src/compiler/translator/Operator.cpp
deleted file mode 100644
index 7a2156611a..0000000000
--- a/src/3rdparty/angle/src/compiler/translator/Operator.cpp
+++ /dev/null
@@ -1,385 +0,0 @@
-//
-// Copyright (c) 2002-2015 The ANGLE Project Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-//
-
-#include "compiler/translator/Operator.h"
-
-const char *GetOperatorString(TOperator op)
-{
- switch (op)
- {
- // Note: EOpNull and EOpCall* can't be handled here.
-
- case EOpNegative:
- return "-";
- case EOpPositive:
- return "+";
- case EOpLogicalNot:
- return "!";
- case EOpBitwiseNot:
- return "~";
-
- case EOpPostIncrement:
- return "++";
- case EOpPostDecrement:
- return "--";
- case EOpPreIncrement:
- return "++";
- case EOpPreDecrement:
- return "--";
-
- case EOpArrayLength:
- return ".length()";
-
- case EOpAdd:
- return "+";
- case EOpSub:
- return "-";
- case EOpMul:
- return "*";
- case EOpDiv:
- return "/";
- case EOpIMod:
- return "%";
-
- case EOpEqual:
- return "==";
- case EOpNotEqual:
- return "!=";
- case EOpLessThan:
- return "<";
- case EOpGreaterThan:
- return ">";
- case EOpLessThanEqual:
- return "<=";
- case EOpGreaterThanEqual:
- return ">=";
-
- case EOpEqualComponentWise:
- return "equal";
- case EOpNotEqualComponentWise:
- return "notEqual";
- case EOpLessThanComponentWise:
- return "lessThan";
- case EOpGreaterThanComponentWise:
- return "greaterThan";
- case EOpLessThanEqualComponentWise:
- return "lessThanEqual";
- case EOpGreaterThanEqualComponentWise:
- return "greaterThanEqual";
-
- case EOpComma:
- return ",";
-
- // Fall-through.
- case EOpVectorTimesScalar:
- case EOpVectorTimesMatrix:
- case EOpMatrixTimesVector:
- case EOpMatrixTimesScalar:
- case EOpMatrixTimesMatrix:
- return "*";
-
- case EOpLogicalOr:
- return "||";
- case EOpLogicalXor:
- return "^^";
- case EOpLogicalAnd:
- return "&&";
-
- case EOpBitShiftLeft:
- return "<<";
- case EOpBitShiftRight:
- return ">>";
-
- case EOpBitwiseAnd:
- return "&";
- case EOpBitwiseXor:
- return "^";
- case EOpBitwiseOr:
- return "|";
-
- // Fall-through.
- case EOpIndexDirect:
- case EOpIndexIndirect:
- return "[]";
-
- case EOpIndexDirectStruct:
- case EOpIndexDirectInterfaceBlock:
- return ".";
-
- case EOpRadians:
- return "radians";
- case EOpDegrees:
- return "degrees";
- case EOpSin:
- return "sin";
- case EOpCos:
- return "cos";
- case EOpTan:
- return "tan";
- case EOpAsin:
- return "asin";
- case EOpAcos:
- return "acos";
- case EOpAtan:
- return "atan";
-
- case EOpSinh:
- return "sinh";
- case EOpCosh:
- return "cosh";
- case EOpTanh:
- return "tanh";
- case EOpAsinh:
- return "asinh";
- case EOpAcosh:
- return "acosh";
- case EOpAtanh:
- return "atanh";
-
- case EOpPow:
- return "pow";
- case EOpExp:
- return "exp";
- case EOpLog:
- return "log";
- case EOpExp2:
- return "exp2";
- case EOpLog2:
- return "log2";
- case EOpSqrt:
- return "sqrt";
- case EOpInverseSqrt:
- return "inversesqrt";
-
- case EOpAbs:
- return "abs";
- case EOpSign:
- return "sign";
- case EOpFloor:
- return "floor";
- case EOpTrunc:
- return "trunc";
- case EOpRound:
- return "round";
- case EOpRoundEven:
- return "roundEven";
- case EOpCeil:
- return "ceil";
- case EOpFract:
- return "fract";
- case EOpMod:
- return "mod";
- case EOpModf:
- return "modf";
- case EOpMin:
- return "min";
- case EOpMax:
- return "max";
- case EOpClamp:
- return "clamp";
- case EOpMix:
- return "mix";
- case EOpStep:
- return "step";
- case EOpSmoothStep:
- return "smoothstep";
- case EOpIsNan:
- return "isnan";
- case EOpIsInf:
- return "isinf";
-
- case EOpFloatBitsToInt:
- return "floatBitsToInt";
- case EOpFloatBitsToUint:
- return "floatBitsToUint";
- case EOpIntBitsToFloat:
- return "intBitsToFloat";
- case EOpUintBitsToFloat:
- return "uintBitsToFloat";
-
- case EOpFrexp:
- return "frexp";
- case EOpLdexp:
- return "ldexp";
-
- case EOpPackSnorm2x16:
- return "packSnorm2x16";
- case EOpPackUnorm2x16:
- return "packUnorm2x16";
- case EOpPackHalf2x16:
- return "packHalf2x16";
- case EOpUnpackSnorm2x16:
- return "unpackSnorm2x16";
- case EOpUnpackUnorm2x16:
- return "unpackUnorm2x16";
- case EOpUnpackHalf2x16:
- return "unpackHalf2x16";
-
- case EOpPackUnorm4x8:
- return "packUnorm4x8";
- case EOpPackSnorm4x8:
- return "packSnorm4x8";
- case EOpUnpackUnorm4x8:
- return "unpackUnorm4x8";
- case EOpUnpackSnorm4x8:
- return "unpackSnorm4x8";
-
- case EOpLength:
- return "length";
- case EOpDistance:
- return "distance";
- case EOpDot:
- return "dot";
- case EOpCross:
- return "cross";
- case EOpNormalize:
- return "normalize";
- case EOpFaceforward:
- return "faceforward";
- case EOpReflect:
- return "reflect";
- case EOpRefract:
- return "refract";
-
- case EOpDFdx:
- return "dFdx";
- case EOpDFdy:
- return "dFdy";
- case EOpFwidth:
- return "fwidth";
-
- case EOpMulMatrixComponentWise:
- return "matrixCompMult";
- case EOpOuterProduct:
- return "outerProduct";
- case EOpTranspose:
- return "transpose";
- case EOpDeterminant:
- return "determinant";
- case EOpInverse:
- return "inverse";
-
- case EOpAny:
- return "any";
- case EOpAll:
- return "all";
- case EOpLogicalNotComponentWise:
- return "not";
-
- case EOpBitfieldExtract:
- return "bitfieldExtract";
- case EOpBitfieldInsert:
- return "bitfieldInsert";
- case EOpBitfieldReverse:
- return "bitfieldReverse";
- case EOpBitCount:
- return "bitCount";
- case EOpFindLSB:
- return "findLSB";
- case EOpFindMSB:
- return "findMSB";
- case EOpUaddCarry:
- return "uaddCarry";
- case EOpUsubBorrow:
- return "usubBorrow";
- case EOpUmulExtended:
- return "umulExtended";
- case EOpImulExtended:
- return "imulExtended";
-
- case EOpKill:
- return "kill";
- case EOpReturn:
- return "return";
- case EOpBreak:
- return "break";
- case EOpContinue:
- return "continue";
-
- case EOpAssign:
- return "=";
- case EOpInitialize:
- return "=";
- case EOpAddAssign:
- return "+=";
- case EOpSubAssign:
- return "-=";
-
- // Fall-through.
- case EOpMulAssign:
- case EOpVectorTimesMatrixAssign:
- case EOpVectorTimesScalarAssign:
- case EOpMatrixTimesScalarAssign:
- case EOpMatrixTimesMatrixAssign:
- return "*=";
-
- case EOpDivAssign:
- return "/=";
- case EOpIModAssign:
- return "%=";
- case EOpBitShiftLeftAssign:
- return "<<=";
- case EOpBitShiftRightAssign:
- return ">>=";
- case EOpBitwiseAndAssign:
- return "&=";
- case EOpBitwiseXorAssign:
- return "^=";
- case EOpBitwiseOrAssign:
- return "|=";
- case EOpBarrier:
- return "barrier";
- case EOpMemoryBarrier:
- return "memoryBarrier";
- case EOpMemoryBarrierAtomicCounter:
- return "memoryBarrierAtomicCounter";
- case EOpMemoryBarrierBuffer:
- return "memoryBarrierBuffer";
- case EOpMemoryBarrierImage:
- return "memoryBarrierImage";
- case EOpMemoryBarrierShared:
- return "memoryBarrierShared";
- case EOpGroupMemoryBarrier:
- return "groupMemoryBarrier";
-
- case EOpEmitVertex:
- return "EmitVertex";
- case EOpEndPrimitive:
- return "EndPrimitive";
- default:
- break;
- }
- return "";
-}
-
-bool IsAssignment(TOperator op)
-{
- switch (op)
- {
- case EOpPostIncrement:
- case EOpPostDecrement:
- case EOpPreIncrement:
- case EOpPreDecrement:
- case EOpAssign:
- case EOpAddAssign:
- case EOpSubAssign:
- case EOpMulAssign:
- case EOpVectorTimesMatrixAssign:
- case EOpVectorTimesScalarAssign:
- case EOpMatrixTimesScalarAssign:
- case EOpMatrixTimesMatrixAssign:
- case EOpDivAssign:
- case EOpIModAssign:
- case EOpBitShiftLeftAssign:
- case EOpBitShiftRightAssign:
- case EOpBitwiseAndAssign:
- case EOpBitwiseXorAssign:
- case EOpBitwiseOrAssign:
- return true;
- default:
- return false;
- }
-} \ No newline at end of file