diff options
author | Alon Levy <alevy@redhat.com> | 2013-07-26 21:10:40 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2013-07-30 16:29:54 +0300 |
commit | dfa00f06737ddbdc0621eee17d043da976e4cb4f (patch) | |
tree | 6fc4746188783ae3dd6b5679e5807788e55b0b20 | |
parent | 2ffb6b38d5b4f3fb18c5c61437c59f0c9efbf524 (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.c | 5 |
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, |