From: Paulo Zanoni Date: Mon, 23 Mar 2020 22:58:17 +0000 (-0700) Subject: iris: remove useless bo->gtt_offset assignment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=103cb32c794e6428d155d88e42cdf6b9a19b2f31;p=mesa.git 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 Signed-off-by: Paulo Zanoni Part-of: --- 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;