Accepting request 54717 from X11:XOrg

Accepted submit request 54717 from user sndirsch

OBS-URL: https://build.opensuse.org/request/show/54717
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdrm?expand=0&rev=42
This commit is contained in:
Lars Vogdt 2010-12-05 22:01:58 +00:00 committed by Git OBS Bridge
commit 916476a25f
5 changed files with 11 additions and 41 deletions

View File

@ -1,34 +0,0 @@
From 49447a9b957047db2549b8a929e763bbd87808ba Mon Sep 17 00:00:00 2001
From: Albert Damen <albrt@gmx.net>
Date: Sun, 7 Nov 2010 15:54:32 +0100
Subject: [PATCH] intel: initialize bufmgr.bo_mrb_exec unconditionally
If bufmgr.bo_mrb_exec is not set, drm_intel_bo_mrb_exec returns ENODEV
even though drm_intel_gem_bo_mrb_exec2 will work fine for the RENDER ring.
Fixes xf86-video-intel after commit 'add BLT ring support' (5bed685f76)
with kernels without BSD or BLT ring support (2.6.34 and before).
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31443
Signed-off-by: Albert Damen <albrt@gmx.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
intel/intel_bufmgr_gem.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 2da3a8a..2b7bd47 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -2184,8 +2184,7 @@ drm_intel_bufmgr_gem_init(int fd, int batch_size)
/* Use the new one if available */
if (exec2) {
bufmgr_gem->bufmgr.bo_exec = drm_intel_gem_bo_exec2;
- if (bufmgr_gem->has_bsd|bufmgr_gem->has_blt)
- bufmgr_gem->bufmgr.bo_mrb_exec = drm_intel_gem_bo_mrb_exec2;
+ bufmgr_gem->bufmgr.bo_mrb_exec = drm_intel_gem_bo_mrb_exec2;
} else
bufmgr_gem->bufmgr.bo_exec = drm_intel_gem_bo_exec;
bufmgr_gem->bufmgr.bo_busy = drm_intel_gem_bo_busy;
--
1.7.3.1

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f83abe5390bbffeabc03c33c74436450750c4fbb540ff78baa6a02c53bf304f7
size 390855

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4cf6253f97a98747f7e75fc58484748d0727b366e4a948e69d5e300bf9569d38
size 390553

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Dec 4 05:57:28 UTC 2010 - sndirsch@novell.com
- updated to git master commit #af3d282 (2010-12-03, still 2.4.22)
- obsoletes intel-initialize-bufmgr.bo_mrb_exec-unconditionally.patch
-------------------------------------------------------------------
Mon Nov 8 09:02:40 UTC 2010 - sndirsch@novell.com

View File

@ -35,11 +35,10 @@ Provides: libdrm-64bit = %{version}
%endif
#
Summary: Userspace Interface for Kernel DRM Services
Source: %{name}-%{version}_101102_a52e61b.tar.bz2
Source: %{name}-%{version}_20101203_af3d282.tar.bz2
Source2: baselibs.conf
Patch: enable_test_tools.diff
Patch1: revert-09b1062.diff
Patch2: intel-initialize-bufmgr.bo_mrb_exec-unconditionally.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -64,10 +63,9 @@ The package contains the userspace interface to the kernel DRM
services.
%prep
%setup -q -n %{name}-%{version}_101102_a52e61b
%setup -q -n %{name}-%{version}_20101203_af3d282
%patch
%patch1 -p1
%patch2 -p1
%build
autoreconf -fi