Commit 873c995a authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915/fbc: Nuke more FBC state

There isn't a good reason why we'd have to cache all this
plane state stuff in the FBC state. Instead we can just
pre-calculate what FBC will really need.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211124113652.22090-6-ville.syrjala@linux.intel.comReviewed-by: default avatarMika Kahola <mika.kahola@intel.com>
parent 26679087
This diff is collapsed.
......@@ -415,18 +415,10 @@ struct intel_fbc {
struct intel_fbc_state_cache {
const char *no_fbc_reason;
struct {
int src_w;
int src_h;
} plane;
struct {
const struct drm_format_info *format;
unsigned int stride;
u64 modifier;
} fb;
unsigned int cfb_stride;
unsigned int cfb_size;
unsigned int fence_y_offset;
u16 override_cfb_stride;
u16 interval;
s8 fence_id;
} state_cache;
......@@ -443,12 +435,6 @@ struct intel_fbc {
enum i9xx_plane_id i9xx_plane;
} crtc;
struct {
const struct drm_format_info *format;
unsigned int stride;
u64 modifier;
} fb;
unsigned int cfb_stride;
unsigned int cfb_size;
unsigned int fence_y_offset;
......
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