[Nouveau] [PATCH 3/4] gallium: do not rely on the automatic values of an enum for bitmask purposes
Maarten Maathuis
madman2003 at gmail.com
Sat Aug 15 19:14:19 PDT 2009
- PIPE_TRANSFER_READ ended up being defined as 0, which is obviously fail.
---
src/gallium/include/pipe/p_defines.h | 6 +++---
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..9d47584 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,
+ PIPE_TRANSFER_WRITE = 2,
+ PIPE_TRANSFER_READ_WRITE = 3 /**< Read/modify/write */
};
--
1.6.4
More information about the Nouveau
mailing list