153476e07SGerd Hoffmann /* 253476e07SGerd Hoffmann * Virtio GPU Device 353476e07SGerd Hoffmann * 453476e07SGerd Hoffmann * Copyright Red Hat, Inc. 2013-2014 553476e07SGerd Hoffmann * 653476e07SGerd Hoffmann * Authors: 753476e07SGerd Hoffmann * Dave Airlie <airlied@redhat.com> 853476e07SGerd Hoffmann * Gerd Hoffmann <kraxel@redhat.com> 953476e07SGerd Hoffmann * 1053476e07SGerd Hoffmann * This header is BSD licensed so anyone can use the definitions 1153476e07SGerd Hoffmann * to implement compatible drivers/servers: 1253476e07SGerd Hoffmann * 1353476e07SGerd Hoffmann * Redistribution and use in source and binary forms, with or without 1453476e07SGerd Hoffmann * modification, are permitted provided that the following conditions 1553476e07SGerd Hoffmann * are met: 1653476e07SGerd Hoffmann * 1. Redistributions of source code must retain the above copyright 1753476e07SGerd Hoffmann * notice, this list of conditions and the following disclaimer. 1853476e07SGerd Hoffmann * 2. Redistributions in binary form must reproduce the above copyright 1953476e07SGerd Hoffmann * notice, this list of conditions and the following disclaimer in the 2053476e07SGerd Hoffmann * documentation and/or other materials provided with the distribution. 2153476e07SGerd Hoffmann * 3. Neither the name of IBM nor the names of its contributors 2253476e07SGerd Hoffmann * may be used to endorse or promote products derived from this software 2353476e07SGerd Hoffmann * without specific prior written permission. 2453476e07SGerd Hoffmann * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2553476e07SGerd Hoffmann * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2653476e07SGerd Hoffmann * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 2753476e07SGerd Hoffmann * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL IBM OR 2853476e07SGerd Hoffmann * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2953476e07SGerd Hoffmann * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 3053476e07SGerd Hoffmann * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 3153476e07SGerd Hoffmann * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 3253476e07SGerd Hoffmann * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 3353476e07SGerd Hoffmann * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 3453476e07SGerd Hoffmann * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3553476e07SGerd Hoffmann * SUCH DAMAGE. 3653476e07SGerd Hoffmann */ 3753476e07SGerd Hoffmann 3853476e07SGerd Hoffmann #ifndef VIRTIO_GPU_HW_H 3953476e07SGerd Hoffmann #define VIRTIO_GPU_HW_H 4053476e07SGerd Hoffmann 4125b8b39bSAlexey Kardashevskiy #include "standard-headers/linux/types.h" 4225b8b39bSAlexey Kardashevskiy 43fff02bc0SPaolo Bonzini #define VIRTIO_GPU_F_VIRGL 0 44*da054c64SPaolo Bonzini #define VIRTIO_GPU_F_EDID 1 45bc79e964SGerd Hoffmann 4653476e07SGerd Hoffmann enum virtio_gpu_ctrl_type { 4753476e07SGerd Hoffmann VIRTIO_GPU_UNDEFINED = 0, 4853476e07SGerd Hoffmann 4953476e07SGerd Hoffmann /* 2d commands */ 5053476e07SGerd Hoffmann VIRTIO_GPU_CMD_GET_DISPLAY_INFO = 0x0100, 5153476e07SGerd Hoffmann VIRTIO_GPU_CMD_RESOURCE_CREATE_2D, 5253476e07SGerd Hoffmann VIRTIO_GPU_CMD_RESOURCE_UNREF, 5353476e07SGerd Hoffmann VIRTIO_GPU_CMD_SET_SCANOUT, 5453476e07SGerd Hoffmann VIRTIO_GPU_CMD_RESOURCE_FLUSH, 5553476e07SGerd Hoffmann VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D, 5653476e07SGerd Hoffmann VIRTIO_GPU_CMD_RESOURCE_ATTACH_BACKING, 5753476e07SGerd Hoffmann VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING, 58bc79e964SGerd Hoffmann VIRTIO_GPU_CMD_GET_CAPSET_INFO, 59bc79e964SGerd Hoffmann VIRTIO_GPU_CMD_GET_CAPSET, 60*da054c64SPaolo Bonzini VIRTIO_GPU_CMD_GET_EDID, 61bc79e964SGerd Hoffmann 62bc79e964SGerd Hoffmann /* 3d commands */ 63bc79e964SGerd Hoffmann VIRTIO_GPU_CMD_CTX_CREATE = 0x0200, 64bc79e964SGerd Hoffmann VIRTIO_GPU_CMD_CTX_DESTROY, 65bc79e964SGerd Hoffmann VIRTIO_GPU_CMD_CTX_ATTACH_RESOURCE, 66bc79e964SGerd Hoffmann VIRTIO_GPU_CMD_CTX_DETACH_RESOURCE, 67bc79e964SGerd Hoffmann VIRTIO_GPU_CMD_RESOURCE_CREATE_3D, 68bc79e964SGerd Hoffmann VIRTIO_GPU_CMD_TRANSFER_TO_HOST_3D, 69bc79e964SGerd Hoffmann VIRTIO_GPU_CMD_TRANSFER_FROM_HOST_3D, 70bc79e964SGerd Hoffmann VIRTIO_GPU_CMD_SUBMIT_3D, 7153476e07SGerd Hoffmann 7253476e07SGerd Hoffmann /* cursor commands */ 7353476e07SGerd Hoffmann VIRTIO_GPU_CMD_UPDATE_CURSOR = 0x0300, 7453476e07SGerd Hoffmann VIRTIO_GPU_CMD_MOVE_CURSOR, 7553476e07SGerd Hoffmann 7653476e07SGerd Hoffmann /* success responses */ 7753476e07SGerd Hoffmann VIRTIO_GPU_RESP_OK_NODATA = 0x1100, 7853476e07SGerd Hoffmann VIRTIO_GPU_RESP_OK_DISPLAY_INFO, 79bc79e964SGerd Hoffmann VIRTIO_GPU_RESP_OK_CAPSET_INFO, 80bc79e964SGerd Hoffmann VIRTIO_GPU_RESP_OK_CAPSET, 81*da054c64SPaolo Bonzini VIRTIO_GPU_RESP_OK_EDID, 8253476e07SGerd Hoffmann 8353476e07SGerd Hoffmann /* error responses */ 8453476e07SGerd Hoffmann VIRTIO_GPU_RESP_ERR_UNSPEC = 0x1200, 8553476e07SGerd Hoffmann VIRTIO_GPU_RESP_ERR_OUT_OF_MEMORY, 8653476e07SGerd Hoffmann VIRTIO_GPU_RESP_ERR_INVALID_SCANOUT_ID, 8753476e07SGerd Hoffmann VIRTIO_GPU_RESP_ERR_INVALID_RESOURCE_ID, 8853476e07SGerd Hoffmann VIRTIO_GPU_RESP_ERR_INVALID_CONTEXT_ID, 8953476e07SGerd Hoffmann VIRTIO_GPU_RESP_ERR_INVALID_PARAMETER, 9053476e07SGerd Hoffmann }; 9153476e07SGerd Hoffmann 9253476e07SGerd Hoffmann #define VIRTIO_GPU_FLAG_FENCE (1 << 0) 9353476e07SGerd Hoffmann 9453476e07SGerd Hoffmann struct virtio_gpu_ctrl_hdr { 9553476e07SGerd Hoffmann uint32_t type; 9653476e07SGerd Hoffmann uint32_t flags; 9753476e07SGerd Hoffmann uint64_t fence_id; 9853476e07SGerd Hoffmann uint32_t ctx_id; 9953476e07SGerd Hoffmann uint32_t padding; 10053476e07SGerd Hoffmann }; 10153476e07SGerd Hoffmann 10253476e07SGerd Hoffmann /* data passed in the cursor vq */ 10353476e07SGerd Hoffmann 10453476e07SGerd Hoffmann struct virtio_gpu_cursor_pos { 10553476e07SGerd Hoffmann uint32_t scanout_id; 10653476e07SGerd Hoffmann uint32_t x; 10753476e07SGerd Hoffmann uint32_t y; 10853476e07SGerd Hoffmann uint32_t padding; 10953476e07SGerd Hoffmann }; 11053476e07SGerd Hoffmann 11153476e07SGerd Hoffmann /* VIRTIO_GPU_CMD_UPDATE_CURSOR, VIRTIO_GPU_CMD_MOVE_CURSOR */ 11253476e07SGerd Hoffmann struct virtio_gpu_update_cursor { 11353476e07SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 11453476e07SGerd Hoffmann struct virtio_gpu_cursor_pos pos; /* update & move */ 11553476e07SGerd Hoffmann uint32_t resource_id; /* update only */ 11653476e07SGerd Hoffmann uint32_t hot_x; /* update only */ 11753476e07SGerd Hoffmann uint32_t hot_y; /* update only */ 11853476e07SGerd Hoffmann uint32_t padding; 11953476e07SGerd Hoffmann }; 12053476e07SGerd Hoffmann 12153476e07SGerd Hoffmann /* data passed in the control vq, 2d related */ 12253476e07SGerd Hoffmann 12353476e07SGerd Hoffmann struct virtio_gpu_rect { 12453476e07SGerd Hoffmann uint32_t x; 12553476e07SGerd Hoffmann uint32_t y; 12653476e07SGerd Hoffmann uint32_t width; 12753476e07SGerd Hoffmann uint32_t height; 12853476e07SGerd Hoffmann }; 12953476e07SGerd Hoffmann 13053476e07SGerd Hoffmann /* VIRTIO_GPU_CMD_RESOURCE_UNREF */ 13153476e07SGerd Hoffmann struct virtio_gpu_resource_unref { 13253476e07SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 13353476e07SGerd Hoffmann uint32_t resource_id; 13453476e07SGerd Hoffmann uint32_t padding; 13553476e07SGerd Hoffmann }; 13653476e07SGerd Hoffmann 13753476e07SGerd Hoffmann /* VIRTIO_GPU_CMD_RESOURCE_CREATE_2D: create a 2d resource with a format */ 13853476e07SGerd Hoffmann struct virtio_gpu_resource_create_2d { 13953476e07SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 14053476e07SGerd Hoffmann uint32_t resource_id; 14153476e07SGerd Hoffmann uint32_t format; 14253476e07SGerd Hoffmann uint32_t width; 14353476e07SGerd Hoffmann uint32_t height; 14453476e07SGerd Hoffmann }; 14553476e07SGerd Hoffmann 14653476e07SGerd Hoffmann /* VIRTIO_GPU_CMD_SET_SCANOUT */ 14753476e07SGerd Hoffmann struct virtio_gpu_set_scanout { 14853476e07SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 14953476e07SGerd Hoffmann struct virtio_gpu_rect r; 15053476e07SGerd Hoffmann uint32_t scanout_id; 15153476e07SGerd Hoffmann uint32_t resource_id; 15253476e07SGerd Hoffmann }; 15353476e07SGerd Hoffmann 15453476e07SGerd Hoffmann /* VIRTIO_GPU_CMD_RESOURCE_FLUSH */ 15553476e07SGerd Hoffmann struct virtio_gpu_resource_flush { 15653476e07SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 15753476e07SGerd Hoffmann struct virtio_gpu_rect r; 15853476e07SGerd Hoffmann uint32_t resource_id; 15953476e07SGerd Hoffmann uint32_t padding; 16053476e07SGerd Hoffmann }; 16153476e07SGerd Hoffmann 16253476e07SGerd Hoffmann /* VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D: simple transfer to_host */ 16353476e07SGerd Hoffmann struct virtio_gpu_transfer_to_host_2d { 16453476e07SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 16553476e07SGerd Hoffmann struct virtio_gpu_rect r; 16653476e07SGerd Hoffmann uint64_t offset; 16753476e07SGerd Hoffmann uint32_t resource_id; 16853476e07SGerd Hoffmann uint32_t padding; 16953476e07SGerd Hoffmann }; 17053476e07SGerd Hoffmann 17153476e07SGerd Hoffmann struct virtio_gpu_mem_entry { 17253476e07SGerd Hoffmann uint64_t addr; 17353476e07SGerd Hoffmann uint32_t length; 17453476e07SGerd Hoffmann uint32_t padding; 17553476e07SGerd Hoffmann }; 17653476e07SGerd Hoffmann 17753476e07SGerd Hoffmann /* VIRTIO_GPU_CMD_RESOURCE_ATTACH_BACKING */ 17853476e07SGerd Hoffmann struct virtio_gpu_resource_attach_backing { 17953476e07SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 18053476e07SGerd Hoffmann uint32_t resource_id; 18153476e07SGerd Hoffmann uint32_t nr_entries; 18253476e07SGerd Hoffmann }; 18353476e07SGerd Hoffmann 18453476e07SGerd Hoffmann /* VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING */ 18553476e07SGerd Hoffmann struct virtio_gpu_resource_detach_backing { 18653476e07SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 18753476e07SGerd Hoffmann uint32_t resource_id; 18853476e07SGerd Hoffmann uint32_t padding; 18953476e07SGerd Hoffmann }; 19053476e07SGerd Hoffmann 19153476e07SGerd Hoffmann /* VIRTIO_GPU_RESP_OK_DISPLAY_INFO */ 19253476e07SGerd Hoffmann #define VIRTIO_GPU_MAX_SCANOUTS 16 19353476e07SGerd Hoffmann struct virtio_gpu_resp_display_info { 19453476e07SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 19553476e07SGerd Hoffmann struct virtio_gpu_display_one { 19653476e07SGerd Hoffmann struct virtio_gpu_rect r; 19753476e07SGerd Hoffmann uint32_t enabled; 19853476e07SGerd Hoffmann uint32_t flags; 19953476e07SGerd Hoffmann } pmodes[VIRTIO_GPU_MAX_SCANOUTS]; 20053476e07SGerd Hoffmann }; 20153476e07SGerd Hoffmann 202bc79e964SGerd Hoffmann /* data passed in the control vq, 3d related */ 203bc79e964SGerd Hoffmann 204bc79e964SGerd Hoffmann struct virtio_gpu_box { 205bc79e964SGerd Hoffmann uint32_t x, y, z; 206bc79e964SGerd Hoffmann uint32_t w, h, d; 207bc79e964SGerd Hoffmann }; 208bc79e964SGerd Hoffmann 209bc79e964SGerd Hoffmann /* VIRTIO_GPU_CMD_TRANSFER_TO_HOST_3D, VIRTIO_GPU_CMD_TRANSFER_FROM_HOST_3D */ 210bc79e964SGerd Hoffmann struct virtio_gpu_transfer_host_3d { 211bc79e964SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 212bc79e964SGerd Hoffmann struct virtio_gpu_box box; 213bc79e964SGerd Hoffmann uint64_t offset; 214bc79e964SGerd Hoffmann uint32_t resource_id; 215bc79e964SGerd Hoffmann uint32_t level; 216bc79e964SGerd Hoffmann uint32_t stride; 217bc79e964SGerd Hoffmann uint32_t layer_stride; 218bc79e964SGerd Hoffmann }; 219bc79e964SGerd Hoffmann 220bc79e964SGerd Hoffmann /* VIRTIO_GPU_CMD_RESOURCE_CREATE_3D */ 221bc79e964SGerd Hoffmann #define VIRTIO_GPU_RESOURCE_FLAG_Y_0_TOP (1 << 0) 222bc79e964SGerd Hoffmann struct virtio_gpu_resource_create_3d { 223bc79e964SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 224bc79e964SGerd Hoffmann uint32_t resource_id; 225bc79e964SGerd Hoffmann uint32_t target; 226bc79e964SGerd Hoffmann uint32_t format; 227bc79e964SGerd Hoffmann uint32_t bind; 228bc79e964SGerd Hoffmann uint32_t width; 229bc79e964SGerd Hoffmann uint32_t height; 230bc79e964SGerd Hoffmann uint32_t depth; 231bc79e964SGerd Hoffmann uint32_t array_size; 232bc79e964SGerd Hoffmann uint32_t last_level; 233bc79e964SGerd Hoffmann uint32_t nr_samples; 234bc79e964SGerd Hoffmann uint32_t flags; 235bc79e964SGerd Hoffmann uint32_t padding; 236bc79e964SGerd Hoffmann }; 237bc79e964SGerd Hoffmann 238bc79e964SGerd Hoffmann /* VIRTIO_GPU_CMD_CTX_CREATE */ 239bc79e964SGerd Hoffmann struct virtio_gpu_ctx_create { 240bc79e964SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 241bc79e964SGerd Hoffmann uint32_t nlen; 242bc79e964SGerd Hoffmann uint32_t padding; 243bc79e964SGerd Hoffmann char debug_name[64]; 244bc79e964SGerd Hoffmann }; 245bc79e964SGerd Hoffmann 246bc79e964SGerd Hoffmann /* VIRTIO_GPU_CMD_CTX_DESTROY */ 247bc79e964SGerd Hoffmann struct virtio_gpu_ctx_destroy { 248bc79e964SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 249bc79e964SGerd Hoffmann }; 250bc79e964SGerd Hoffmann 251bc79e964SGerd Hoffmann /* VIRTIO_GPU_CMD_CTX_ATTACH_RESOURCE, VIRTIO_GPU_CMD_CTX_DETACH_RESOURCE */ 252bc79e964SGerd Hoffmann struct virtio_gpu_ctx_resource { 253bc79e964SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 254bc79e964SGerd Hoffmann uint32_t resource_id; 255bc79e964SGerd Hoffmann uint32_t padding; 256bc79e964SGerd Hoffmann }; 257bc79e964SGerd Hoffmann 258bc79e964SGerd Hoffmann /* VIRTIO_GPU_CMD_SUBMIT_3D */ 259bc79e964SGerd Hoffmann struct virtio_gpu_cmd_submit { 260bc79e964SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 261bc79e964SGerd Hoffmann uint32_t size; 262bc79e964SGerd Hoffmann uint32_t padding; 263bc79e964SGerd Hoffmann }; 264bc79e964SGerd Hoffmann 265bc79e964SGerd Hoffmann #define VIRTIO_GPU_CAPSET_VIRGL 1 26677d361b1SEric Auger #define VIRTIO_GPU_CAPSET_VIRGL2 2 267bc79e964SGerd Hoffmann 268bc79e964SGerd Hoffmann /* VIRTIO_GPU_CMD_GET_CAPSET_INFO */ 269bc79e964SGerd Hoffmann struct virtio_gpu_get_capset_info { 270bc79e964SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 271bc79e964SGerd Hoffmann uint32_t capset_index; 272bc79e964SGerd Hoffmann uint32_t padding; 273bc79e964SGerd Hoffmann }; 274bc79e964SGerd Hoffmann 275bc79e964SGerd Hoffmann /* VIRTIO_GPU_RESP_OK_CAPSET_INFO */ 276bc79e964SGerd Hoffmann struct virtio_gpu_resp_capset_info { 277bc79e964SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 278bc79e964SGerd Hoffmann uint32_t capset_id; 279bc79e964SGerd Hoffmann uint32_t capset_max_version; 280bc79e964SGerd Hoffmann uint32_t capset_max_size; 281bc79e964SGerd Hoffmann uint32_t padding; 282bc79e964SGerd Hoffmann }; 283bc79e964SGerd Hoffmann 284bc79e964SGerd Hoffmann /* VIRTIO_GPU_CMD_GET_CAPSET */ 285bc79e964SGerd Hoffmann struct virtio_gpu_get_capset { 286bc79e964SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 287bc79e964SGerd Hoffmann uint32_t capset_id; 288bc79e964SGerd Hoffmann uint32_t capset_version; 289bc79e964SGerd Hoffmann }; 290bc79e964SGerd Hoffmann 291bc79e964SGerd Hoffmann /* VIRTIO_GPU_RESP_OK_CAPSET */ 292bc79e964SGerd Hoffmann struct virtio_gpu_resp_capset { 293bc79e964SGerd Hoffmann struct virtio_gpu_ctrl_hdr hdr; 294bc79e964SGerd Hoffmann uint8_t capset_data[]; 295bc79e964SGerd Hoffmann }; 296bc79e964SGerd Hoffmann 297*da054c64SPaolo Bonzini /* VIRTIO_GPU_CMD_GET_EDID */ 298*da054c64SPaolo Bonzini struct virtio_gpu_cmd_get_edid { 299*da054c64SPaolo Bonzini struct virtio_gpu_ctrl_hdr hdr; 300*da054c64SPaolo Bonzini uint32_t scanout; 301*da054c64SPaolo Bonzini uint32_t padding; 302*da054c64SPaolo Bonzini }; 303*da054c64SPaolo Bonzini 304*da054c64SPaolo Bonzini /* VIRTIO_GPU_RESP_OK_EDID */ 305*da054c64SPaolo Bonzini struct virtio_gpu_resp_edid { 306*da054c64SPaolo Bonzini struct virtio_gpu_ctrl_hdr hdr; 307*da054c64SPaolo Bonzini uint32_t size; 308*da054c64SPaolo Bonzini uint32_t padding; 309*da054c64SPaolo Bonzini uint8_t edid[1024]; 310*da054c64SPaolo Bonzini }; 311*da054c64SPaolo Bonzini 31253476e07SGerd Hoffmann #define VIRTIO_GPU_EVENT_DISPLAY (1 << 0) 31353476e07SGerd Hoffmann 31453476e07SGerd Hoffmann struct virtio_gpu_config { 31553476e07SGerd Hoffmann uint32_t events_read; 31653476e07SGerd Hoffmann uint32_t events_clear; 31753476e07SGerd Hoffmann uint32_t num_scanouts; 318bc79e964SGerd Hoffmann uint32_t num_capsets; 31953476e07SGerd Hoffmann }; 32053476e07SGerd Hoffmann 32153476e07SGerd Hoffmann /* simple formats for fbcon/X use */ 32253476e07SGerd Hoffmann enum virtio_gpu_formats { 32353476e07SGerd Hoffmann VIRTIO_GPU_FORMAT_B8G8R8A8_UNORM = 1, 32453476e07SGerd Hoffmann VIRTIO_GPU_FORMAT_B8G8R8X8_UNORM = 2, 32553476e07SGerd Hoffmann VIRTIO_GPU_FORMAT_A8R8G8B8_UNORM = 3, 32653476e07SGerd Hoffmann VIRTIO_GPU_FORMAT_X8R8G8B8_UNORM = 4, 32753476e07SGerd Hoffmann 32853476e07SGerd Hoffmann VIRTIO_GPU_FORMAT_R8G8B8A8_UNORM = 67, 32953476e07SGerd Hoffmann VIRTIO_GPU_FORMAT_X8B8G8R8_UNORM = 68, 33053476e07SGerd Hoffmann 33153476e07SGerd Hoffmann VIRTIO_GPU_FORMAT_A8B8G8R8_UNORM = 121, 33253476e07SGerd Hoffmann VIRTIO_GPU_FORMAT_R8G8B8X8_UNORM = 134, 33353476e07SGerd Hoffmann }; 33453476e07SGerd Hoffmann 33553476e07SGerd Hoffmann #endif 336