SDL/src/video/kmsdrm
David Gow a76b73dd2c kmsdrm: Use SDL_PremultiplySurfaceAlphaToARGB8888() for cursor surface
Instead of taking a direct copy of the mouse cursor surface, and then
premultiplying on every BO upload (using the custom
legacy_alpha_premultiply_ARGB8888 function), use the new
SDL_PremultiplySurfaceAlphaToARGB8888() function, which converts a whole
surface at a time, once and save the result.

The already-premultiplied data is then copied from that to the BO on
each upload, adjusting for the stride (which the previous implementation
required to be equal to the width), thereby making the extra copy
slightly useful..

This also adds support for non-SDL_PIXELFORMAT_ARGB8888 surfaces.
2021-10-22 05:50:00 -07:00
..
SDL_kmsdrmdyn.c [KMS/DRM] Go back to the LEGACY interface only because using planes breaks compatibility with HW, so no advantage on using ATOMIC. 2021-01-08 18:57:12 +01:00
SDL_kmsdrmdyn.h [KMS/DRM] Go back to the LEGACY interface only because using planes breaks compatibility with HW, so no advantage on using ATOMIC. 2021-01-08 18:57:12 +01:00
SDL_kmsdrmevents.c Fixed bug 5461 - Add rewritten WSCONS driver for OpenBSD 2021-01-14 14:32:11 -08:00
SDL_kmsdrmevents.h [KMS/DRM] Go back to the LEGACY interface only because using planes breaks compatibility with HW, so no advantage on using ATOMIC. 2021-01-08 18:57:12 +01:00
SDL_kmsdrmmouse.c kmsdrm: Use SDL_PremultiplySurfaceAlphaToARGB8888() for cursor surface 2021-10-22 05:50:00 -07:00
SDL_kmsdrmmouse.h [KMS/DRM] Patch for bug #5513. KMSDRM backend can now manage and use several displays. 2021-02-10 10:22:18 -05:00
SDL_kmsdrmopengles.c kmsdrm: remove redundant modeset_pending flag 2021-06-01 15:32:02 -07:00
SDL_kmsdrmopengles.h [KMS/DRM] Go back to the LEGACY interface only because using planes breaks compatibility with HW, so no advantage on using ATOMIC. 2021-01-08 18:57:12 +01:00
SDL_kmsdrmsym.h KMSDRM: Add gamma support 2021-02-25 11:39:10 -08:00
SDL_kmsdrmvideo.c Fixed some accidental uses of external C runtime functions 2021-09-22 09:06:45 -07:00
SDL_kmsdrmvideo.h kmsdrm: avoid overriding the mode requested by SDL_SetWindowDisplayMode 2021-06-24 12:12:29 -07:00
SDL_kmsdrmvulkan.c Fixed some accidental uses of external C runtime functions 2021-09-22 09:06:45 -07:00
SDL_kmsdrmvulkan.h [KMS/DRM] Go back to the LEGACY interface only because using planes breaks compatibility with HW, so no advantage on using ATOMIC. 2021-01-08 18:57:12 +01:00