All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: jani.nikula@intel.com
Subject: [Intel-gfx] [PATCH 05/21] drm/i915: split out gem/i915_gem_tiling.h from i915_drv.h
Date: Wed,  5 Jan 2022 21:56:21 +0200	[thread overview]
Message-ID: <430cefd14731000d2bada42901f8a257d65b3a51.1641411696.git.jani.nikula@intel.com> (raw)
In-Reply-To: <cover.1641411696.git.jani.nikula@intel.com>

We already have the gem/i915_gem_tiling.c file.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/i915/gem/i915_gem_tiling.c |  1 +
 drivers/gpu/drm/i915/gem/i915_gem_tiling.h | 18 ++++++++++++++++++
 drivers/gpu/drm/i915/i915_drv.h            |  5 -----
 drivers/gpu/drm/i915/i915_vma.c            |  2 +-
 4 files changed, 20 insertions(+), 6 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/gem/i915_gem_tiling.h

diff --git a/drivers/gpu/drm/i915/gem/i915_gem_tiling.c b/drivers/gpu/drm/i915/gem/i915_gem_tiling.c
index ef4d0f7dc118..cf324329703f 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_tiling.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_tiling.c
@@ -12,6 +12,7 @@
 #include "i915_gem_ioctls.h"
 #include "i915_gem_mman.h"
 #include "i915_gem_object.h"
+#include "i915_gem_tiling.h"
 
 /**
  * DOC: buffer object tiling
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_tiling.h b/drivers/gpu/drm/i915/gem/i915_gem_tiling.h
new file mode 100644
index 000000000000..9924196a8139
--- /dev/null
+++ b/drivers/gpu/drm/i915/gem/i915_gem_tiling.h
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2022 Intel Corporation
+ */
+
+#ifndef __I915_GEM_TILING_H__
+#define __I915_GEM_TILING_H__
+
+#include <linux/types.h>
+
+struct drm_i915_private;
+
+u32 i915_gem_fence_size(struct drm_i915_private *i915, u32 size,
+			unsigned int tiling, unsigned int stride);
+u32 i915_gem_fence_alignment(struct drm_i915_private *i915, u32 size,
+			     unsigned int tiling, unsigned int stride);
+
+#endif /* __I915_GEM_TILING_H__ */
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 9cc3b5b9ec39..bb48ab725a44 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1734,11 +1734,6 @@ static inline bool i915_gem_object_needs_bit17_swizzle(struct drm_i915_gem_objec
 		i915_gem_object_is_tiled(obj);
 }
 
-u32 i915_gem_fence_size(struct drm_i915_private *dev_priv, u32 size,
-			unsigned int tiling, unsigned int stride);
-u32 i915_gem_fence_alignment(struct drm_i915_private *dev_priv, u32 size,
-			     unsigned int tiling, unsigned int stride);
-
 const char *i915_cache_level_str(struct drm_i915_private *i915, int type);
 
 /* intel_device_info.c */
diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c
index 09d3424c9270..81a611b7d36f 100644
--- a/drivers/gpu/drm/i915/i915_vma.c
+++ b/drivers/gpu/drm/i915/i915_vma.c
@@ -26,8 +26,8 @@
 #include <drm/drm_gem.h>
 
 #include "display/intel_frontbuffer.h"
-
 #include "gem/i915_gem_lmem.h"
+#include "gem/i915_gem_tiling.h"
 #include "gt/intel_engine.h"
 #include "gt/intel_engine_heartbeat.h"
 #include "gt/intel_gt.h"
-- 
2.30.2


  parent reply	other threads:[~2022-01-05 19:57 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-05 19:56 [Intel-gfx] [PATCH 00/21] drm/i915: clean up i915_drv.h Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 01/21] drm/i915: split out i915_getparam.h from i915_drv.h Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 02/21] drm/i915: split out i915_cmd_parser.h " Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 03/21] drm/i915: split out i915_gem_evict.h " Jani Nikula
2022-01-06  8:55   ` Tvrtko Ursulin
2022-01-07 13:22     ` Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 04/21] drm/i915: split out gem/i915_gem_userptr.h " Jani Nikula
2022-01-05 19:56 ` Jani Nikula [this message]
2022-01-05 19:56 ` [Intel-gfx] [PATCH 06/21] drm/i915: split out i915_gem.h declarations " Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 07/21] drm/i915: split out i915_gem_internal.h " Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 08/21] drm/i915: remove leftover i915_gem_pm.h declarations " Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 09/21] drm/i915: split out gem/i915_gem_dmabuf.h " Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 10/21] drm/i915: split out gem/i915_gem_create.h " Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 11/21] drm/i915: split out gem/i915_gem_domain.h " Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 12/21] drm/i915: move i915_cache_level_str() static in i915_debugfs.c Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 13/21] drm/i915: move i915_gem_vm_lookup() where it's used Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 14/21] drm/i915: move i915_reset_count()/i915_reset_engine_count() out of i915_drv.h Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 15/21] drm/i915: split out i915_file_private.h from i915_drv.h Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 16/21] drm/i915: don't include drm_cache.h in i915_drv.h Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 17/21] drm/i915: include shmem_fs.h only where needed Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 18/21] drm/i915: include some drm headers " Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 19/21] drm/i915: axe lots of unnecessary includes from i915_drv.h Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 20/21] drm/i915: fix drm_i915.h include grouping and sorting Jani Nikula
2022-01-05 19:56 ` [Intel-gfx] [PATCH 21/21] drm/i915: group drm_i915.h forward declarations together Jani Nikula
2022-01-05 20:10 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: clean up i915_drv.h Patchwork
2022-01-05 20:28   ` Jani Nikula

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=430cefd14731000d2bada42901f8a257d65b3a51.1641411696.git.jani.nikula@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.