brintos

brintos / linux-shallow public Read only

0
0
Text · 613 B · bdae839 Raw
36 lines · c
1/* SPDX-License-Identifier: MIT */2/*3 * Copyright © 2023 Intel Corporation4 */5 6#ifndef I915_VMA_H7#define I915_VMA_H8 9#include <uapi/drm/i915_drm.h>10 11#include "xe_ggtt_types.h"12 13/* We don't want these from i915_drm.h in case of Xe */14#undef I915_TILING_X15#undef I915_TILING_Y16#define I915_TILING_X 017#define I915_TILING_Y 018 19struct xe_bo;20 21struct i915_vma {22	struct xe_bo *bo, *dpt;23	struct xe_ggtt_node *node;24};25 26#define i915_ggtt_clear_scanout(bo) do { } while (0)27 28#define i915_vma_fence_id(vma) -129 30static inline u32 i915_ggtt_offset(const struct i915_vma *vma)31{32	return vma->node->base.start;33}34 35#endif36