Move i915_gem_object_needs_bit17_swizzle() to i915_gem_tiling.[ch] as a i915_gem_object function related to tiling. Also un-inline while at it; does not seem like this is a function needed in hot paths. v2: i915_gem_tiling.[ch] instead of intel_ggtt_fencing.[ch] (Chris) Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220316095018.137998-1-jani.nikula@intel.com
20 lines
566 B
C
20 lines
566 B
C
/* 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_gem_object;
|
|
struct drm_i915_private;
|
|
|
|
bool i915_gem_object_needs_bit17_swizzle(struct drm_i915_gem_object *obj);
|
|
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__ */
|