summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2009-08-16 03:20:09 +0200
committerMaarten Maathuis <madman2003@gmail.com>2009-08-17 18:48:14 +0200
commitf199dbdb76892ec31d19f114f042bc6ec82d9e46 (patch)
treefffaf12a2d73326ef88127e3f710724b4f6628ff /src/gallium
parent93ce4c99d4c4515b8f8c4e999af53c8196b5f9eb (diff)
downloadexternal_mesa3d-f199dbdb76892ec31d19f114f042bc6ec82d9e46.zip
external_mesa3d-f199dbdb76892ec31d19f114f042bc6ec82d9e46.tar.gz
external_mesa3d-f199dbdb76892ec31d19f114f042bc6ec82d9e46.tar.bz2
gallium: Make PIPE_TRANSFER_{READ,WRITE,READ_WRITE} bitmask friendly.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/include/pipe/p_defines.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index bc4bc70..b01ab6d 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -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 */
};