Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /*
0003  * Copyright © 2022 Intel Corporation
0004  */
0005 
0006 #ifndef __I915_GEM_TILING_H__
0007 #define __I915_GEM_TILING_H__
0008 
0009 #include <linux/types.h>
0010 
0011 struct drm_i915_gem_object;
0012 struct drm_i915_private;
0013 
0014 bool i915_gem_object_needs_bit17_swizzle(struct drm_i915_gem_object *obj);
0015 u32 i915_gem_fence_size(struct drm_i915_private *i915, u32 size,
0016             unsigned int tiling, unsigned int stride);
0017 u32 i915_gem_fence_alignment(struct drm_i915_private *i915, u32 size,
0018                  unsigned int tiling, unsigned int stride);
0019 
0020 #endif /* __I915_GEM_TILING_H__ */