diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/subdev/ltc/priv.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/ltc/priv.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/ltc/priv.h b/drivers/gpu/drm/nouveau/core/subdev/ltc/priv.h index 96d12a2..594924f 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/ltc/priv.h +++ b/drivers/gpu/drm/nouveau/core/subdev/ltc/priv.h @@ -8,10 +8,14 @@ struct nvkm_ltc_priv { struct nouveau_ltc base; u32 ltc_nr; u32 lts_nr; + u32 num_tags; u32 tag_base; struct nouveau_mm tags; struct nouveau_mm_node *tag_ram; + + u32 zbc_color[NOUVEAU_LTC_MAX_ZBC_CNT][4]; + u32 zbc_depth[NOUVEAU_LTC_MAX_ZBC_CNT]; }; #define nvkm_ltc_create(p,e,o,d) \ @@ -33,7 +37,7 @@ int nvkm_ltc_create_(struct nouveau_object *, struct nouveau_object *, struct nouveau_oclass *, int, void **); #define _nvkm_ltc_dtor _nouveau_subdev_dtor -#define _nvkm_ltc_init _nouveau_subdev_init +int _nvkm_ltc_init(struct nouveau_object *); #define _nvkm_ltc_fini _nouveau_subdev_fini int gf100_ltc_ctor(struct nouveau_object *, struct nouveau_object *, @@ -47,12 +51,19 @@ void gf100_ltc_tags_free(struct nouveau_ltc *, struct nouveau_mm_node **); struct nvkm_ltc_impl { struct nouveau_oclass base; void (*intr)(struct nouveau_subdev *); + void (*cbc_clear)(struct nvkm_ltc_priv *, u32 start, u32 limit); void (*cbc_wait)(struct nvkm_ltc_priv *); + + int zbc; + void (*zbc_clear_color)(struct nvkm_ltc_priv *, int, const u32[4]); + void (*zbc_clear_depth)(struct nvkm_ltc_priv *, int, const u32); }; void gf100_ltc_intr(struct nouveau_subdev *); void gf100_ltc_cbc_clear(struct nvkm_ltc_priv *, u32, u32); void gf100_ltc_cbc_wait(struct nvkm_ltc_priv *); +void gf100_ltc_zbc_clear_color(struct nvkm_ltc_priv *, int, const u32[4]); +void gf100_ltc_zbc_clear_depth(struct nvkm_ltc_priv *, int, const u32); #endif |