Commits

Thomas Petazzoni committed 60a8c5c7894
libdrm: adjust the ARM patch to work on ARMv4/ARMv5 The ARM patch that was added in commit 94841d87fd2ff8ebf7af84d49e5095074958febf ("libdrm: fix support for xserver with Vivante drivers") makes the assumption that ldrex/strex is available on ARM. While this is true on ARMv6+, it is not true on ARMv4/ARMv5. Due to this, we had to make follow-up commits like 7bac31ceea1b52986b1773a1bd4841110672f923 ("package/x11r7/xserver_xorg-server: dri needs arm >= v6") and more is needed in the reverse dependencies to disable DRI usage on ARMv4/ARMv5. In fact, it turns out that the CAS code in libdrm is only an optimization, and it will gracefully fall back to a system call based lock/unlock mechanism. So we simply change the patch to only provide the optimized CAS implementation on ARMv6+. The original reason for this patch was to fix Vivante drivers, and Vivante GPUs are only used in ARMv6+ cores, so we should be fine (famous last words). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>