Commit 2d87ea31 authored by Tapani Pälli's avatar Tapani Pälli Committed by Marge Bot
Browse files

iris: take a reference to memobj bo in iris_resource_from_memobj

v2: and remove it from iris_memobj_create_from_handle ... (Nanley)

Closes: #4969
Fixes: 772dc50d

 ("iris: hook up resource creation from memory object")
Signed-off-by: Tapani Pälli's avatarTapani Pälli <tapani.palli@intel.com>
Reviewed-by: Nanley Chery's avatarNanley Chery <nanley.g.chery@intel.com>
Part-of: <!11552>
parent 52547cfb
Pipeline #346011 waiting for manual action with stages
......@@ -334,8 +334,6 @@ iris_memobj_create_from_handle(struct pipe_screen *pscreen,
memobj->format = whandle->format;
memobj->stride = whandle->stride;
iris_bo_reference(memobj->bo);
return &memobj->b;
}
......@@ -1253,6 +1251,8 @@ iris_resource_from_memobj(struct pipe_screen *pscreen,
res->offset = offset;
res->external_format = memobj->format;
iris_bo_reference(memobj->bo);
return &res->base.b;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment