mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
drm/i915/gem: pass display to HAS_DISPLAY()
Underneath, HAS_DISPLAY() really expects a struct intel_display. Switch to it in preparation for removing the transitional __to_intel_display() macro. Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com> Link: https://lore.kernel.org/r/79c87f75771a1d120cdd35dcfd6b380620ce99f1.1754499175.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
e3929f84a1
commit
a1a8c68cda
|
|
@ -110,6 +110,7 @@ struct tiled_blits {
|
|||
|
||||
static bool fastblit_supports_x_tiling(const struct drm_i915_private *i915)
|
||||
{
|
||||
struct intel_display *display = i915->display;
|
||||
int gen = GRAPHICS_VER(i915);
|
||||
|
||||
/* XY_FAST_COPY_BLT does not exist on pre-gen9 platforms */
|
||||
|
|
@ -121,7 +122,7 @@ static bool fastblit_supports_x_tiling(const struct drm_i915_private *i915)
|
|||
if (GRAPHICS_VER_FULL(i915) < IP_VER(12, 55))
|
||||
return false;
|
||||
|
||||
return HAS_DISPLAY(i915);
|
||||
return HAS_DISPLAY(display);
|
||||
}
|
||||
|
||||
static bool fast_blit_ok(const struct blit_buffer *buf)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user