Re: [Spice-devel] [PATCH qxl-wddm-dod v2 2/2] Call "DxgkCbAcquirePostDisplayOwnership" when changing Power State to D0

2016-10-14 Thread Frediano Ziglio
> 
> Starting with Windows Display Driver Model (WDDM) 1.2, if the
> DevicePowerState parameter is set to PowerDeviceD0, the display miniport
> driver should call DxgkCbAcquirePostDisplayOwnership to query the
> information about the display mode.
> 
> This patch fixies this bug:
> https://bugzilla.redhat.com/show_bug.cgi?id=1202267
> 
> Signed-off-by: Sameeh Jubran 

Acked-by: Frediano Ziglio 

> ---
>  qxldod/QxlDod.cpp | 5 -
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
> index 5b42731..eb88744 100755
> --- a/qxldod/QxlDod.cpp
> +++ b/qxldod/QxlDod.cpp
> @@ -2614,7 +2614,10 @@ NTSTATUS VgaDevice::SetPowerState(_In_
> DEVICE_POWER_STATE DevicePowerState, DXG
>  switch (DevicePowerState)
>  {
>  case PowerDeviceUnspecified:
> -case PowerDeviceD0: regs.Ebx |= 0x1; break;
> +case PowerDeviceD0:
> +regs.Ebx |= 0x1;
> +AcquireDisplayInfo(*(pDispInfo));
> +break;
>  case PowerDeviceD1:
>  case PowerDeviceD2:
>  case PowerDeviceD3: regs.Ebx |= 0x400; break;

Frediano
___
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel


[Spice-devel] [PATCH qxl-wddm-dod v2 2/2] Call "DxgkCbAcquirePostDisplayOwnership" when changing Power State to D0

2016-10-13 Thread Sameeh Jubran
Starting with Windows Display Driver Model (WDDM) 1.2, if the
DevicePowerState parameter is set to PowerDeviceD0, the display miniport
driver should call DxgkCbAcquirePostDisplayOwnership to query the
information about the display mode.

This patch fixies this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1202267

Signed-off-by: Sameeh Jubran 
---
 qxldod/QxlDod.cpp | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index 5b42731..eb88744 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -2614,7 +2614,10 @@ NTSTATUS VgaDevice::SetPowerState(_In_  
DEVICE_POWER_STATE DevicePowerState, DXG
 switch (DevicePowerState)
 {
 case PowerDeviceUnspecified: 
-case PowerDeviceD0: regs.Ebx |= 0x1; break;
+case PowerDeviceD0:
+regs.Ebx |= 0x1;
+AcquireDisplayInfo(*(pDispInfo));
+break;
 case PowerDeviceD1:
 case PowerDeviceD2: 
 case PowerDeviceD3: regs.Ebx |= 0x400; break;
-- 
2.7.4

___
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel