diff --git a/libdrm-2.4.115-sw8a.patch b/libdrm-2.4.115-sw8a.patch new file mode 100644 index 0000000000000000000000000000000000000000..46500026aeab7c62f1c79e36d3ca4af07461c441 --- /dev/null +++ b/libdrm-2.4.115-sw8a.patch @@ -0,0 +1,14 @@ +diff -uNar libdrm-2.4.115.org/xf86drm.h libdrm-2.4.115.new/xf86drm.h +--- libdrm-2.4.115.org/xf86drm.h 2024-04-17 14:28:53.679049167 +0800 ++++ libdrm-2.4.115.new/xf86drm.h 2024-04-17 14:31:45.650434817 +0800 +@@ -392,10 +392,8 @@ + " ldi %1, %3\n" \ + "1: lldw %0, 0(%1)\n" \ + " cmpeq %0, %4, %2\n" \ +- " wr_f %2\n" \ + " mov %5, %0\n" \ + " lstw %0, 0(%1)\n" \ +- " rd_f %0\n" \ + " beq %2, 2f\n" \ + " beq %0, 3f\n" \ + " memb\n" \ diff --git a/libdrm.spec b/libdrm.spec index fa8f7b2ba4b9a1c8c118990c69d995ff3bc794a2..4ffe322189f418cd4ea67f77400622652d267a60 100644 --- a/libdrm.spec +++ b/libdrm.spec @@ -51,7 +51,7 @@ end} %bcond_without install_test_programs %bcond_without udev -%define anolis_release .0.1 +%define anolis_release .0.2 Name: libdrm Summary: Direct Rendering Manager runtime library @@ -91,6 +91,7 @@ Patch1001: libdrm-make-dri-perms-okay.patch # remove backwards compat not needed on Fedora Patch1002: libdrm-2.4.0-no-bc.patch Patch1003: libdrm-2.4.114-sw.patch +Patch1004: libdrm-2.4.115-sw8a.patch %description Direct Rendering Manager runtime library @@ -282,6 +283,9 @@ cp %{SOURCE1} %{buildroot}%{_docdir}/libdrm %endif %changelog +* Wed Apr 17 2024 wxiat - 2.4.115-1.0.2 +- delete wr_f and rd_f in xf86drm.h + * Mon Mar 25 2024 wxiat - 2.4.115-1.0.1 - cherry-pick `add sw arch #69144edad3fa9f6d32041144524ba7509d3bc9a3`. - cherry-pick `Fix sw macro #ffacd58d562e62de7abf3ed2128aaaee26a703e2`.