diff options
author | Jan Zielinski <[email protected]> | 2019-07-24 12:03:49 +0200 |
---|---|---|
committer | Jan Zielinski <[email protected]> | 2019-07-30 13:39:18 +0000 |
commit | c5c05979f779661a36b1bd9bd7ae4d84a44fd5eb (patch) | |
tree | 1952cd648e6f05af1c4dcd1b6239bfdf2861a99a /src/gallium/drivers/swr/rasterizer/common/rdtsc_buckets.h | |
parent | cda4c628936ed85c2cace082efc848721a123246 (diff) |
rasterizer/swr: move BucketMgr to SwrContext
This move gets us back to parity with global manager
in that we can dump render context buckets now.
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/common/rdtsc_buckets.h')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/common/rdtsc_buckets.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/common/rdtsc_buckets.h b/src/gallium/drivers/swr/rasterizer/common/rdtsc_buckets.h index bbc9538b86d..b00cbf63eba 100644 --- a/src/gallium/drivers/swr/rasterizer/common/rdtsc_buckets.h +++ b/src/gallium/drivers/swr/rasterizer/common/rdtsc_buckets.h @@ -48,7 +48,17 @@ extern THREAD UINT tlsThreadId; class BucketManager { public: - BucketManager() {} + + uint32_t mCurrentFrame; + std::vector<uint32_t> mBucketMap; + bool mBucketsInitialized; + std::string mBucketMgrName; + + + BucketManager(std::string name) : mCurrentFrame(0), mBucketsInitialized(false), mBucketMgrName(name) + { + mBucketMap.clear(); + } ~BucketManager(); // removes all registered thread data |