diff options
author | Marek Olšák <marek.olsak@amd.com> | 2016-05-12 13:13:42 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2016-05-19 12:35:50 +0200 |
commit | 54737aabb9ec914baed43656b88e39f1153c7ff9 (patch) | |
tree | a39de79e6def5a0d4fd0eaf4e455f71e13a73e9b /src/gallium/winsys/radeon | |
parent | f330b7a14fd913c50a5df227ee3d5699113357d1 (diff) | |
download | external_mesa3d-54737aabb9ec914baed43656b88e39f1153c7ff9.zip external_mesa3d-54737aabb9ec914baed43656b88e39f1153c7ff9.tar.gz external_mesa3d-54737aabb9ec914baed43656b88e39f1153c7ff9.tar.bz2 |
gallium/radeon: don't set PB_USAGE in winsyses
There is no point.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/winsys/radeon')
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index b07afe6..950cbb3 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -796,7 +796,6 @@ static struct pb_buffer *radeon_winsys_bo_from_ptr(struct radeon_winsys *rws, pipe_reference_init(&bo->base.reference, 1); bo->handle = args.handle; bo->base.alignment = 0; - bo->base.usage = PB_USAGE_GPU_WRITE | PB_USAGE_GPU_READ; bo->base.size = size; bo->base.vtbl = &radeon_bo_vtbl; bo->rws = ws; @@ -924,7 +923,6 @@ static struct pb_buffer *radeon_winsys_bo_from_handle(struct radeon_winsys *rws, /* Initialize it. */ pipe_reference_init(&bo->base.reference, 1); bo->base.alignment = 0; - bo->base.usage = PB_USAGE_GPU_WRITE | PB_USAGE_GPU_READ; bo->base.size = (unsigned) size; bo->base.vtbl = &radeon_bo_vtbl; bo->rws = ws; |