drm/i915: Extract CFB threshold calculation
authorBen Widawsky <benjamin.widawsky@intel.com>
Thu, 19 Jun 2014 19:06:11 +0000 (12:06 -0700)
committerJani Nikula <jani.nikula@intel.com>
Thu, 3 Jul 2014 08:27:43 +0000 (11:27 +0300)
Right now, there is no threshold (0 means fail, 1 means 1:1 compression
limit). This is to split the function/non-functional change of the next
patch.

The next patch will start to attempt to reduce the amount of CFB space
we need for dire situations. It will be contained within this function.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gem_stolen.c