diff options
author | Vivek Kasireddy <vivek.kasireddy@intel.com> | 2021-09-14 14:18:34 -0700 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2021-09-15 08:41:59 +0200 |
commit | 121abaf3e68d620f7c4c1d16875de4a4b92fa8f8 (patch) | |
tree | 3259d6a1574c5ae474f1b379aa86b69ecfcb6ae1 /include/ui | |
parent | 89faed62af70283d5b6d38a58a1cf40535242c51 (diff) | |
download | qemu-121abaf3e68d620f7c4c1d16875de4a4b92fa8f8.zip qemu-121abaf3e68d620f7c4c1d16875de4a4b92fa8f8.tar.gz qemu-121abaf3e68d620f7c4c1d16875de4a4b92fa8f8.tar.bz2 |
ui/egl: Add egl helpers to help with synchronization
These egl helpers would be used for creating and waiting on
a sync object.
Cc: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Message-Id: <20210914211837.3229977-3-vivek.kasireddy@intel.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/console.h | 2 | ||||
-rw-r--r-- | include/ui/egl-helpers.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/ui/console.h b/include/ui/console.h index 3be2149..45ec129 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -168,6 +168,8 @@ typedef struct QemuDmaBuf { uint64_t modifier; uint32_t texture; bool y0_top; + void *sync; + int fence_fd; } QemuDmaBuf; typedef struct DisplayState DisplayState; diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h index f1bf8f9..2c3ba92 100644 --- a/include/ui/egl-helpers.h +++ b/include/ui/egl-helpers.h @@ -45,6 +45,8 @@ int egl_get_fd_for_texture(uint32_t tex_id, EGLint *stride, EGLint *fourcc, void egl_dmabuf_import_texture(QemuDmaBuf *dmabuf); void egl_dmabuf_release_texture(QemuDmaBuf *dmabuf); +void egl_dmabuf_create_sync(QemuDmaBuf *dmabuf); +void egl_dmabuf_create_fence(QemuDmaBuf *dmabuf); #endif |