]> git.karo-electronics.de Git - linux-beck.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)
commit12ecf4b979ec79b72e7aff35b172cada85e128a5
treef239396429de417fc54ed7c716d118221b4065b7
parent4fc788f5ee3dba89c3269dcfafcc36136a1ffd0e
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