- intel-initialize-bufmgr.bo_mrb_exec-unconditionally.patch
* no longer require kernels without BLT ring support (2.6.34 an before). (bnc #651989, bnc #651501) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libdrm?expand=0&rev=69
This commit is contained in:
parent
bf0cb07572
commit
9b42d001e6
34
intel-initialize-bufmgr.bo_mrb_exec-unconditionally.patch
Normal file
34
intel-initialize-bufmgr.bo_mrb_exec-unconditionally.patch
Normal file
@ -0,0 +1,34 @@
|
||||
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
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 8 09:02:40 UTC 2010 - sndirsch@novell.com
|
||||
|
||||
- intel-initialize-bufmgr.bo_mrb_exec-unconditionally.patch
|
||||
* no longer require kernels without BLT ring support (2.6.34 an
|
||||
before). (bnc #651989, bnc #651501)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 6 00:29:27 UTC 2010 - sndirsch@novell.com
|
||||
|
||||
|
@ -39,6 +39,7 @@ Source: %{name}-%{version}_101102_a52e61b.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
|
||||
@ -66,6 +67,7 @@ services.
|
||||
%setup -q -n %{name}-%{version}_101102_a52e61b
|
||||
%patch
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user