mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
drm/i915/fbc: Start passing around intel_fbc
In preparation for multiple FBC instances start passing around intel_fbc pointers rather than i915 pointers. And once there are multiple of these we can't rely on container_of() to get back to the i915, so we toss in a fbc->i915 pointer already. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211104144520.22605-17-ville.syrjala@linux.intel.com Acked-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
This commit is contained in:
@@ -52,10 +52,10 @@ static int i915_fbc_status(struct seq_file *m, void *unused)
|
||||
wakeref = intel_runtime_pm_get(&dev_priv->runtime_pm);
|
||||
mutex_lock(&fbc->lock);
|
||||
|
||||
if (intel_fbc_is_active(dev_priv)) {
|
||||
if (intel_fbc_is_active(fbc)) {
|
||||
seq_puts(m, "FBC enabled\n");
|
||||
seq_printf(m, "Compressing: %s\n",
|
||||
yesno(intel_fbc_is_compressing(dev_priv)));
|
||||
yesno(intel_fbc_is_compressing(fbc)));
|
||||
} else {
|
||||
seq_printf(m, "FBC disabled: %s\n", fbc->no_fbc_reason);
|
||||
}
|
||||
@@ -79,7 +79,7 @@ static int i915_fbc_false_color_set(void *data, u64 val)
|
||||
{
|
||||
struct drm_i915_private *dev_priv = data;
|
||||
|
||||
return intel_fbc_set_false_color(dev_priv, val);
|
||||
return intel_fbc_set_false_color(&dev_priv->fbc, val);
|
||||
}
|
||||
|
||||
DEFINE_SIMPLE_ATTRIBUTE(i915_fbc_false_color_fops,
|
||||
@@ -2063,7 +2063,7 @@ i915_fifo_underrun_reset_write(struct file *filp,
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = intel_fbc_reset_underrun(dev_priv);
|
||||
ret = intel_fbc_reset_underrun(&dev_priv->fbc);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user