Commit 7b610f1f authored by Manasi Navare's avatar Manasi Navare

drm/i915/dp: Add DSC params and DSC config to intel_crtc_state

Basic DSC parameters and DSC configuration data needs to be computed
for each of the requested mode during atomic check. This is
required since for certain modes, valid DSC parameters and config
data might not be computed in which case compression cannot be
enabled for that mode.
For that reason we need to add these params and config structure
to the intel_crtc_state so that if valid this state information
can directly be used while enabling DSC in atomic commit.

v2:
* Rebase on drm-tip (Manasi)

Cc: Gaurav K Singh <gaurav.k.singh@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Signed-off-by: default avatarManasi Navare <manasi.d.navare@intel.com>
Reviewed-by: default avatarAnusha Srivatsa <anusha.srivatsa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181128202628.20238-1-manasi.d.navare@intel.com
parent b3cf5c06
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
#include <drm/drm_auth.h> #include <drm/drm_auth.h>
#include <drm/drm_cache.h> #include <drm/drm_cache.h>
#include <drm/drm_util.h> #include <drm/drm_util.h>
#include <drm/drm_dsc.h>
#include "i915_fixed.h" #include "i915_fixed.h"
#include "i915_params.h" #include "i915_params.h"
......
...@@ -942,6 +942,15 @@ struct intel_crtc_state { ...@@ -942,6 +942,15 @@ struct intel_crtc_state {
/* Output down scaling is done in LSPCON device */ /* Output down scaling is done in LSPCON device */
bool lspcon_downsampling; bool lspcon_downsampling;
/* Display Stream compression state */
struct {
bool compression_enable;
bool dsc_split;
u16 compressed_bpp;
u8 slice_count;
} dsc_params;
struct drm_dsc_config dp_dsc_cfg;
}; };
struct intel_crtc { struct intel_crtc {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment