aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_bufmgr.c
diff options
context:
space:
mode:
authorPaulo Zanoni <[email protected]>2020-03-23 15:58:17 -0700
committerMarge Bot <[email protected]>2020-04-15 21:35:14 +0000
commit103cb32c794e6428d155d88e42cdf6b9a19b2f31 (patch)
tree1bd8d5a59223e693223a2726e74f84b6e8197e5d /src/gallium/drivers/iris/iris_bufmgr.c
parentc586cb23e0a72e59cac45ad1fb85d0f3c71b6562 (diff)
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 <[email protected]> Signed-off-by: Paulo Zanoni <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4561>
Diffstat (limited to 'src/gallium/drivers/iris/iris_bufmgr.c')
-rw-r--r--src/gallium/drivers/iris/iris_bufmgr.c1
1 files changed, 0 insertions, 1 deletions
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;