aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/include
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-08-10 04:10:28 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-08-10 05:28:13 +1000
commitf38fdb6a376ead4ce8c6c1c75f71cc35b9e40bfc (patch)
tree21a5a6ecc4d2b3ef3fba629bab1d17bb36f6d7a7 /drivers/gpu/drm/nouveau/core/include
parentdrm/nouveau/ltc: s/ltcg/ltc/ + cleanup (diff)
downloadlinux-dev-f38fdb6a376ead4ce8c6c1c75f71cc35b9e40bfc.tar.xz
linux-dev-f38fdb6a376ead4ce8c6c1c75f71cc35b9e40bfc.zip
drm/nouveau/ltc: add zbc drivers
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include')
-rw-r--r--drivers/gpu/drm/nouveau/core/include/subdev/ltc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/subdev/ltc.h b/drivers/gpu/drm/nouveau/core/include/subdev/ltc.h
index de9ac0325c6e..b909a7363f6b 100644
--- a/drivers/gpu/drm/nouveau/core/include/subdev/ltc.h
+++ b/drivers/gpu/drm/nouveau/core/include/subdev/ltc.h
@@ -4,6 +4,8 @@
#include <core/subdev.h>
#include <core/device.h>
+#define NOUVEAU_LTC_MAX_ZBC_CNT 16
+
struct nouveau_mm_node;
struct nouveau_ltc {
@@ -13,6 +15,11 @@ struct nouveau_ltc {
struct nouveau_mm_node **);
void (*tags_free)(struct nouveau_ltc *, struct nouveau_mm_node **);
void (*tags_clear)(struct nouveau_ltc *, u32 first, u32 count);
+
+ int zbc_min;
+ int zbc_max;
+ int (*zbc_color_get)(struct nouveau_ltc *, int index, const u32[4]);
+ int (*zbc_depth_get)(struct nouveau_ltc *, int index, const u32);
};
static inline struct nouveau_ltc *