[libdrm] radeon: Pass radeon_bo_open flags to the DRM_RADEON_GEM_CREATE ioctl
diff mbox

Message ID 1453367630-3439-1-git-send-email-michel@daenzer.net
State New
Headers show

Commit Message

Michel Dänzer Jan. 21, 2016, 9:13 a.m. UTC
From: Michel Dänzer <michel.daenzer@amd.com>

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

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---
 radeon/radeon_bo_gem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alex Deucher Jan. 21, 2016, 7:42 p.m. UTC | #1
On Thu, Jan 21, 2016 at 4:13 AM, Michel Dänzer <michel@daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer@amd.com>
>
> 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>

>
> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
> ---
>  radeon/radeon_bo_gem.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/radeon/radeon_bo_gem.c b/radeon/radeon_bo_gem.c
> index c9fe19f..fbd453d 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,
>          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
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

Patch
diff mbox

diff --git a/radeon/radeon_bo_gem.c b/radeon/radeon_bo_gem.c
index c9fe19f..fbd453d 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,
         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));