aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/GLES_COMPUTE
diff options
context:
space:
mode:
authorIoan-Cristian Szabo <ioan-cristian.szabo@arm.com>2017-12-22 17:32:17 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:42:33 +0000
commit77eb21f7d9c6e34e985dfa96152fb8b6c40f9a8a (patch)
tree0b1cb2c0d7bd38bd2f7eacf41d90ea3a2b758f21 /arm_compute/core/GLES_COMPUTE
parent88b8d8c2651ee52467fb9e2029ddc9820d442228 (diff)
downloadComputeLibrary-77eb21f7d9c6e34e985dfa96152fb8b6c40f9a8a.tar.gz
Fix destruction order of singleton objects and resolve hang GLES issue.
Change-Id: I9df42d4255b371b275a74aa521406e6796ee436b Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/113901 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/core/GLES_COMPUTE')
-rw-r--r--arm_compute/core/GLES_COMPUTE/GCKernelLibrary.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/arm_compute/core/GLES_COMPUTE/GCKernelLibrary.h b/arm_compute/core/GLES_COMPUTE/GCKernelLibrary.h
index db2d979156..34bd5673b8 100644
--- a/arm_compute/core/GLES_COMPUTE/GCKernelLibrary.h
+++ b/arm_compute/core/GLES_COMPUTE/GCKernelLibrary.h
@@ -191,14 +191,13 @@ class GCKernelLibrary
private:
/** Default Constructor. */
GCKernelLibrary();
+ ~GCKernelLibrary();
public:
/** Prevent instances of this class from being copied. */
GCKernelLibrary(const GCKernelLibrary &) = delete;
/** Prevent instances of this class from being copied. */
const GCKernelLibrary &operator=(const GCKernelLibrary &) = delete;
- /** Default Destructor. */
- ~GCKernelLibrary();
static GCKernelLibrary &get();
/** Initialises the kernel library.
@@ -215,13 +214,6 @@ public:
_display = dpy;
_context = ctx;
- if(_display == EGL_NO_DISPLAY || _context == EGL_NO_CONTEXT)
- {
- setup_context();
-
- _own_context = true;
- }
-
eglMakeCurrent(_display, EGL_NO_SURFACE, EGL_NO_SURFACE, _context);
setup_dummy_fbo();
}
@@ -289,15 +281,11 @@ private:
* @return Concatenated string.
*/
std::string stringify_set(const StringSet &s) const;
- /** Set up EGL context.
- */
- void setup_context();
EGLDisplay _display; /**< Underlying EGL Display. */
EGLContext _context; /**< Underlying EGL Context. */
GLuint _frame_buffer; /**< Dummy fbo */
GLuint _tex_rt; /**< Dummy texture for render target */
- bool _own_context; /**< Self created context or not. */
std::string _shader_path; /**< Path to the shaders folder. */
mutable std::map<std::string, const GCProgram> _programs_map; /**< Map with all already loaded program data. */
mutable std::map<std::string, const GCKernel> _built_programs_map; /**< Map with all already built program data. */