virtio-gpu: use VIRTIO_GPU_RESOURCE_FLAG_Y_0_TOP
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 4 May 2021 08:07:46 +0000 (12:07 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 21 Dec 2021 06:50:21 +0000 (10:50 +0400)
It's part of Linux headers for a while now.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/display/virtio-gpu-virgl.c

index 0d87de65d79af8ea679a31b09d6c372a9ac1262e..73cb92c8d5c6f00726cb27199b3e93da04754a4c 100644 (file)
@@ -175,7 +175,7 @@ static void virgl_cmd_set_scanout(VirtIOGPU *g,
         virgl_renderer_force_ctx_0();
         dpy_gl_scanout_texture(
             g->parent_obj.scanout[ss.scanout_id].con, info.tex_id,
-            info.flags & 1 /* FIXME: Y_0_TOP */,
+            info.flags & VIRTIO_GPU_RESOURCE_FLAG_Y_0_TOP,
             info.width, info.height,
             ss.r.x, ss.r.y, ss.r.width, ss.r.height);
     } else {