iris/compute: Don't increment the grid size offset
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 27 Oct 2018 03:18:41 +0000 (22:18 -0500)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:09 +0000 (10:26 -0800)
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

index f9b8db7b64ea5b6fb3db0739679adb7bac7efc02..cd7c969e91b299aea2ead8992b46a8849396348c 100644 (file)
@@ -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;