]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/fbc: Don't set an illegal fence if unfenced
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Aug 2016 15:54:24 +0000 (16:54 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Aug 2016 15:59:36 +0000 (16:59 +0100)
commit064212dcf90a9fa91b576375809458532e6c593a
treef239396429de417fc54ed7c716d118221b4065b7
parentd4ffb9afc199cf1558d93e84e98ca53a6a1dd188
drm/i915/fbc: Don't set an illegal fence if unfenced

If the frontbuffer doesn't have an associated fence, it will have a
fence reg of -1. If we attempt to OR in this register into the FBC
control register we end up setting all control bits, oops!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: "Zanoni, Paulo R" <paulo.r.zanoni@intel.com>
Reviwed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160819155428.1670-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_fbc.c