iris: remove useless bo->gtt_offset assignment
We assign a real value a few lines below, and none of the lines in between rely on the zeroed bo->gtt_offset value. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4561>
This commit is contained in:
parent
c586cb23e0
commit
103cb32c79
|
@ -685,7 +685,6 @@ iris_bo_gem_create_from_name(struct iris_bufmgr *bufmgr,
|
||||||
p_atomic_set(&bo->refcount, 1);
|
p_atomic_set(&bo->refcount, 1);
|
||||||
|
|
||||||
bo->size = open_arg.size;
|
bo->size = open_arg.size;
|
||||||
bo->gtt_offset = 0;
|
|
||||||
bo->bufmgr = bufmgr;
|
bo->bufmgr = bufmgr;
|
||||||
bo->gem_handle = open_arg.handle;
|
bo->gem_handle = open_arg.handle;
|
||||||
bo->name = name;
|
bo->name = name;
|
||||||
|
|
Loading…
Reference in New Issue