]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: fix the CFB size check
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 16 Oct 2015 19:44:43 +0000 (16:44 -0300)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 3 Dec 2015 13:13:45 +0000 (11:13 -0200)
commit90d5234fdbccbd03250a54acf1a1793654e7eebf
tree9361fb91300033bccbaa3eb82c49dd8792e78cd5
parentbffce907d64042b5683ed3076e839d0249606264
drm/i915: fix the CFB size check

In function find_compression_threshold() we try to over-allocate CFB
space in order to reduce reallocations and fragmentation, and we're
not considering that at the CFB size check. Consider it.

There is also a longer-term plan to kill
dev_priv->fbc.uncompressed_size, but this will come later.

v2: Use drm_mm_node_allocated() (Chris).

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/
drivers/gpu/drm/i915/intel_fbc.c