From c16e711ff2ddd70111a10c0e9eac634f72b39e76 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 26 Oct 2018 22:18:41 -0500 Subject: [PATCH] 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. --- src/gallium/drivers/iris/iris_draw.c | 2 -- 1 file changed, 2 deletions(-) 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; -- 2.30.2