|
@@ -1160,7 +1160,8 @@ i915_gem_object_wait_rendering__nonblocking(struct drm_i915_gem_object *obj,
|
|
/* Manually manage the write flush as we may have not yet
|
|
/* Manually manage the write flush as we may have not yet
|
|
* retired the buffer.
|
|
* retired the buffer.
|
|
*/
|
|
*/
|
|
- if (obj->last_write_seqno &&
|
|
|
|
|
|
+ if (ret == 0 &&
|
|
|
|
+ obj->last_write_seqno &&
|
|
i915_seqno_passed(seqno, obj->last_write_seqno)) {
|
|
i915_seqno_passed(seqno, obj->last_write_seqno)) {
|
|
obj->last_write_seqno = 0;
|
|
obj->last_write_seqno = 0;
|
|
obj->base.write_domain &= ~I915_GEM_GPU_DOMAINS;
|
|
obj->base.write_domain &= ~I915_GEM_GPU_DOMAINS;
|