All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@gmail.com>
To: Akihiko Odaki <akihiko.odaki@gmail.com>
Cc: QEMU <qemu-devel@nongnu.org>, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [PATCH] ui/spice: Use HAVE_SPICE_GL for OpenGL checks
Date: Fri, 16 Jul 2021 12:21:17 +0400	[thread overview]
Message-ID: <CAJ+F1CKo0D0wKKfKQZHTRfF2GvFk5cfCHtmC1HSXAQh23_Us0A@mail.gmail.com> (raw)
In-Reply-To: <20210714055735.86050-1-akihiko.odaki@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1816 bytes --]

On Wed, Jul 14, 2021 at 9:58 AM Akihiko Odaki <akihiko.odaki@gmail.com>
wrote:

> Some code in ui/spice used CONFIG_OPENGL for OpenGL conditionals, but
> SPICE also depends on CONFIG_GBM and SPICE server whose version is
> 0.13.1 or later for OpenGL. Always use HAVE_SPICE_GL, which defines the
> precise condition.
>
> Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
>

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>



> ---
>  ui/spice-app.c  | 3 ++-
>  ui/spice-core.c | 2 +-
>  2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/ui/spice-app.c b/ui/spice-app.c
> index 641f4a9d53e..7e71e18da9a 100644
> --- a/ui/spice-app.c
> +++ b/ui/spice-app.c
> @@ -27,6 +27,7 @@
>  #include <gio/gio.h>
>
>  #include "ui/console.h"
> +#include "ui/spice-display.h"
>  #include "qemu/config-file.h"
>  #include "qemu/option.h"
>  #include "qemu/cutils.h"
> @@ -175,7 +176,7 @@ static void
> spice_app_display_early_init(DisplayOptions *opts)
>      qemu_opt_set(qopts, "addr", sock_path, &error_abort);
>      qemu_opt_set(qopts, "image-compression", "off", &error_abort);
>      qemu_opt_set(qopts, "streaming-video", "off", &error_abort);
> -#ifdef CONFIG_OPENGL
> +#ifdef HAVE_SPICE_GL
>      qemu_opt_set(qopts, "gl", opts->has_gl ? "on" : "off", &error_abort);
>      display_opengl = opts->has_gl;
>  #endif
> diff --git a/ui/spice-core.c b/ui/spice-core.c
> index 86d43783aca..0371055e6c1 100644
> --- a/ui/spice-core.c
> +++ b/ui/spice-core.c
> @@ -1039,6 +1039,6 @@ static void spice_register_config(void)
>  opts_init(spice_register_config);
>  module_opts("spice");
>
> -#ifdef CONFIG_OPENGL
> +#ifdef HAVE_SPICE_GL
>  module_dep("ui-opengl");
>  #endif
> --
> 2.30.1 (Apple Git-130)
>
>
>

-- 
Marc-André Lureau

[-- Attachment #2: Type: text/html, Size: 2792 bytes --]

      reply	other threads:[~2021-07-16  8:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-14  5:57 [PATCH] ui/spice: Use HAVE_SPICE_GL for OpenGL checks Akihiko Odaki
2021-07-16  8:21 ` Marc-André Lureau [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ+F1CKo0D0wKKfKQZHTRfF2GvFk5cfCHtmC1HSXAQh23_Us0A@mail.gmail.com \
    --to=marcandre.lureau@gmail.com \
    --cc=akihiko.odaki@gmail.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.