]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - drivers/gpu/drm/nouveau/include/nvkm/subdev/ltc.h
1 /* SPDX-License-Identifier: GPL-2.0 */
4 #include <core/subdev.h>
7 #define NVKM_LTC_MAX_ZBC_CNT 16
10 const struct nvkm_ltc_func
*func
;
11 struct nvkm_subdev subdev
;
19 struct nvkm_mm_node
*tag_ram
;
23 u32 zbc_color
[NVKM_LTC_MAX_ZBC_CNT
][4];
24 u32 zbc_depth
[NVKM_LTC_MAX_ZBC_CNT
];
27 int nvkm_ltc_tags_alloc(struct nvkm_ltc
*, u32 count
, struct nvkm_mm_node
**);
28 void nvkm_ltc_tags_free(struct nvkm_ltc
*, struct nvkm_mm_node
**);
29 void nvkm_ltc_tags_clear(struct nvkm_ltc
*, u32 first
, u32 count
);
31 int nvkm_ltc_zbc_color_get(struct nvkm_ltc
*, int index
, const u32
[4]);
32 int nvkm_ltc_zbc_depth_get(struct nvkm_ltc
*, int index
, const u32
);
34 void nvkm_ltc_invalidate(struct nvkm_ltc
*);
35 void nvkm_ltc_flush(struct nvkm_ltc
*);
37 int gf100_ltc_new(struct nvkm_device
*, int, struct nvkm_ltc
**);
38 int gk104_ltc_new(struct nvkm_device
*, int, struct nvkm_ltc
**);
39 int gk20a_ltc_new(struct nvkm_device
*, int, struct nvkm_ltc
**);
40 int gm107_ltc_new(struct nvkm_device
*, int, struct nvkm_ltc
**);
41 int gm200_ltc_new(struct nvkm_device
*, int, struct nvkm_ltc
**);
42 int gp100_ltc_new(struct nvkm_device
*, int, struct nvkm_ltc
**);