mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-03-01 01:01:24 +00:00
Incorporates 2 patches since 2020-12-15 / a511f22c 15 Jan, 2021 sna: Always validate userptr upon creation Since not all memory ranges can be mapped by userptr, in particular those passed by XShmAttachFD, we need to validate the userptr before use. We would ideally want to continue to lazily populate the pages as often the userptr is created but never used, but preventing an EFAULT later is more important. In https://patchwork.freedesktop.org/series/33449/ we provided a more efficient method for probing the userptr on construction while preserving the lazy population of gup-pages. For now, always follow userptr with set-domain. 10 Jan, 2021 sna/gen7: Avoid clear-residuals overhead on all gen7 Since not just Haswell will enjoy clear-residuals, be very careful before using a potential context switch from DRI clients.