diff options
author | Alon Levy <alevy@redhat.com> | 2011-07-07 17:25:19 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-07-20 16:00:19 +0300 |
commit | 2a4d97fb780cf3ce2d9060751d0bec2fdc9800a9 (patch) | |
tree | 72885e849ea35eb95a7e10d2ada5aa49952bebe5 /server/spice.h | |
parent | b26f0532c170068e91e4946592eab2fd9d6cbae5 (diff) | |
download | spice-2a4d97fb780cf3ce2d9060751d0bec2fdc9800a9.tar.gz spice-2a4d97fb780cf3ce2d9060751d0bec2fdc9800a9.tar.xz spice-2a4d97fb780cf3ce2d9060751d0bec2fdc9800a9.zip |
server: add QXLWorker.flush_surfaces_async for S3/S4 support
This does the following, all to remove any referenced memory on the pci bars:
flush_all_qxl_commands(worker);
flush_all_surfaces(worker);
red_wait_outgoing_item((RedChannel *)worker->display_channel);
red_wait_outgoing_item((RedChannel *)worker->cursor_channel);
The added api is specifically async, i.e. it calls async_complete
when done.
Diffstat (limited to 'server/spice.h')
-rw-r--r-- | server/spice.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/spice.h b/server/spice.h index 89872ea6..549dd0c5 100644 --- a/server/spice.h +++ b/server/spice.h @@ -153,6 +153,8 @@ void spice_qxl_destroy_primary_surface_async(QXLInstance *instance, uint32_t sur void spice_qxl_create_primary_surface_async(QXLInstance *instance, uint32_t surface_id, QXLDevSurfaceCreate *surface, uint64_t cookie); void spice_qxl_destroy_surface_async(QXLInstance *instance, uint32_t surface_id, uint64_t cookie); +/* suspend and resolution change on windows drivers */ +void spice_qxl_flush_surfaces_async(QXLInstance *instance, uint64_t cookie); typedef struct QXLDrawArea { uint8_t *buf; |