summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/angle/src/libANGLE/renderer/ContextImpl.h
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/libANGLE/renderer/ContextImpl.h
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/libANGLE/renderer/ContextImpl.h')
-rw-r--r--src/3rdparty/angle/src/libANGLE/renderer/ContextImpl.h186
1 files changed, 0 insertions, 186 deletions
diff --git a/src/3rdparty/angle/src/libANGLE/renderer/ContextImpl.h b/src/3rdparty/angle/src/libANGLE/renderer/ContextImpl.h
deleted file mode 100644
index 7ba4b5ad2d..0000000000
--- a/src/3rdparty/angle/src/libANGLE/renderer/ContextImpl.h
+++ /dev/null
@@ -1,186 +0,0 @@
-//
-// Copyright 2016 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.
-//
-// ContextImpl:
-// Implementation-specific functionality associated with a GL Context.
-//
-
-#ifndef LIBANGLE_RENDERER_CONTEXTIMPL_H_
-#define LIBANGLE_RENDERER_CONTEXTIMPL_H_
-
-#include <vector>
-
-#include "common/angleutils.h"
-#include "libANGLE/ContextState.h"
-#include "libANGLE/renderer/GLImplFactory.h"
-
-namespace gl
-{
-class MemoryProgramCache;
-class Path;
-struct Workarounds;
-}
-
-namespace rx
-{
-class ContextImpl : public GLImplFactory
-{
- public:
- ContextImpl(const gl::ContextState &state);
- ~ContextImpl() override;
-
- virtual void onDestroy(const gl::Context *context) {}
-
- virtual gl::Error initialize() = 0;
-
- // Flush and finish.
- virtual gl::Error flush(const gl::Context *context) = 0;
- virtual gl::Error finish(const gl::Context *context) = 0;
-
- // Drawing methods.
- virtual gl::Error drawArrays(const gl::Context *context,
- GLenum mode,
- GLint first,
- GLsizei count) = 0;
- virtual gl::Error drawArraysInstanced(const gl::Context *context,
- GLenum mode,
- GLint first,
- GLsizei count,
- GLsizei instanceCount) = 0;
-
- virtual gl::Error drawElements(const gl::Context *context,
- GLenum mode,
- GLsizei count,
- GLenum type,
- const void *indices) = 0;
- virtual gl::Error drawElementsInstanced(const gl::Context *context,
- GLenum mode,
- GLsizei count,
- GLenum type,
- const void *indices,
- GLsizei instances) = 0;
- virtual gl::Error drawRangeElements(const gl::Context *context,
- GLenum mode,
- GLuint start,
- GLuint end,
- GLsizei count,
- GLenum type,
- const void *indices) = 0;
-
- virtual gl::Error drawArraysIndirect(const gl::Context *context,
- GLenum mode,
- const void *indirect) = 0;
- virtual gl::Error drawElementsIndirect(const gl::Context *context,
- GLenum mode,
- GLenum type,
- const void *indirect) = 0;
-
- // CHROMIUM_path_rendering path drawing methods.
- virtual void stencilFillPath(const gl::Path *path, GLenum fillMode, GLuint mask);
- virtual void stencilStrokePath(const gl::Path *path, GLint reference, GLuint mask);
- virtual void coverFillPath(const gl::Path *path, GLenum coverMode);
- virtual void coverStrokePath(const gl::Path *path, GLenum coverMode);
- virtual void stencilThenCoverFillPath(const gl::Path *path,
- GLenum fillMode,
- GLuint mask,
- GLenum coverMode);
-
- virtual void stencilThenCoverStrokePath(const gl::Path *path,
- GLint reference,
- GLuint mask,
- GLenum coverMode);
-
- virtual void coverFillPathInstanced(const std::vector<gl::Path *> &paths,
- GLenum coverMode,
- GLenum transformType,
- const GLfloat *transformValues);
- virtual void coverStrokePathInstanced(const std::vector<gl::Path *> &paths,
- GLenum coverMode,
- GLenum transformType,
- const GLfloat *transformValues);
- virtual void stencilFillPathInstanced(const std::vector<gl::Path *> &paths,
- GLenum fillMode,
- GLuint mask,
- GLenum transformType,
- const GLfloat *transformValues);
- virtual void stencilStrokePathInstanced(const std::vector<gl::Path *> &paths,
- GLint reference,
- GLuint mask,
- GLenum transformType,
- const GLfloat *transformValues);
- virtual void stencilThenCoverFillPathInstanced(const std::vector<gl::Path *> &paths,
- GLenum coverMode,
- GLenum fillMode,
- GLuint mask,
- GLenum transformType,
- const GLfloat *transformValues);
- virtual void stencilThenCoverStrokePathInstanced(const std::vector<gl::Path *> &paths,
- GLenum coverMode,
- GLint reference,
- GLuint mask,
- GLenum transformType,
- const GLfloat *transformValues);
-
- // Device loss
- virtual GLenum getResetStatus() = 0;
-
- // Vendor and description strings.
- virtual std::string getVendorString() const = 0;
- virtual std::string getRendererDescription() const = 0;
-
- // EXT_debug_marker
- virtual void insertEventMarker(GLsizei length, const char *marker) = 0;
- virtual void pushGroupMarker(GLsizei length, const char *marker) = 0;
- virtual void popGroupMarker() = 0;
-
- // KHR_debug
- virtual void pushDebugGroup(GLenum source, GLuint id, GLsizei length, const char *message) = 0;
- virtual void popDebugGroup() = 0;
-
- // State sync with dirty bits.
- virtual void syncState(const gl::Context *context, const gl::State::DirtyBits &dirtyBits) = 0;
-
- // Disjoint timer queries
- virtual GLint getGPUDisjoint() = 0;
- virtual GLint64 getTimestamp() = 0;
-
- // Context switching
- virtual void onMakeCurrent(const gl::Context *context) = 0;
-
- // Native capabilities, unmodified by gl::Context.
- virtual const gl::Caps &getNativeCaps() const = 0;
- virtual const gl::TextureCapsMap &getNativeTextureCaps() const = 0;
- virtual const gl::Extensions &getNativeExtensions() const = 0;
- virtual const gl::Limitations &getNativeLimitations() const = 0;
-
- virtual void applyNativeWorkarounds(gl::Workarounds *workarounds) const {}
-
- virtual gl::Error dispatchCompute(const gl::Context *context,
- GLuint numGroupsX,
- GLuint numGroupsY,
- GLuint numGroupsZ) = 0;
-
- const gl::ContextState &getContextState() { return mState; }
- int getClientMajorVersion() const { return mState.getClientMajorVersion(); }
- int getClientMinorVersion() const { return mState.getClientMinorVersion(); }
- const gl::State &getGLState() const { return mState.getState(); }
- const gl::Caps &getCaps() const { return mState.getCaps(); }
- const gl::TextureCapsMap &getTextureCaps() const { return mState.getTextureCaps(); }
- const gl::Extensions &getExtensions() const { return mState.getExtensions(); }
- const gl::Limitations &getLimitations() const { return mState.getLimitations(); }
-
- // A common GL driver behaviour is to trigger dynamic shader recompilation on a draw call,
- // based on the current render states. We store a mutable pointer to the program cache so
- // on draw calls we can store the refreshed shaders in the cache.
- void setMemoryProgramCache(gl::MemoryProgramCache *memoryProgramCache);
-
- protected:
- const gl::ContextState &mState;
- gl::MemoryProgramCache *mMemoryProgramCache;
-};
-
-} // namespace rx
-
-#endif // LIBANGLE_RENDERER_CONTEXTIMPL_H_