summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-10-25 09:44:47 +0200
committerAlon Levy <alevy@redhat.com>2012-10-25 09:44:47 +0200
commitb41cd72c3f68fd8d8f3f443993b4e60f4e2243ac (patch)
tree8b57378e39be7c60213c48c6f0ea69283267250a
parent70505f54a4fbc4dca616f31cac6ba1fb11c6543e (diff)
place holder: destroy all surfaces on kms reset to avoid double create
-rw-r--r--src/qxl.h2
-rw-r--r--src/qxl_driver.c3
-rw-r--r--src/qxl_surface.c6
3 files changed, 10 insertions, 1 deletions
diff --git a/src/qxl.h b/src/qxl.h
index 8b4ae4b..3eb3dc5 100644
--- a/src/qxl.h
+++ b/src/qxl.h
@@ -401,6 +401,8 @@ qxl_surface_t * qxl_surface_create (surface_cache_t *qxl,
int height,
int bpp);
void
+qxl_surface_kill_all (qxl_screen_t *qxl);
+void
qxl_surface_cache_sanity_check (surface_cache_t *qxl);
void *
qxl_surface_cache_evacuate_all (surface_cache_t *qxl);
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 3b05cd4..42fab3c 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -971,7 +971,8 @@ setup_slot (qxl_screen_t *qxl, uint8_t slot_index_offset,
static void
qxl_kms_reset_and_create_mem_slots (qxl_screen_t *qxl)
{
- // nop
+ /* Destroy all surfaces */
+ qxl_surface_kill_all(qxl);
}
#endif
diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index d64c606..3ee3067 100644
--- a/src/qxl_surface.c
+++ b/src/qxl_surface.c
@@ -1648,3 +1648,9 @@ qxl_surface_put_image (qxl_surface_t *dest,
return TRUE;
}
+
+void
+qxl_surface_kill_all (qxl_screen_t *qxl)
+{
+ // TODO
+}