Mesa (master): iris: remove useless bo->gtt_offset assignment
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 15 21:49:14 UTC 2020
Module: Mesa
Branch: master
Commit: 103cb32c794e6428d155d88e42cdf6b9a19b2f31
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=103cb32c794e6428d155d88e42cdf6b9a19b2f31
Author: Paulo Zanoni <paulo.r.zanoni at intel.com>
Date: Mon Mar 23 15:58:17 2020 -0700
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 at intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4561>
---
src/gallium/drivers/iris/iris_bufmgr.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c
index 80bf3e58ad3..baedf5f0bca 100644
--- 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;
More information about the mesa-commit
mailing list