diff options
author | Marek Olšák <[email protected]> | 2016-10-02 15:45:15 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-10-04 16:11:58 +0200 |
commit | e43bd861e8182bd93c54631185e6018fc243aea3 (patch) | |
tree | 99e90d756219450ac8fba93c87b7ff4e65accad4 /src/gallium/drivers/radeon | |
parent | b523a9ddc5447ce03c686154ebbc5b1229e5d0a4 (diff) |
radeonsi: track buffer bind history
similar to gl_buffer_object::UsageHistory
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/r600_buffer_common.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c index 784522dd456..228674a02ad 100644 --- a/src/gallium/drivers/radeon/r600_buffer_common.c +++ b/src/gallium/drivers/radeon/r600_buffer_common.c @@ -516,6 +516,7 @@ r600_alloc_buffer_struct(struct pipe_screen *screen, rbuffer->b.b.screen = screen; rbuffer->b.vtbl = &r600_buffer_vtbl; rbuffer->buf = NULL; + rbuffer->bind_history = 0; rbuffer->TC_L2_dirty = false; rbuffer->is_shared = false; util_range_init(&rbuffer->valid_buffer_range); diff --git a/src/gallium/drivers/radeon/r600_pipe_common.h b/src/gallium/drivers/radeon/r600_pipe_common.h index 038c7c7dda6..cea1f22c259 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.h +++ b/src/gallium/drivers/radeon/r600_pipe_common.h @@ -180,6 +180,7 @@ struct r600_resource { unsigned bo_alignment; enum radeon_bo_domain domains; enum radeon_bo_flag flags; + unsigned bind_history; /* The buffer range which is initialized (with a write transfer, * streamout, DMA, or as a random access target). The rest of |