gallium: New PIPE_TEXTURE_USAGE_PRIMARY flag for primary surfaces.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 7 May 2008 05:14:48 +0000 (14:14 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 7 May 2008 05:14:48 +0000 (14:14 +0900)
src/gallium/include/pipe/p_state.h

index 571ea8c6e15abe172bc290933acd21ade2d4db79..e7ee8c97ed73e076c982d69c804446914bc579e9 100644 (file)
@@ -287,8 +287,9 @@ struct pipe_surface
 
 #define PIPE_TEXTURE_USAGE_RENDER_TARGET   0x1
 #define PIPE_TEXTURE_USAGE_DISPLAY_TARGET  0x2 /* ie a backbuffer */
-#define PIPE_TEXTURE_USAGE_DEPTH_STENCIL   0x4
-#define PIPE_TEXTURE_USAGE_SAMPLER         0x8
+#define PIPE_TEXTURE_USAGE_PRIMARY         0x4 /* ie a frontbuffer */
+#define PIPE_TEXTURE_USAGE_DEPTH_STENCIL   0x8
+#define PIPE_TEXTURE_USAGE_SAMPLER         0x10
 
 /**
  * Texture object.