| 1 | /* SPDX-License-Identifier: MIT */ | 
|---|
| 2 | /* | 
|---|
| 3 | * Copyright © 2022 Intel Corporation | 
|---|
| 4 | */ | 
|---|
| 5 |  | 
|---|
| 6 | #ifndef __I915_GEM_TILING_H__ | 
|---|
| 7 | #define __I915_GEM_TILING_H__ | 
|---|
| 8 |  | 
|---|
| 9 | #include <linux/types.h> | 
|---|
| 10 |  | 
|---|
| 11 | struct drm_i915_gem_object; | 
|---|
| 12 | struct drm_i915_private; | 
|---|
| 13 |  | 
|---|
| 14 | bool i915_gem_object_needs_bit17_swizzle(struct drm_i915_gem_object *obj); | 
|---|
| 15 | u32 i915_gem_fence_size(struct drm_i915_private *i915, u32 size, | 
|---|
| 16 | unsigned int tiling, unsigned int stride); | 
|---|
| 17 | u32 i915_gem_fence_alignment(struct drm_i915_private *i915, u32 size, | 
|---|
| 18 | unsigned int tiling, unsigned int stride); | 
|---|
| 19 |  | 
|---|
| 20 | #endif /* __I915_GEM_TILING_H__ */ | 
|---|
| 21 |  | 
|---|