diff options
Diffstat (limited to 'src/gallium/winsys/r600/drm/r600_bo.c')
-rw-r--r-- | src/gallium/winsys/r600/drm/r600_bo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/winsys/r600/drm/r600_bo.c b/src/gallium/winsys/r600/drm/r600_bo.c index 4098a6e1998..0f5b063cf5a 100644 --- a/src/gallium/winsys/r600/drm/r600_bo.c +++ b/src/gallium/winsys/r600/drm/r600_bo.c @@ -126,13 +126,13 @@ void *r600_bo_map(struct radeon *radeon, struct r600_bo *bo, unsigned usage, voi { struct pipe_context *pctx = ctx; - if (usage & PB_USAGE_UNSYNCHRONIZED) { + if (usage & PIPE_TRANSFER_UNSYNCHRONIZED) { radeon_bo_map(radeon, bo->bo); return (uint8_t *) bo->bo->data + bo->offset; } if (p_atomic_read(&bo->bo->reference.count) > 1) { - if (usage & PB_USAGE_DONTBLOCK) { + if (usage & PIPE_TRANSFER_DONTBLOCK) { return NULL; } if (ctx) { @@ -140,7 +140,7 @@ void *r600_bo_map(struct radeon *radeon, struct r600_bo *bo, unsigned usage, voi } } - if (usage & PB_USAGE_DONTBLOCK) { + if (usage & PIPE_TRANSFER_DONTBLOCK) { uint32_t domain; if (radeon_bo_busy(radeon, bo->bo, &domain)) |