projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5816d64
)
drm/i915: fix for when semaphore updates fail
author
Ben Widawsky
<
[email protected]
>
Wed, 11 Apr 2012 18:18:20 +0000
(11:18 -0700)
committer
Daniel Vetter
<
[email protected]
>
Thu, 12 Apr 2012 19:14:13 +0000
(21:14 +0200)
This fixes a long standing issue where emitting the semaphore updates
may have failed, but we've already updated our internal data structure.
Reported-by: Daniel Vetter <
[email protected]
>
Signed-off-by: Ben Widawsky <
[email protected]
>
Reviewed-by: Chris Wilson <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
drivers/gpu/drm/i915/i915_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem.c
b/drivers/gpu/drm/i915/i915_gem.c
index 9fcdc9a917eb7bfed99e0642906e06081b586d19..0115b12df573e054b4821c0de26af4bb9d77413a 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem.c
+++ b/
drivers/gpu/drm/i915/i915_gem.c
@@
-2001,10
+2001,12
@@
i915_gem_object_sync(struct drm_i915_gem_object *obj,
seqno = request->seqno;
}
- from->sync_seqno[idx] = seqno;
- return to->sync_to(to, from, seqno - 1);
+ ret = to->sync_to(to, from, seqno - 1);
+ if (!ret)
+ from->sync_seqno[idx] = seqno;
+ return ret;
}
static void i915_gem_object_finish_gtt(struct drm_i915_gem_object *obj)