Skip to contentSkip to conversation

radeon: Pass radeon_bo_open flags to the DRM_RADEON_GEM_CREATE ioctl

PATCH In review Michel Dänzer 2 participants 2 messages Jan 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 radeon: Pass radeon_bo_open flags to the DRM_RADEON_GEM_CREATE ioctl

From: Michel Dänzer <[email protected]>

Not doing so makes it impossible for radeon_bo_open callers to set any RADEON_GEM_* flags for the newly created BO.

---
 radeon/radeon_bo_gem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
radeon/radeon_bo_gem.c +1 -1
index c9fe19f..fbd453d 100644
@@ -103,7 +103,7 @@ static struct radeon_bo *bo_open(struct radeon_bo_manager *bom,
         args.size = size;
         args.alignment = alignment;
         args.initial_domain = bo->base.domains;
-        args.flags = 0;
+        args.flags = flags;
         args.handle = 0;
         r = drmCommandWriteRead(bom->fd, DRM_RADEON_GEM_CREATE,
                                 &args, sizeof(args));
Signature · 6 lines
2.7.0.rc3

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Michel Dänzer

From: Michel Dänzer <[email protected]>

Not doing so makes it impossible for radeon_bo_open callers to set any RADEON_GEM_* flags for the newly created BO.

Quoted 22 lines
---
 radeon/radeon_bo_gem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
radeon/radeon_bo_gem.c +1 -2
index c9fe19f..fbd453d 100644
@@ -103,7 +103,7 @@ static struct radeon_bo *bo_open(struct radeon_bo_manager *bom,
         args.size = size;
         args.alignment = alignment;
         args.initial_domain = bo->base.domains;
-        args.flags = 0;
+        args.flags = flags;
         args.handle = 0;
         r = drmCommandWriteRead(bom->fd, DRM_RADEON_GEM_CREATE,
                                 &args, sizeof(args));
--

2.7.0.rc3

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel