Revert "gallium/radeon: count contexts"
authorMarek Olšák <marek.olsak@amd.com>
Sat, 6 Aug 2016 15:28:57 +0000 (17:28 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 6 Aug 2016 15:29:23 +0000 (17:29 +0200)
This reverts commit b403eb338533894ee012a96bf55653996c92ec7c.

Not needed.

src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeon/r600_pipe_common.h

index 5e9d0b65fc796f00311c102a39056bd87f40a34f..7fd3fe08f63a0293c9cdb8743688007c6ba98252 100644 (file)
@@ -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);
index ccaaeeb24413063ea34256ef7392488872c8c8d7..91e3cb29928a2a83a97eda157e730fc2f6f946e9 100644 (file)
@@ -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 */