projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c586cb2
)
iris: remove useless bo->gtt_offset assignment
author
Paulo Zanoni
<paulo.r.zanoni@intel.com>
Mon, 23 Mar 2020 22:58:17 +0000
(15:58 -0700)
committer
Marge Bot
<eric+marge@anholt.net>
Wed, 15 Apr 2020 21:35:14 +0000
(21:35 +0000)
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>
src/gallium/drivers/iris/iris_bufmgr.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/iris/iris_bufmgr.c
b/src/gallium/drivers/iris/iris_bufmgr.c
index 80bf3e58ad3a1388205f1705bc2f79e3721b4e30..baedf5f0bca079f1c2967ae67a10926d6f07a15c 100644
(file)
--- a/
src/gallium/drivers/iris/iris_bufmgr.c
+++ b/
src/gallium/drivers/iris/iris_bufmgr.c
@@
-685,7
+685,6
@@
iris_bo_gem_create_from_name(struct iris_bufmgr *bufmgr,
p_atomic_set(&bo->refcount, 1);
bo->size = open_arg.size;
- bo->gtt_offset = 0;
bo->bufmgr = bufmgr;
bo->gem_handle = open_arg.handle;
bo->name = name;