]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/fbc: sanitize i915.enable_fbc during FBC init
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 13 Apr 2016 19:01:09 +0000 (16:01 -0300)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 20 Jun 2016 20:47:30 +0000 (17:47 -0300)
commit2e582d42bfcf3a57372b6f3c300b469167160925
tree8ebc63442e2d4cb8fc58ad314e84d753dc9cd8ce
parente3e75901de2d795523abde87116d6e05b75d5bdc
drm/i915/fbc: sanitize i915.enable_fbc during FBC init

The DDX driver changes its behavior depending on the value it reads
from i915.enable_fbc, so sanitize the value in order to allow it to
know what's going on. It uses this in order to choose the defaults for
the TearFree option. Before this patch, it would read -1 and always
assume that FBC was disabled, so it wouldn't force TearFree.

v2: Extract intel_sanitize_fbc_option() (Chris).
v3: Rebase.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1460574069-14005-1-git-send-email-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/intel_fbc.c