diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-10-02 18:13:26 +0200 |
---|---|---|
committer | Michel Dänzer <daenzer@vmware.com> | 2009-10-02 18:13:26 +0200 |
commit | 47e41b024e325f69ed514e551a6824afa58f1db6 (patch) | |
tree | 5b98f65f5d67e2a1a450ad681bc64bf229a198d2 /src/gallium/drivers/i915simple | |
parent | 7d4b348c67dbc2eff1d7dd0c043a76bc0eae57ab (diff) |
gallium: Preparations for adding more PIPE_TRANSFER_* usage flags.
Always test for PIPE_TRANSFER_READ/WRITE using the bit-wise and operator, and
add a pipe_transfer_buffer_flags() helper for getting the buffer usage flags
corresponding to them.
Diffstat (limited to 'src/gallium/drivers/i915simple')
-rw-r--r-- | src/gallium/drivers/i915simple/i915_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915simple/i915_texture.c b/src/gallium/drivers/i915simple/i915_texture.c index 15ccc1fc73..286c9ace8e 100644 --- a/src/gallium/drivers/i915simple/i915_texture.c +++ b/src/gallium/drivers/i915simple/i915_texture.c @@ -859,7 +859,7 @@ i915_transfer_map(struct pipe_screen *screen, char *map; boolean write = FALSE; - if (transfer->usage != PIPE_TRANSFER_READ) + if (transfer->usage & PIPE_TRANSFER_WRITE) write = TRUE; map = iws->buffer_map(iws, tex->buffer, write); |