diff options
author | RajithaY <rajithax.yerrumsetty@intel.com> | 2017-04-25 03:31:15 -0700 |
---|---|---|
committer | Rajitha Yerrumchetty <rajithax.yerrumsetty@intel.com> | 2017-05-22 06:48:08 +0000 |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/ui/egl-context.c | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (diff) |
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to
kvmfornfv repo and make use of the updated latest qemu for the
execution of all testcase
Change-Id: I1280af507a857675c7f81d30c95255635667bdd7
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/ui/egl-context.c')
-rw-r--r-- | qemu/ui/egl-context.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/qemu/ui/egl-context.c b/qemu/ui/egl-context.c deleted file mode 100644 index 3a02b68d1..000000000 --- a/qemu/ui/egl-context.c +++ /dev/null @@ -1,35 +0,0 @@ -#include "qemu/osdep.h" -#include "qemu-common.h" -#include "ui/egl-context.h" - -QEMUGLContext qemu_egl_create_context(DisplayChangeListener *dcl, - QEMUGLParams *params) -{ - EGLContext ctx; - EGLint ctx_att[] = { - EGL_CONTEXT_CLIENT_VERSION, params->major_ver, - EGL_CONTEXT_MINOR_VERSION_KHR, params->minor_ver, - EGL_NONE - }; - - ctx = eglCreateContext(qemu_egl_display, qemu_egl_config, - eglGetCurrentContext(), ctx_att); - return ctx; -} - -void qemu_egl_destroy_context(DisplayChangeListener *dcl, QEMUGLContext ctx) -{ - eglDestroyContext(qemu_egl_display, ctx); -} - -int qemu_egl_make_context_current(DisplayChangeListener *dcl, - QEMUGLContext ctx) -{ - return eglMakeCurrent(qemu_egl_display, - EGL_NO_SURFACE, EGL_NO_SURFACE, ctx); -} - -QEMUGLContext qemu_egl_get_current_context(DisplayChangeListener *dcl) -{ - return eglGetCurrentContext(); -} |