virgl: move new added field to the end.
authorLepton Wu <lepton@chromium.org>
Mon, 19 Apr 2021 21:18:58 +0000 (14:18 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 20 Apr 2021 00:00:30 +0000 (00:00 +0000)
This field was introduced 2 months ago and it breaks virgl
compatibility between guest/host. Switch the new added field
to the end. We will still have compatibility issue but the
"bug window" is much smaller.

Fixes: e778aceaae0 ("virgl: update headers")

Signed-off-by: Lepton Wu <lepton@chromium.org>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10333>

src/virtio/virtio-gpu/virgl_hw.h

index a368ffa..1286b48 100644 (file)
@@ -593,8 +593,8 @@ struct virgl_caps_v2 {
         uint32_t host_feature_check_version;
         struct virgl_supported_format_mask supported_readback_formats;
         struct virgl_supported_format_mask scanout;
-        uint32_t max_video_memory;
         uint32_t capability_bits_v2;
+        uint32_t max_video_memory;
 };
 
 union virgl_caps {