mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
st/nine: Add debug output for lost devices
Add debug output to ease debugging. Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
5d85253dc3
commit
a52e700169
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue