qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 26/27] vhost-user-gpu: check the PIXMAN format is supported


From: marcandre . lureau
Subject: [PATCH 26/27] vhost-user-gpu: check the PIXMAN format is supported
Date: Fri, 12 Mar 2021 14:01:07 +0400

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

There is no support for other PIXMAN formats atm.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 contrib/vhost-user-gpu/vhost-user-gpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/vhost-user-gpu/vhost-user-gpu.c 
b/contrib/vhost-user-gpu/vhost-user-gpu.c
index d74ea127d8..36d7f1d9e6 100644
--- a/contrib/vhost-user-gpu/vhost-user-gpu.c
+++ b/contrib/vhost-user-gpu/vhost-user-gpu.c
@@ -332,7 +332,7 @@ vg_resource_create_2d(VuGpu *g,
     res->resource_id = c2d.resource_id;
 
     pformat = virtio_gpu_get_pixman_format(c2d.format);
-    if (!pformat) {
+    if (!pformat || pformat != PIXMAN_x8r8g8b8) {
         g_critical("%s: host couldn't handle guest format %d",
                    __func__, c2d.format);
         g_free(res);
-- 
2.29.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]