drm/i915: Small joiner RAM buffer size is platform-specific
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 25 Sep 2019 23:45:42 +0000 (16:45 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 26 Sep 2019 17:15:46 +0000 (10:15 -0700)
commit45d3c5cd5233258ffa9326b33ae4af59fb127dfb
tree37a0adc5faa4077329259d2514c702107f1dd851
parentc1f2b8124bdf2d7812a759f83a36a6d6178b5c94
drm/i915: Small joiner RAM buffer size is platform-specific

According to the bspec, GLK/CNL have a smaller small joiner RAM buffer
than ICL+.  This feels like something that could easily change again on
future platforms, so let's just add a function to return the proper
per-platform buffer size.  That may also slightly simplify the upcoming
bigjoiner enabling.

Since we have to change intel_dp_dsc_get_output_bpp()'s signature to
pass the dev_priv down for the platform check, let's take the
opportunity to also make that function static since it isn't used
outside the intel_dp file.

v2: Minor rebase on top of Maarten's changes.

Bspec: 20388
Bspec: 49259
Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190925234542.24289-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/display/intel_dp.c