drm/i915: Flag the execlists context object as dirty after every use
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Aug 2015 11:59:19 +0000 (12:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 16:07:50 +0000 (09:07 -0700)
commit8de8663a93eee38e82bcdd511d2b4f9e99de02a0
tree045454e6a4ffe9b93d1cfc7b530db76ff325fe2a
parentc407ed50a8f9d0be5839a7af9a4a6e14aea8cb33
drm/i915: Flag the execlists context object as dirty after every use

commit 903ecd0bb970438c3a60c2c33ec9032d6443bf67 upstream.

Everytime we use the logical context with execlists it becomes dirty (as
the hardware will write the new register values afterwards, as well as
the GPU state that will be used). We need to then flag the context as
dirty everytime since after a swap-out/swap-in cycle the dirty flag will
be cleared, and a further swap-out cycle will then loose the most recent
GPU state.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_lrc.c