summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2013-07-26 21:10:40 +0300
committerAlon Levy <alevy@redhat.com>2013-07-30 16:29:54 +0300
commitdfa00f06737ddbdc0621eee17d043da976e4cb4f (patch)
tree6fc4746188783ae3dd6b5679e5807788e55b0b20
parent2ffb6b38d5b4f3fb18c5c61437c59f0c9efbf524 (diff)
display/driver: DrvDeleteDeviceBitmap: log if pdev disabled
Alternative is to leak, and this happens regularely. Perhaps we should be keeping track and destroying these surfaces later (in case no reset happens in the middle, which destroys all off screen surfaces anyway).
-rw-r--r--xddm/display/driver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xddm/display/driver.c b/xddm/display/driver.c
index b8050de..aa4fe42 100644
--- a/xddm/display/driver.c
+++ b/xddm/display/driver.c
@@ -1464,6 +1464,11 @@ VOID APIENTRY DrvDeleteDeviceBitmap(DHSURF dhsurf)
DEBUG_PRINT((pdev, 3, "%s: %p: %d\n", __FUNCTION__, pdev, surface_id));
+ if (!pdev->enabled) {
+ DEBUG_PRINT((pdev, 3, "%s: device disabled, still destroying\n",
+ __FUNCTION__));
+ }
+
ASSERT(pdev, surface_id < pdev->n_surfaces);
DeleteDeviceBitmap(surface->u.pdev, surface_id,