From 4643e6753e89d99f414fb7daf832981eb7d517a2 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 13 Sep 2024 14:11:08 +0800 Subject: [PATCH] add sw64-8A support --- libdrm-Add-sw64-8A-architecture.patch | 16 ++++++++++++++++ libdrm.spec | 6 +++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 libdrm-Add-sw64-8A-architecture.patch diff --git a/libdrm-Add-sw64-8A-architecture.patch b/libdrm-Add-sw64-8A-architecture.patch new file mode 100644 index 0000000..411173e --- /dev/null +++ b/libdrm-Add-sw64-8A-architecture.patch @@ -0,0 +1,16 @@ +diff -uNar libdrm-2.4.109.org/xf86drm.h libdrm-2.4.109.sw/xf86drm.h +--- libdrm-2.4.109.org/xf86drm.h 2024-09-12 19:18:32.857610658 +0800 ++++ libdrm-2.4.109.sw/xf86drm.h 2024-09-12 19:22:55.864615279 +0800 +@@ -392,11 +392,9 @@ + " ldi %1, %3\n" \ + "1: lldw %0, 0(%1)\n" \ + " cmpeq %0, %4, %2\n" \ +- " wr_f %2\n" \ ++ " beq %2, 2f\n" \ + " mov %5, %0\n" \ + " lstw %0, 0(%1)\n" \ +- " rd_f %0\n" \ +- " beq %2, 2f\n" \ + " beq %0, 3f\n" \ + " memb\n" \ + "2: cmpeq %2, 0, %2\n" \ diff --git a/libdrm.spec b/libdrm.spec index 345504c..319dec2 100644 --- a/libdrm.spec +++ b/libdrm.spec @@ -47,7 +47,7 @@ end} Name: libdrm Version: 2.4.109 -Release: 7 +Release: 8 License: MIT Summary: library for direct rendering manager @@ -82,6 +82,7 @@ Patch1001: %{name}-make-dri-perms-okay.patch Patch1002: %{name}-2.4.0-no-bc.patch %ifarch sw_64 Patch1003: libdrm-2.4.109-sw.patch +Patch1004: libdrm-Add-sw64-8A-architecture.patch %endif %description @@ -272,6 +273,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_bindir}/drmdevice %endif %changelog +* Fri Sep 13 2024 wuzx - 2.4.109-8 +- add sw64-8A support + * Thu Dec 08 2022 zhouwenpei - 2.4.109-7 - remove rpath -- Gitee