gallium: Make PIPE_TRANSFER_{READ,WRITE,READ_WRITE} bitmask friendly.
authorMaarten Maathuis <madman2003@gmail.com>
Sun, 16 Aug 2009 01:20:09 +0000 (03:20 +0200)
committerMaarten Maathuis <madman2003@gmail.com>
Mon, 17 Aug 2009 16:48:14 +0000 (18:48 +0200)
src/gallium/include/pipe/p_defines.h

index bc4bc707591e9b3f17f3dcaa971b96b4a25ac9db..b01ab6d137c9fe0ffdc924057fd03414edfedc42 100644 (file)
@@ -191,9 +191,9 @@ enum pipe_texture_target {
  * Transfer object usage flags
  */
 enum pipe_transfer_usage {
-   PIPE_TRANSFER_READ,
-   PIPE_TRANSFER_WRITE,
-   PIPE_TRANSFER_READ_WRITE  /**< Read/modify/write */
+   PIPE_TRANSFER_READ = (1 << 0),
+   PIPE_TRANSFER_WRITE = (1 << 1),
+   PIPE_TRANSFER_READ_WRITE = PIPE_TRANSFER_READ | PIPE_TRANSFER_WRITE /**< Read/modify/write */
 };