Vladimir 'phcoder' Serbinenko
12e9d4d152
Fix video on platforms where unaligned access is forbidden.
Make several optimisations while on it.
* grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
(grub_video_fbblit_replace_32bit_1bit): Likewise.
(grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
Disable.
(grub_video_fbblit_replace_16bit_1bit):
Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
(grub_video_fbblit_replace_8bit_1bit): Likewise.
(grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
(grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
(grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
(grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
(grub_video_fbblit_replace_BGR888_RGB888): Likewise.
(grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
(grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
(grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
(grub_video_fbblit_replace_index_RGBX8888): Likewise.
(grub_video_fbblit_replace_index_RGB888): Likewise.
(grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
(grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
(grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
(grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
(grub_video_fbblit_blend_index_RGBA8888): Likewise.
(grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
(grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
Disable.
(grub_video_fbblit_blend_XXX565_1bit):
Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
* grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
* grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
void *.
* grub-core/video/fb/video_fb.c (common_blitter)
[!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
(grub_video_fb_create_render_target_from_pointer)
[!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
* include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
* include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
definition.
* include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
2011-12-13 20:07:33 +01:00
..
2011-11-12 21:38:04 +01:00
2011-12-13 15:13:51 +01:00
2011-12-13 19:53:57 +01:00
2011-12-13 15:55:36 +01:00
2011-11-30 16:20:13 +01:00
2011-11-11 21:44:56 +01:00
2011-12-13 16:35:12 +01:00
2011-11-11 20:34:37 +01:00
2011-11-11 21:44:56 +01:00
2011-11-30 16:20:13 +01:00
2011-04-11 23:01:51 +02:00
2011-11-11 21:03:49 +01:00
2011-10-23 22:55:32 +02:00
2011-12-13 19:56:50 +01:00
2011-12-13 15:13:51 +01:00
2011-12-13 16:22:44 +01:00
2011-12-13 00:28:14 +01:00
2011-12-13 02:15:09 +01:00
2011-12-13 15:13:51 +01:00
2011-12-13 14:44:38 +01:00
2011-11-11 21:44:56 +01:00
2011-11-11 20:34:37 +01:00
2011-12-13 01:36:09 +01:00
2011-04-11 23:01:51 +02:00
2011-12-13 20:07:33 +01:00
2011-11-13 22:59:46 +01:00
2010-05-06 11:34:04 +05:30
2010-05-06 11:34:04 +05:30
2011-05-18 12:53:07 +01:00
2010-08-29 16:43:07 +05:30
2011-05-18 12:53:07 +01:00
2011-05-08 18:29:37 +02:00
2011-04-11 23:01:51 +02:00
2011-11-13 22:59:46 +01:00
2011-10-21 00:16:59 +02:00
2011-11-13 22:59:46 +01:00
2011-05-18 01:38:01 +02:00