summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2012-02-19 19:01:10 -0500
committerMatt Turner <mattst88@gmail.com>2012-02-19 19:01:10 -0500
commit7367536b73b8a287fe7206f24493c9b50cacb463 (patch)
tree44726a443e4cbf0799a050e25cdd1a549c013a6e /x11-libs/libdrm/files
parentRemove sys-kernel/gentoo-sources (diff)
downloadloongson-7367536b73b8a287fe7206f24493c9b50cacb463.tar.gz
loongson-7367536b73b8a287fe7206f24493c9b50cacb463.tar.bz2
loongson-7367536b73b8a287fe7206f24493c9b50cacb463.zip
Remove x11-libs/libdrm
Old version. Purpose of DRM patch unknown. (I assume it's for supporting DRI on the Fuloong, but I don't have hardware, and the 3D driver for SiS has been removed in Mesa-8.0.) Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'x11-libs/libdrm/files')
-rw-r--r--x11-libs/libdrm/files/libdrm-loongson.patch54
1 files changed, 0 insertions, 54 deletions
diff --git a/x11-libs/libdrm/files/libdrm-loongson.patch b/x11-libs/libdrm/files/libdrm-loongson.patch
deleted file mode 100644
index c067c9d..0000000
--- a/x11-libs/libdrm/files/libdrm-loongson.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-diff -urN libdrm-2.3.0/libdrm/xf86drm.h libdrm-2.3.0.new/libdrm/xf86drm.h
---- libdrm-2.3.0/libdrm/xf86drm.h 2006-11-09 05:55:14.000000000 +0800
-+++ libdrm-2.3.0.new/libdrm/xf86drm.h 2007-03-01 05:29:41.000000000 +0800
-@@ -346,6 +346,29 @@
- "r" (new)); \
- } while(0)
-
-+#elif defined(__mips__)
-+
-+#define DRM_CAS(lock, old, new, ret) \
-+ do { \
-+ __asm__ __volatile__( \
-+ " .set mips3;.set noreorder;\n" \
-+ " sync; \n" \
-+ " ll %1, %0;\n" \
-+ " bne %1, %2, 1f;\n" \
-+ " li %1, 1; \n" \
-+ " move %1, %3; \n" \
-+ " sc %1, %0;\n" \
-+ " xori %1, %1, 1\n" \
-+ "1: \n" \
-+ " .set mips0; .set reorder;\n" \
-+ : "=m" (__drm_dummy_lock(lock)),\
-+ "=&r" (ret) \
-+ : "r" (old), \
-+ "r" (new) \
-+ :"memory","$8" \
-+ ); \
-+ } while(0)
-+
- #elif defined(__sparc__)
-
- #define DRM_CAS(lock,old,new,__ret) \
-@@ -427,7 +450,7 @@
- #define DRM_CAS(lock,old,new,ret) do { ret=1; } while (0) /* FAST LOCK FAILS */
- #endif
-
--#if defined(__alpha__) || defined(__powerpc__)
-+#if defined(__alpha__) || defined(__powerpc__) || defined(__mips__)
- #define DRM_CAS_RESULT(_result) int _result
- #else
- #define DRM_CAS_RESULT(_result) char _result
-diff -urN libdrm-2.3.0/shared-core/drm_sarea.h libdrm-2.3.0.new/shared-core/drm_sarea.h
---- libdrm-2.3.0/shared-core/drm_sarea.h 2006-11-08 12:03:26.000000000 +0800
-+++ libdrm-2.3.0.new/shared-core/drm_sarea.h 2007-03-01 05:31:34.000000000 +0800
-@@ -37,6 +37,8 @@
- /* SAREA area needs to be at least a page */
- #if defined(__alpha__)
- #define SAREA_MAX 0x2000
-+#elif defined(__mips__)
-+#define SAREA_MAX 0x4000
- #elif defined(__ia64__)
- #define SAREA_MAX 0x10000 /* 64kB */
- #else