Add new spice-gl stubs API

Enterprise / Virtualization / SPICE - Marc-André Lureau [gmail.com] - 9 February 2016 08:01 UTC

- spice_qxl_gl_scanout() to take the current scanout

- spice_qxl_gl_draw_async() to draw the scanout, is like other Spice async functions, it takes a cookie and will return in the QXLInterface.async_complete()

Two new fields are also added to QXLState, in order to save the current scanout, and the pending async.

A scanout can't be updated if there are pending draw atm. Discarding outdated draws is left as a future improvement to allow updating the scanout without waiting for draw async to be done.

ebf461b Add new spice-gl stubs API
server/red-dispatcher.c | 35 +++++++++++++++++++++++++++++++++++
server/reds.c | 1 +
server/reds.h | 2 ++
server/spice-qxl.h | 10 ++++++++++
server/spice-server.syms | 6 ++++++
5 files changed, 54 insertions(+)

Upstream: cgit.freedesktop.org


  • Share