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)
commitedc0fdbbf6d8e179a0b28b9fc7597cbadabe77a8
tree8969b45f24e18f3542e9e6338cebdca6d75fe2cf
parentc4213885cd01c6ec15f44b4d06d67790601e1731
drm/i915: Extract CFB threshold calculation

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