summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Bornecrantz <wallbraker@gmail.com>2011-02-25 21:34:26 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-02-26 14:58:43 +0100
commit5d864032c3e4e3277bb393fb4b96d2ea74e02ae2 (patch)
tree644c4b550c31bb18b1685cedff0618b37cd07b2c
parentb8a0efb2e650eadcc4f2b1d531fcbffb8acacd9e (diff)
gallium: Add usage for resources that have a short life cycle
-rw-r--r--src/gallium/include/pipe/p_defines.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 81da4b8644..83bb4a3b13 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -335,6 +335,7 @@ enum pipe_transfer_usage {
#define PIPE_USAGE_IMMUTABLE 3 /* no change after first upload */
#define PIPE_USAGE_STREAM 4 /* upload, draw, upload, draw */
#define PIPE_USAGE_STAGING 5 /* supports data transfers from the GPU to the CPU */
+#define PIPE_USAGE_ONCE 6 /* upload, draw, free */
/* These are intended to be used in calls to is_format_supported, but