summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-02-05 15:02:30 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-02-05 15:02:30 +0000
commita6789f5b75a8344c5a5c401073693ed8de0f1483 (patch)
treed626303f29f94a491705981beb408ce3b6b20f5f /meta
parent637183ec62f63695df0cc3a55a60697e08101145 (diff)
downloadpoky-a6789f5b75a8344c5a5c401073693ed8de0f1483.tar.gz
libdrm: Cleanup poulsbo patch slightly further
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/drm/files/poulsbo.patch131
-rw-r--r--meta/packages/drm/libdrm_2.4.4.bb2
2 files changed, 1 insertions, 132 deletions
diff --git a/meta/packages/drm/files/poulsbo.patch b/meta/packages/drm/files/poulsbo.patch
index 7dda90a2f5..91f8975f50 100644
--- a/meta/packages/drm/files/poulsbo.patch
+++ b/meta/packages/drm/files/poulsbo.patch
@@ -728,19 +728,6 @@ Index: libdrm-2.4.4/libdrm/xf86mm.h
728+ 728+
729+ 729+
730+#endif 730+#endif
731Index: libdrm-2.4.4/Makefile.am
732===================================================================
733--- libdrm-2.4.4.orig/Makefile.am 2008-10-09 20:02:10.000000000 +0100
734+++ libdrm-2.4.4/Makefile.am 2009-02-04 16:39:55.000000000 +0000
735@@ -22,7 +22,7 @@
736 # here too, but let's just do libdrm for now
737
738 AUTOMAKE_OPTIONS = foreign
739-SUBDIRS = libdrm shared-core tests
740+SUBDIRS = libdrm shared-core
741
742 pkgconfigdir = @pkgconfigdir@
743 pkgconfig_DATA = libdrm.pc
744Index: libdrm-2.4.4/shared-core/drm.h 731Index: libdrm-2.4.4/shared-core/drm.h
745=================================================================== 732===================================================================
746--- libdrm-2.4.4.orig/shared-core/drm.h 2008-12-17 18:28:24.000000000 +0000 733--- libdrm-2.4.4.orig/shared-core/drm.h 2008-12-17 18:28:24.000000000 +0000
@@ -787,33 +774,6 @@ Index: libdrm-2.4.4/shared-core/drm.h
787 /*@}*/ 774 /*@}*/
788 775
789 /** 776 /**
790Index: libdrm-2.4.4/shared-core/i915_drm.h
791===================================================================
792--- libdrm-2.4.4.orig/shared-core/i915_drm.h 2008-12-23 00:03:35.000000000 +0000
793+++ libdrm-2.4.4/shared-core/i915_drm.h 2009-02-04 16:39:55.000000000 +0000
794@@ -767,4 +767,22 @@
795 uint64_t aper_available_size;
796 };
797
798+/*
799+ * Relocation header is 4 uint32_ts
800+ * 0 - (16-bit relocation type << 16)| 16 bit reloc count
801+ * 1 - buffer handle for another list of relocs
802+ * 2-3 - spare.
803+ */
804+#define I915_RELOC_HEADER 4
805+
806+/*
807+ * type 0 relocation has 4-uint32_t stride
808+ * 0 - offset into buffer
809+ * 1 - delta to add in
810+ * 2 - index into buffer list
811+ * 3 - reserved (for optimisations later).
812+ */
813+#define I915_RELOC_TYPE_0 0
814+#define I915_RELOC0_STRIDE 4
815+
816 #endif /* _I915_DRM_H_ */
817Index: libdrm-2.4.4/shared-core/Makefile.am 777Index: libdrm-2.4.4/shared-core/Makefile.am
818=================================================================== 778===================================================================
819--- libdrm-2.4.4.orig/shared-core/Makefile.am 2008-12-17 18:28:24.000000000 +0000 779--- libdrm-2.4.4.orig/shared-core/Makefile.am 2008-12-17 18:28:24.000000000 +0000
@@ -827,23 +787,6 @@ Index: libdrm-2.4.4/shared-core/Makefile.am
827 r128_drm.h \ 787 r128_drm.h \
828 radeon_drm.h \ 788 radeon_drm.h \
829 savage_drm.h \ 789 savage_drm.h \
830Index: libdrm-2.4.4/shared-core/nouveau_drm.h
831===================================================================
832--- libdrm-2.4.4.orig/shared-core/nouveau_drm.h 2008-10-09 20:02:11.000000000 +0100
833+++ libdrm-2.4.4/shared-core/nouveau_drm.h 2009-02-04 16:39:55.000000000 +0000
834@@ -144,9 +144,12 @@
835 NV_05 =5,
836 NV_10 =10,
837 NV_11 =11,
838+ NV_15 =11,
839 NV_17 =17,
840 NV_20 =20,
841+ NV_25 =20,
842 NV_30 =30,
843+ NV_34 =30,
844 NV_40 =40,
845 NV_44 =44,
846 NV_50 =50,
847Index: libdrm-2.4.4/shared-core/psb_drm.h 790Index: libdrm-2.4.4/shared-core/psb_drm.h
848=================================================================== 791===================================================================
849--- /dev/null 1970-01-01 00:00:00.000000000 +0000 792--- /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -2559,80 +2502,6 @@ Index: libdrm-2.4.4/shared-core/psb_reg.h
2559+ 2502+
2560+ 2503+
2561+#endif 2504+#endif
2562Index: libdrm-2.4.4/shared-core/radeon_drm.h
2563===================================================================
2564--- libdrm-2.4.4.orig/shared-core/radeon_drm.h 2008-10-09 20:02:11.000000000 +0100
2565+++ libdrm-2.4.4/shared-core/radeon_drm.h 2009-02-04 16:39:55.000000000 +0000
2566@@ -453,8 +453,17 @@
2567 int pfCurrentPage; /* which buffer is being displayed? */
2568 int crtc2_base; /* CRTC2 frame offset */
2569 int tiling_enabled; /* set by drm, read by 2d + 3d clients */
2570+
2571+ unsigned int last_fence;
2572 } drm_radeon_sarea_t;
2573
2574+/* The only fence class we support */
2575+#define DRM_RADEON_FENCE_CLASS_ACCEL 0
2576+/* Fence type that guarantees read-write flush */
2577+#define DRM_RADEON_FENCE_TYPE_RW 2
2578+/* cache flushes programmed just before the fence */
2579+#define DRM_RADEON_FENCE_FLAG_FLUSHED 0x01000000
2580+
2581 /* WARNING: If you change any of these defines, make sure to change the
2582 * defines in the Xserver file (xf86drmRadeon.h)
2583 *
2584Index: libdrm-2.4.4/shared-core/tdfx_drv.h
2585===================================================================
2586--- /dev/null 1970-01-01 00:00:00.000000000 +0000
2587+++ libdrm-2.4.4/shared-core/tdfx_drv.h 2009-02-04 16:39:55.000000000 +0000
2588@@ -0,0 +1,47 @@
2589+/* tdfx.h -- 3dfx DRM template customization -*- linux-c -*-
2590+ * Created: Wed Feb 14 12:32:32 2001 by gareth@valinux.com
2591+ */
2592+/*
2593+ * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
2594+ * All Rights Reserved.
2595+ *
2596+ * Permission is hereby granted, free of charge, to any person obtaining a
2597+ * copy of this software and associated documentation files (the "Software"),
2598+ * to deal in the Software without restriction, including without limitation
2599+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
2600+ * and/or sell copies of the Software, and to permit persons to whom the
2601+ * Software is furnished to do so, subject to the following conditions:
2602+ *
2603+ * The above copyright notice and this permission notice (including the next
2604+ * paragraph) shall be included in all copies or substantial portions of the
2605+ * Software.
2606+ *
2607+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2608+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2609+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
2610+ * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
2611+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
2612+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2613+ * OTHER DEALINGS IN THE SOFTWARE.
2614+ *
2615+ * Authors:
2616+ * Gareth Hughes <gareth@valinux.com>
2617+ */
2618+
2619+#ifndef __TDFX_H__
2620+#define __TDFX_H__
2621+
2622+/* General customization:
2623+ */
2624+
2625+#define DRIVER_AUTHOR "VA Linux Systems Inc."
2626+
2627+#define DRIVER_NAME "tdfx"
2628+#define DRIVER_DESC "3dfx Banshee/Voodoo3+"
2629+#define DRIVER_DATE "20010216"
2630+
2631+#define DRIVER_MAJOR 1
2632+#define DRIVER_MINOR 0
2633+#define DRIVER_PATCHLEVEL 0
2634+
2635+#endif
2636Index: libdrm-2.4.4/libdrm/Makefile.am 2505Index: libdrm-2.4.4/libdrm/Makefile.am
2637=================================================================== 2506===================================================================
2638--- libdrm-2.4.4.orig/libdrm/Makefile.am 2009-02-04 16:42:01.000000000 +0000 2507--- libdrm-2.4.4.orig/libdrm/Makefile.am 2009-02-04 16:42:01.000000000 +0000
diff --git a/meta/packages/drm/libdrm_2.4.4.bb b/meta/packages/drm/libdrm_2.4.4.bb
index ddb3776adb..8198592f8e 100644
--- a/meta/packages/drm/libdrm_2.4.4.bb
+++ b/meta/packages/drm/libdrm_2.4.4.bb
@@ -2,7 +2,7 @@ SECTION = "x11/base"
2LICENSE = "MIT" 2LICENSE = "MIT"
3SRC_URI = "http://dri.freedesktop.org/libdrm/libdrm-${PV}.tar.bz2 \ 3SRC_URI = "http://dri.freedesktop.org/libdrm/libdrm-${PV}.tar.bz2 \
4 file://poulsbo.patch;patch=1" 4 file://poulsbo.patch;patch=1"
5PR = "r2" 5PR = "r3"
6PROVIDES = "drm" 6PROVIDES = "drm"
7DEPENDS = "libpthread-stubs" 7DEPENDS = "libpthread-stubs"
8 8