drm/i915: Import two fixes from Linux 4.2.8
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 17 Apr 2016 12:40:42 +0000 (14:40 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 17 Apr 2016 12:41:42 +0000 (14:41 +0200)
commitb49c8cf99c4aee41afec9ed54acbcab9436a9c40
treea12e20a75790a65f530da6e91d57fcdb612d19ce
parent1d4dda444dd4d2c156860c4cc9d1308623e3fc0d
drm/i915: Import two fixes from Linux 4.2.8

* Always mark the object as dirty when used by the GPU

* Flush pipecontrol post-sync writes

In both cases, software didn't explicitely order cpu write buffers to be
flushed, leading to graphics corruption or a hung gpu after incoherent
reads on the gpu side.
sys/dev/drm/i915/i915_gem_execbuffer.c
sys/dev/drm/i915/intel_lrc.c
sys/dev/drm/i915/intel_ringbuffer.c