[Spice-devel] [PATCH v3 2/5] Fails CCD initialisation if get_config_buffers detect WDDM is not present

Sameeh Jubran sameeh at daynix.com
Fri Sep 2 15:52:54 UTC 2016


acked-by: Sameeh Jubran <sameeh at daynix.com>

On Thu, Sep 1, 2016 at 5:54 PM, Frediano Ziglio <fziglio at redhat.com> wrote:

> There's no point continuing without WDDM as CCD cannot work without it.
>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  vdagent/display_configuration.cpp | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/vdagent/display_configuration.cpp b/vdagent/display_
> configuration.cpp
> index 2fa7089..29a1030 100644
> --- a/vdagent/display_configuration.cpp
> +++ b/vdagent/display_configuration.cpp
> @@ -843,6 +843,10 @@ bool CCD::get_config_buffers()
>      LONG error(ERROR_SUCCESS);
>      error = _pfnGetDisplayConfigBufferSizes(QDC_ALL_PATHS,
> &_numPathElements,
>                                              &_numModeElements);
> +    if (error == ERROR_NOT_SUPPORTED) {
> +        vd_printf("GetDisplayConfigBufferSizes failed, missing WDDM");
> +        throw std::exception();
> +    }
>      if (error) {
>          vd_printf("GetDisplayConfigBufferSizes failed with 0x%lx",
> error);
>          return false;
> --
> 2.7.4
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
>



-- 
Respectfully,
*Sameeh Jubran*
*Linkedin <https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a>*
*Junior Software Engineer @ Daynix <http://www.daynix.com>.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160902/b135f8b1/attachment.html>


More information about the Spice-devel mailing list