diff options
author | Michel Dänzer <[email protected]> | 2009-10-02 18:13:26 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2009-10-02 18:13:26 +0200 |
commit | 47e41b024e325f69ed514e551a6824afa58f1db6 (patch) | |
tree | 5b98f65f5d67e2a1a450ad681bc64bf229a198d2 /src/gallium/drivers/trace | |
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/trace')
-rw-r--r-- | src/gallium/drivers/trace/tr_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/trace/tr_screen.c b/src/gallium/drivers/trace/tr_screen.c index 26f1c04594f..ab605c7fc87 100644 --- a/src/gallium/drivers/trace/tr_screen.c +++ b/src/gallium/drivers/trace/tr_screen.c @@ -403,7 +403,7 @@ trace_screen_transfer_map(struct pipe_screen *_screen, map = screen->transfer_map(screen, transfer); if(map) { - if(transfer->usage != PIPE_TRANSFER_READ) { + if(transfer->usage & PIPE_TRANSFER_WRITE) { assert(!tr_trans->map); tr_trans->map = map; } |