From: Jason Ekstrand Date: Sat, 27 Oct 2018 03:18:41 +0000 (-0500) Subject: iris/compute: Don't increment the grid size offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c16e711ff2ddd70111a10c0e9eac634f72b39e76;p=mesa.git iris/compute: Don't increment the grid size offset It may be in the dynamic state buffer but the fact that we have a resource takes care of that. We don't need to add in the address of the dynamic state buffer again. --- diff --git a/src/gallium/drivers/iris/iris_draw.c b/src/gallium/drivers/iris/iris_draw.c index f9b8db7b64e..cd7c969e91b 100644 --- a/src/gallium/drivers/iris/iris_draw.c +++ b/src/gallium/drivers/iris/iris_draw.c @@ -118,8 +118,6 @@ iris_update_grid_size_resource(struct iris_context *ice, u_upload_data(ice->state.dynamic_uploader, 0, sizeof(grid->grid), 4, grid->grid, &grid_ref->offset, &grid_ref->res); - grid_ref->offset += - iris_bo_offset_from_base_address(iris_resource_bo(grid_ref->res)); } void *surf_map = NULL;