drm/i915/icl: Do not fix dbuf block size to 512
authorMahesh Kumar <mahesh1.kumar@intel.com>
Tue, 30 Jan 2018 13:49:11 +0000 (11:49 -0200)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 31 Jan 2018 16:18:32 +0000 (14:18 -0200)
commitdf8ee19087d24ca00c4f76b3a28c793b661b4b1e
tree55a80abf6355f21e2cd23c23fedc3275ec5a2fca
parent9a9e3dfd6f8bff68434b9c5e1a3aa88f83a612ad
drm/i915/icl: Do not fix dbuf block size to 512

GEN9/10 had fixed DBuf block size of 512. Dbuf block size is not a
fixed number anymore in GEN11, it varies according to bits per pixel
and tiling. If 8bpp & Yf-tile surface, block size = 256 else block
size = 512

This patch addresses the same.

v2 (from Paulo):
  - Make it compile.
  - Fix a few coding style issues.
v3:
  - Rebase on top of upstream patches
v4 (from Paulo):
  - Bikeshed if statements (James).

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: James Ausmus <james.ausmus@intel.com>
Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180130134918.32283-3-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c