Mesa (master): r300g: enum r300_blitter_op is a bitmask

Marek Olšák mareko at kemper.freedesktop.org
Sun Jun 27 06:17:52 PDT 2010


Module: Mesa
Branch: master
Commit: f39800b33908180fcf60a80c367525aef869b929
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f39800b33908180fcf60a80c367525aef869b929

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sat Jun 26 17:35:56 2010 +0200

r300g: enum r300_blitter_op is a bitmask

---

 src/gallium/drivers/r300/r300_blit.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c
index 389354c..c88f44b 100644
--- a/src/gallium/drivers/r300/r300_blit.c
+++ b/src/gallium/drivers/r300/r300_blit.c
@@ -25,11 +25,11 @@
 
 #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)



More information about the mesa-commit mailing list