mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
libdrm:
- adding upstream patch
This commit is contained in:
parent
7b2be5b82a
commit
49882345af
25
packages/graphics/libdrm/patches/patch-upstream-1.diff
Normal file
25
packages/graphics/libdrm/patches/patch-upstream-1.diff
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From a4041e096ce0faea3dd39b4d78014d45a8cacec0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Chris Wilson <chris@chris-wilson.co.uk>
|
||||||
|
Date: Sun, 07 Mar 2010 14:15:40 +0000
|
||||||
|
Subject: intel: Repeat execbuffer if interrupted by signal
|
||||||
|
|
||||||
|
Repeat while EINTR, not EAGAIN! One more source of corruption
|
||||||
|
erradicated, hurray!
|
||||||
|
|
||||||
|
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
|
||||||
|
---
|
||||||
|
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
|
||||||
|
index 21fe099..8838536 100644
|
||||||
|
--- a/intel/intel_bufmgr_gem.c
|
||||||
|
+++ b/intel/intel_bufmgr_gem.c
|
||||||
|
@@ -1559,7 +1559,7 @@ drm_intel_gem_bo_exec2(drm_intel_bo *bo, int used,
|
||||||
|
do {
|
||||||
|
ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_EXECBUFFER2,
|
||||||
|
&execbuf);
|
||||||
|
- } while (ret != 0 && errno == EAGAIN);
|
||||||
|
+ } while (ret != 0 && errno == EINTR);
|
||||||
|
|
||||||
|
if (ret != 0) {
|
||||||
|
ret = -errno;
|
||||||
|
--
|
||||||
|
cgit v0.8.3-6-g21f6
|
Loading…
x
Reference in New Issue
Block a user