summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-07-02 12:24:19 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-07-02 12:29:07 +0900
commitd16fcd07f876fe7fb29f5f4e3df4e83ff7de3422 (patch)
tree545b20b25de755b632c35309a1dc9c1f4a96333e /src/gallium/auxiliary/pipebuffer/pb_bufmgr.h
parentea4ca10b1bec67c8a60db0e4e5581318ce9f62f9 (diff)
pipebuffer: Debug buffer manager to detect buffer under- and overflows.
It should detect both cpu and gpu buffer overflows.
Diffstat (limited to 'src/gallium/auxiliary/pipebuffer/pb_bufmgr.h')
-rw-r--r--src/gallium/auxiliary/pipebuffer/pb_bufmgr.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h b/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h
index 00279f7010..32867029ee 100644
--- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h
+++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h
@@ -175,7 +175,16 @@ struct pb_manager *
pb_alt_manager_create(struct pb_manager *provider1,
struct pb_manager *provider2);
-
+
+/**
+ * Debug buffer manager to detect buffer under- and overflows.
+ *
+ * Band size should be a multiple of the largest alignment
+ */
+struct pb_manager *
+pb_debug_manager_create(struct pb_manager *provider, size_t band_size);
+
+
#ifdef __cplusplus
}
#endif