mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
drm/i915/tdf: convert intel_tdf.[ch] to struct intel_display
Going forward, struct intel_display is the main display device data pointer. Convert the intel_tdf.[ch] glue to struct intel_display. Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/26d976f23295713f9a7cda20e32b7ef5aad3dd9e.1740502116.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
0749f18967
commit
7bcb697c94
|
|
@ -7425,7 +7425,7 @@ static void intel_atomic_commit_tail(struct intel_atomic_state *state)
|
|||
|
||||
intel_atomic_commit_fence_wait(state);
|
||||
|
||||
intel_td_flush(dev_priv);
|
||||
intel_td_flush(display);
|
||||
|
||||
intel_atomic_prepare_plane_clear_colors(state);
|
||||
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ static void frontbuffer_flush(struct drm_i915_private *i915,
|
|||
trace_intel_frontbuffer_flush(display, frontbuffer_bits, origin);
|
||||
|
||||
might_sleep();
|
||||
intel_td_flush(i915);
|
||||
intel_td_flush(display);
|
||||
intel_drrs_flush(i915, frontbuffer_bits);
|
||||
intel_psr_flush(display, frontbuffer_bits, origin);
|
||||
intel_fbc_flush(i915, frontbuffer_bits, origin);
|
||||
|
|
|
|||
|
|
@ -14,12 +14,12 @@
|
|||
* the display flip, since display engine is never coherent with CPU/GPU caches.
|
||||
*/
|
||||
|
||||
struct drm_i915_private;
|
||||
struct intel_display;
|
||||
|
||||
#ifdef I915
|
||||
static inline void intel_td_flush(struct drm_i915_private *i915) {}
|
||||
static inline void intel_td_flush(struct intel_display *display) {}
|
||||
#else
|
||||
void intel_td_flush(struct drm_i915_private *i915);
|
||||
void intel_td_flush(struct intel_display *display);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@
|
|||
#include "intel_display_types.h"
|
||||
#include "intel_tdf.h"
|
||||
|
||||
void intel_td_flush(struct drm_i915_private *i915)
|
||||
void intel_td_flush(struct intel_display *display)
|
||||
{
|
||||
xe_device_td_flush(i915);
|
||||
struct xe_device *xe = to_xe_device(display->drm);
|
||||
|
||||
xe_device_td_flush(xe);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user