diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2009-08-12 14:21:00 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2009-08-18 15:55:42 +1000 |
commit | 28f4bfa04b8ad4dfcc55027f4b2385f4dd6c23c5 (patch) | |
tree | 2df11fe6b21b1a9b0d4322c7406061be201956e5 /libdrm/nouveau/nouveau_private.h | |
parent | 250ab3a38eb6ef18d747717cabd0195ad04a82e0 (diff) |
nouveau: support for copy-less pushbuf ioctl
Diffstat (limited to 'libdrm/nouveau/nouveau_private.h')
-rw-r--r-- | libdrm/nouveau/nouveau_private.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libdrm/nouveau/nouveau_private.h b/libdrm/nouveau/nouveau_private.h index 49dde5eb..67144e33 100644 --- a/libdrm/nouveau/nouveau_private.h +++ b/libdrm/nouveau/nouveau_private.h @@ -36,11 +36,17 @@ #include "nouveau_resource.h" #include "nouveau_pushbuf.h" +#define CALPB_BUFFERS 4 +#define CALPB_BUFSZ 16384 struct nouveau_pushbuf_priv { struct nouveau_pushbuf base; int use_cal; - struct nouveau_bo *buffer; + uint32_t cal_suffix0; + uint32_t cal_suffix1; + struct nouveau_bo *buffer[CALPB_BUFFERS]; + int current; + int current_offset; unsigned *pushbuf; unsigned size; |