aboutsummaryrefslogtreecommitdiff
path: root/module-common.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2018-10-08 20:50:13 +0200
committerGerd Hoffmann <kraxel@redhat.com>2018-10-12 14:46:24 +0200
commit1abcfe9e299b6e48792ddfa6f2ab8cec93f16823 (patch)
tree887fd78120adaa65b3db6b276f4c98c531c27c2d /module-common.c
parent6415994ffcc6d22b3f5add67f63fe77e4b9711f4 (diff)
sdl2: Support all virtio-gpu formats
There are some 2D resource formats that can be used through virtio-gpu, but which are not supported by SDL2 when used for a scanout; these are all alpha-channel formats and also XBGR (RGBX in non-BE pixman). Add these formats in the switch converting pixman to SDL format constants so a guest cannot crash the VM by triggering the g_assert_not_reached() with an unsupported format. Signed-off-by: Max Reitz <mreitz@redhat.com> Message-id: 20181008185013.19371-1-mreitz@redhat.com [ kraxel: also update sdl2_2d_check_format() ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions