[Spice-devel] [PATCH 2/4] qxl-wddm-dod: Discard meaningless copy of value

Frediano Ziglio fziglio at redhat.com
Tue Jan 31 12:57:47 UTC 2017


> 
> Signed-off-by: Yuri Benditovich <yuri.benditovich at daynix.com>

Acked-by: Frediano Ziglio <fziglio at redhat.com>

> ---
>  qxldod/QxlDod.cpp | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
> index 46176f0..459fcb1 100755
> --- a/qxldod/QxlDod.cpp
> +++ b/qxldod/QxlDod.cpp
> @@ -4815,7 +4815,6 @@ UINT SpiceFromPixelFormat(D3DDDIFORMAT Format)
>  NTSTATUS HwDeviceInterface::AcquireDisplayInfo(DXGK_DISPLAY_INFORMATION&
>  DispInfo)
>  {
>      NTSTATUS Status = STATUS_SUCCESS;
> -    PHYSICAL_ADDRESS PhysicAddress;
>      if (GetId() == 0)
>      {
>          Status = m_pQxlDod->AcquireDisplayInfo(DispInfo);
> @@ -4827,7 +4826,6 @@ NTSTATUS
> HwDeviceInterface::AcquireDisplayInfo(DXGK_DISPLAY_INFORMATION& DispInf
>              Status, DispInfo.Width));
>          return STATUS_UNSUCCESSFUL;
>      }
> -    PhysicAddress.QuadPart = DispInfo.PhysicAddress.QuadPart;
>  
>      if (DispInfo.Width == 0)
>      {
> @@ -4836,10 +4834,6 @@ NTSTATUS
> HwDeviceInterface::AcquireDisplayInfo(DXGK_DISPLAY_INFORMATION& DispInf
>          DispInfo.Pitch = MIN_WIDTH_SIZE *
>          BPPFromPixelFormat(D3DDDIFMT_R8G8B8) / 8;
>          DispInfo.ColorFormat = D3DDDIFMT_R8G8B8;
>          DispInfo.TargetId = 0;
> -        if (PhysicAddress.QuadPart != 0L)
> -        {
> -            DispInfo.PhysicAddress.QuadPart = PhysicAddress.QuadPart;
> -        }
>      }
>      return Status;
>  }

Frediano


More information about the Spice-devel mailing list