gallium: Define PIPE_TEXTURE_USAGE_DYNAMIC.
authorYounes Manton <younes.m@gmail.com>
Fri, 5 Dec 2008 07:22:56 +0000 (02:22 -0500)
committerYounes Manton <younes.m@gmail.com>
Sat, 10 Jan 2009 18:52:04 +0000 (13:52 -0500)
Knowing how the client intends to use the texture will give the
driver the opportunity to optimize for such cases.

src/gallium/include/pipe/p_defines.h

index 6bfac581f9fad0fa2cab5e29d8b0a068d1f103c3..5c6a92b53bc5bb39d6454b496b9e17770c3b5eb1 100644 (file)
@@ -171,6 +171,7 @@ enum pipe_texture_target {
 #define PIPE_TEXTURE_USAGE_PRIMARY         0x4 /* ie a frontbuffer */
 #define PIPE_TEXTURE_USAGE_DEPTH_STENCIL   0x8
 #define PIPE_TEXTURE_USAGE_SAMPLER         0x10
+#define PIPE_TEXTURE_USAGE_DYNAMIC         0x20
 /** Pipe driver custom usage flags should be greater or equal to this value */
 #define PIPE_TEXTURE_USAGE_CUSTOM          (1 << 16)