diff options
author | Alok Hota <[email protected]> | 2018-05-25 10:19:44 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2018-05-25 10:56:01 -0500 |
commit | f09636e2e1311b24cbcd2a2d49e97f8a69702cfd (patch) | |
tree | 019862ca2218bf3e7850d5a07d6da69fbef19570 /src/gallium/drivers/swr | |
parent | cfe75cc7b5acbf0692baff07a516ff4efe7fa968 (diff) |
swr/rast: Check gCoreBuckets/CORE_BUCKETS equal length at compile time
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/rdtsc_core.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/rdtsc_core.cpp b/src/gallium/drivers/swr/rasterizer/core/rdtsc_core.cpp index f289a319ca3..48ea397018b 100644 --- a/src/gallium/drivers/swr/rasterizer/core/rdtsc_core.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/rdtsc_core.cpp @@ -89,6 +89,7 @@ BUCKET_DESC gCoreBuckets[] = { { "BEStoreTiles", "", true, 0xff00cccc }, { "BEEndTile", "", false, 0xffffffff }, }; +static_assert(NumBuckets == (sizeof(gCoreBuckets) / sizeof(gCoreBuckets[0])), "RDTSC Bucket enum and description table size mismatched."); /// @todo bucketmanager and mapping should probably be a part of the SWR context std::vector<uint32_t> gBucketMap; |