summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2009-11-02 18:49:40 +1000
committerBen Skeggs <bskeggs@redhat.com>2009-11-04 13:24:52 +1000
commit68c2ac9640a59881d18e2d55f666c2cd4c21e00b (patch)
treeb33ad932f3859768eb3341de01ce28406947b4ff /shared-core
parent6eafd1cf386d93bb9e34660227ca6f26aadfeb32 (diff)
nouveau: update view of available aperture space after each flush
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_drm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared-core/nouveau_drm.h b/shared-core/nouveau_drm.h
index 20503575..1e67c441 100644
--- a/shared-core/nouveau_drm.h
+++ b/shared-core/nouveau_drm.h
@@ -155,6 +155,9 @@ struct drm_nouveau_gem_pushbuf_call {
uint64_t relocs;
uint32_t suffix0;
uint32_t suffix1;
+ /* below only accessed for CALL2 */
+ uint64_t vram_available;
+ uint64_t gart_available;
};
struct drm_nouveau_gem_pin {
@@ -212,5 +215,6 @@ struct drm_nouveau_sarea {
#define DRM_NOUVEAU_GEM_CPU_PREP 0x45
#define DRM_NOUVEAU_GEM_CPU_FINI 0x46
#define DRM_NOUVEAU_GEM_INFO 0x47
+#define DRM_NOUVEAU_GEM_PUSHBUF_CALL2 0x48
#endif /* __NOUVEAU_DRM_H__ */