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
..
2018-02-05 19:53:55 -02:00
2017-10-17 10:25:42 +02:00
2018-07-24 11:41:48 +01: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-03-05 08:44:11 +01:00
2018-09-27 08:10:07 +02:00
2018-06-26 13:48:49 +02:00
2018-06-26 13:48:49 +02:00
2018-08-27 10:51:44 +02:00
2018-06-26 13:48:49 +02:00
2017-10-19 12:09:53 +01:00
2018-10-12 14:40:02 +02:00
2018-06-14 09:52:23 +02:00
2018-06-01 19:20:38 +03:00
2017-07-27 14:23:09 +02:00
2018-10-02 19:08:59 +02:00
2018-02-22 10:35:32 +01:00
2018-02-22 10:35:32 +01:00
2018-05-18 09:13:37 +02:00
2018-03-13 11:17:28 -06:00
2018-10-12 14:46:24 +02:00
2018-08-24 08:40:10 +02:00
2018-04-09 10:40:47 +02:00
2018-10-01 11:29:03 +02:00
2014-03-05 09:52:05 +01:00
2018-01-16 14:54:52 +01:00
2016-06-07 18:19:24 +03:00
2016-07-12 16:20:46 +02:00
2018-03-05 08:44:11 +01:00
2017-10-17 10:25:42 +02:00
2018-08-28 18:21:38 +02:00
2018-08-24 08:40:11 +02:00
2018-06-01 19:20:38 +03:00
2018-03-13 11:17:29 -06:00
2017-07-27 14:23:09 +02:00
2018-02-16 12:33:02 +01:00
2018-01-12 13:48:54 +01:00
2018-03-06 10:19:07 +00:00
2016-07-12 16:20:46 +02:00
2016-02-04 17:01:04 +00:00
2018-08-24 08:40:11 +02:00
2016-07-12 16:19:16 +02:00
2016-02-04 17:01:04 +00:00
2018-05-11 14:33:40 +02:00
2016-07-12 16:19:16 +02:00
2018-05-11 14:33:40 +02:00
2016-02-04 17:01:04 +00:00
2016-07-12 16:19:16 +02:00
2018-08-24 08:40:10 +02:00
2017-02-08 14:59:36 +01:00
2016-06-07 18:19:24 +03:00
2018-02-09 13:52:15 +01:00
2018-02-16 12:23:21 +01:00
2018-03-06 10:19:07 +00:00
2016-07-12 16:20:46 +02:00
2018-10-01 11:29:03 +02:00
2018-07-03 18:38:54 +02:00
2018-04-10 11:21:54 +02:00
2018-01-25 15:02:00 +01:00