render / rpms / qemu

Forked from rpms/qemu 10 months ago
Clone

Blame 0024-qxl-support-QXL_IO_DESTROY_ALL_SURFACES.patch

Justin M. Forbes a81953
From c9f9044475d392e55de4dd6e343477ce1a57eabc Mon Sep 17 00:00:00 2001
Justin M. Forbes a81953
From: Gerd Hoffmann <kraxel@redhat.com>
Justin M. Forbes a81953
Date: Thu, 8 Jul 2010 17:51:09 +0200
Justin M. Forbes a81953
Subject: [PATCH 24/39] qxl: support QXL_IO_DESTROY_ALL_SURFACES
Justin M. Forbes a81953
Justin M. Forbes a81953
---
Justin M. Forbes a81953
 hw/qxl.c |    3 +++
Justin M. Forbes a81953
 1 files changed, 3 insertions(+), 0 deletions(-)
Justin M. Forbes a81953
Justin M. Forbes a81953
diff --git a/hw/qxl.c b/hw/qxl.c
Justin M. Forbes a81953
index 2a0ea4e..7bd4467 100644
Justin M. Forbes a81953
--- a/hw/qxl.c
Justin M. Forbes a81953
+++ b/hw/qxl.c
Justin M. Forbes a81953
@@ -930,6 +930,9 @@ static void ioport_write(void *opaque, uint32_t addr, uint32_t val)
Justin M. Forbes a81953
     case QXL_IO_DESTROY_SURFACE_WAIT:
Justin M. Forbes a81953
         d->ssd.worker->destroy_surface_wait(d->ssd.worker, val);
Justin M. Forbes a81953
         break;
Justin M. Forbes a81953
+    case QXL_IO_DESTROY_ALL_SURFACES:
Justin M. Forbes a81953
+        d->ssd.worker->destroy_surfaces(d->ssd.worker);
Justin M. Forbes a81953
+        break;
Justin M. Forbes a81953
     default:
Justin M. Forbes a81953
         fprintf(stderr, "%s: ioport=0x%x, abort()\n", __FUNCTION__, io_port);
Justin M. Forbes a81953
         abort();
Justin M. Forbes a81953
-- 
Justin M. Forbes a81953
1.7.2.3
Justin M. Forbes a81953