Mesa (master): Revert "gallium/radeon: count contexts"
Marek Olšák
mareko at kemper.freedesktop.org
Sat Aug 6 15:30:29 UTC 2016
Module: Mesa
Branch: master
Commit: 3fb4a9b3b3ef034a3317529197041c25831df286
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3fb4a9b3b3ef034a3317529197041c25831df286
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Aug 6 17:28:57 2016 +0200
Revert "gallium/radeon: count contexts"
This reverts commit b403eb338533894ee012a96bf55653996c92ec7c.
Not needed.
---
src/gallium/drivers/radeon/r600_pipe_common.c | 3 ---
src/gallium/drivers/radeon/r600_pipe_common.h | 1 -
2 files changed, 4 deletions(-)
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
index 5e9d0b6..7fd3fe0 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.c
+++ b/src/gallium/drivers/radeon/r600_pipe_common.c
@@ -471,7 +471,6 @@ bool r600_common_context_init(struct r600_common_context *rctx,
rctx->dma.flush = r600_flush_dma_ring;
}
- p_atomic_inc(&rscreen->num_contexts);
return true;
}
@@ -479,8 +478,6 @@ void r600_common_context_cleanup(struct r600_common_context *rctx)
{
unsigned i,j;
- p_atomic_dec(&rctx->screen->num_contexts);
-
/* Release DCC stats. */
for (i = 0; i < ARRAY_SIZE(rctx->dcc_stats); i++) {
assert(!rctx->dcc_stats[i].query_active);
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.h b/src/gallium/drivers/radeon/r600_pipe_common.h
index ccaaeeb..91e3cb2 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.h
+++ b/src/gallium/drivers/radeon/r600_pipe_common.h
@@ -363,7 +363,6 @@ struct r600_common_screen {
uint64_t debug_flags;
bool has_cp_dma;
bool has_streamout;
- int num_contexts;
/* Texture filter settings. */
int force_aniso; /* -1 = disabled */
More information about the mesa-commit
mailing list