r300g: enum r300_blitter_op is a bitmask
authorMarek Olšák <maraeo@gmail.com>
Sat, 26 Jun 2010 15:35:56 +0000 (17:35 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 26 Jun 2010 15:35:56 +0000 (17:35 +0200)
src/gallium/drivers/r300/r300_blit.c

index 389354c4e4a44b742d01aec1cd1c004c701494f4..c88f44bf2e65fffd0fd65de0bad0fb274fcd3875 100644 (file)
 
 #include "util/u_format.h"
 
-enum r300_blitter_op
+enum r300_blitter_op /* bitmask */
 {
-    R300_CLEAR,
-    R300_CLEAR_SURFACE,
-    R300_COPY
+    R300_CLEAR         = 1,
+    R300_CLEAR_SURFACE = 2,
+    R300_COPY          = 4
 };
 
 static void r300_blitter_begin(struct r300_context* r300, enum r300_blitter_op op)