Max Reitz 1abcfe9e29 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>
2018-10-12 14:46:24 +02:00
..
2017-10-17 10:25:42 +02:00
2017-11-10 14:27:29 +01:00
2018-08-24 08:40:10 +02:00
2017-07-27 14:23:09 +02:00
2018-10-02 19:08:59 +02:00
2018-05-18 09:13:37 +02:00
2018-10-12 14:46:24 +02:00
2018-04-09 10:40:47 +02:00
2018-10-01 11:29:03 +02:00
2018-03-05 08:44:11 +01:00
2017-10-17 10:25:42 +02:00
2018-03-13 11:17:29 -06:00
2017-07-27 14:23:09 +02:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00