freedreno: drop timestamp field
authorRob Clark <robdclark@gmail.com>
Sat, 3 Jun 2017 16:53:15 +0000 (12:53 -0400)
committerRob Clark <robdclark@gmail.com>
Wed, 7 Jun 2017 16:32:00 +0000 (12:32 -0400)
unused.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_resource.c
src/gallium/drivers/freedreno/freedreno_resource.h

index 4676b493acb902e8f8bb91508933bb469bb70f2d..5ac50bbb4140783fa4135bd4d14ef72c28488659 100644 (file)
@@ -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
index 60ba7e6961fbd68d97ff65cb7df7fa95f3c3ecd4..9f6da5c21c11e9e6bf444556fe6bebb901bf4bd4 100644 (file)
@@ -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;