projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d85253
)
st/nine: Add debug output for lost devices
author
Patrick Rudolph
<siro@das-labor.org>
Wed, 28 Sep 2016 18:11:34 +0000
(20:11 +0200)
committer
Axel Davy
<axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:51 +0000
(23:43 +0200)
Add debug output to ease debugging.
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/swapchain9.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/nine/swapchain9.c
b/src/gallium/state_trackers/nine/swapchain9.c
index 03bdcd33efe4baab00d981cc65ef1adfc58eb2a0..f571416ec745bc047700f3368b82690a602279bc 100644
(file)
--- a/
src/gallium/state_trackers/nine/swapchain9.c
+++ b/
src/gallium/state_trackers/nine/swapchain9.c
@@
-781,6
+781,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 {
@@
-789,6
+790,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;
}
}