aboutsummaryrefslogtreecommitdiffstats
path: root/radeon
diff options
context:
space:
mode:
authorMichel Dänzer2016-01-21 03:08:49 -0600
committerMichel Dänzer2016-01-21 03:08:49 -0600
commitdb138b9ba12a0de5d6140832c0679c2418e3e7e0 (patch)
tree838f6989d94fe47b9e322b933623293b11927413 /radeon
parent25712f1d35f6f64167ede45d3dc72a410f367ceb (diff)
downloadexternal-libdrm-db138b9ba12a0de5d6140832c0679c2418e3e7e0.tar.gz
external-libdrm-db138b9ba12a0de5d6140832c0679c2418e3e7e0.tar.xz
external-libdrm-db138b9ba12a0de5d6140832c0679c2418e3e7e0.zip
radeon: Pass radeon_bo_open flags to the DRM_RADEON_GEM_CREATE ioctl
Not doing so makes it impossible for radeon_bo_open callers to set any RADEON_GEM_* flags for the newly created BO. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'radeon')
-rw-r--r--radeon/radeon_bo_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/radeon/radeon_bo_gem.c b/radeon/radeon_bo_gem.c
index c9fe19ff..fbd453d9 100644
--- a/radeon/radeon_bo_gem.c
+++ b/radeon/radeon_bo_gem.c
@@ -103,7 +103,7 @@ static struct radeon_bo *bo_open(struct radeon_bo_manager *bom,
103 args.size = size; 103 args.size = size;
104 args.alignment = alignment; 104 args.alignment = alignment;
105 args.initial_domain = bo->base.domains; 105 args.initial_domain = bo->base.domains;
106 args.flags = 0; 106 args.flags = flags;
107 args.handle = 0; 107 args.handle = 0;
108 r = drmCommandWriteRead(bom->fd, DRM_RADEON_GEM_CREATE, 108 r = drmCommandWriteRead(bom->fd, DRM_RADEON_GEM_CREATE,
109 &args, sizeof(args)); 109 &args, sizeof(args));