Skip to content

Commit

Permalink
drm/i915/display: clean up some gem/ includes
Browse files Browse the repository at this point in the history
Drop some unnecessary gem/ includes.

We seem to include xe_device.h through some compat gem headers, so we
need to include it directly in compat i915_drv.h to get
xe_device_has_flat_ccs().

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/afd2917cc0a943660886937bb5f45c277132e147.1726589119.git.jani.nikula@intel.com
  • Loading branch information
Jani Nikula committed Sep 19, 2024
1 parent b652f40 commit 6f4429f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/i915/display/intel_cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include "intel_vblank.h"
#include "skl_watermark.h"

#include "gem/i915_gem_object.h"

/* Cursor formats */
static const u32 intel_cursor_formats[] = {
DRM_FORMAT_ARGB8888,
Expand Down
9 changes: 4 additions & 5 deletions drivers/gpu/drm/i915/display/intel_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
* Copyright © 2021 Intel Corporation
*/

#include <drm/drm_blend.h>
#include <drm/drm_modeset_helper.h>

#include <linux/dma-fence.h>
#include <linux/dma-resv.h>

#include "gem/i915_gem_object.h"
#include "gem/i915_gem_object_types.h"
#include <drm/drm_blend.h>
#include <drm/drm_gem.h>
#include <drm/drm_modeset_helper.h>

#include "i915_drv.h"
#include "intel_atomic_plane.h"
#include "intel_bo.h"
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "i915_utils.h"
#include "intel_runtime_pm.h"
#include "xe_device.h" /* for xe_device_has_flat_ccs() */
#include "xe_device_types.h"

static inline struct drm_i915_private *to_i915(const struct drm_device *dev)
Expand Down

0 comments on commit 6f4429f

Please sign in to comment.