From: Rob Clark Date: Sat, 3 Jun 2017 16:53:15 +0000 (-0400) Subject: freedreno: drop timestamp field X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=313f6360aa1204eea8639112d5ddce697a7aabdf;p=mesa.git freedreno: drop timestamp field unused. Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index 4676b493acb..5ac50bbb414 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -109,7 +109,6 @@ realloc_bo(struct fd_resource *rsc, uint32_t size) fd_bo_del(rsc->bo); rsc->bo = fd_bo_new(screen->dev, size, flags); - rsc->timestamp = 0; util_range_set_empty(&rsc->valid_buffer_range); fd_bc_invalidate_resource(rsc, true); } @@ -203,7 +202,6 @@ fd_try_shadow_resource(struct fd_context *ctx, struct fd_resource *rsc, /* TODO valid_buffer_range?? */ swap(rsc->bo, shadow->bo); - swap(rsc->timestamp, shadow->timestamp); swap(rsc->write_batch, shadow->write_batch); /* at this point, the newly created shadow buffer is not referenced diff --git a/src/gallium/drivers/freedreno/freedreno_resource.h b/src/gallium/drivers/freedreno/freedreno_resource.h index 60ba7e6961f..9f6da5c21c1 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.h +++ b/src/gallium/drivers/freedreno/freedreno_resource.h @@ -71,7 +71,6 @@ struct fd_resource { bool layer_first; /* see above description */ uint32_t layer_size; struct fd_resource_slice slices[MAX_MIP_LEVELS]; - uint32_t timestamp; /* buffer range that has been initialized */ struct util_range valid_buffer_range;