[Mesa-dev] [PATCH 74/75] st/nine: Add debug output for lost devices
Axel Davy
axel.davy at ens.fr
Wed Oct 5 20:09:47 UTC 2016
From: Patrick Rudolph <siro at das-labor.org>
Add debug output to ease debugging.
Signed-off-by: Patrick Rudolph <siro at das-labor.org>
Reviewed-by: Axel Davy <axel.davy at ens.fr>
---
src/gallium/state_trackers/nine/swapchain9.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/state_trackers/nine/swapchain9.c b/src/gallium/state_trackers/nine/swapchain9.c
index d2aaa90..cade776 100644
--- a/src/gallium/state_trackers/nine/swapchain9.c
+++ b/src/gallium/state_trackers/nine/swapchain9.c
@@ -779,6 +779,7 @@ NineSwapChain9_Present( struct NineSwapChain9 *This,
if (This->base.device->ex) {
if (NineSwapChain9_GetOccluded(This)) {
+ DBG("Present is occluded. Returning S_PRESENT_OCCLUDED.\n");
return S_PRESENT_OCCLUDED;
}
} else {
@@ -787,6 +788,7 @@ NineSwapChain9_Present( struct NineSwapChain9 *This,
This->base.device->device_needs_reset = TRUE;
}
if (This->base.device->device_needs_reset) {
+ DBG("Device is lost. Returning D3DERR_DEVICELOST.\n");
return D3DERR_DEVICELOST;
}
}
--
2.10.0
More information about the mesa-dev
mailing list