Mesa (master): swr/rast: Check gCoreBuckets/CORE_BUCKETS equal length at compile time
Tim Rowley
torowley at kemper.freedesktop.org
Fri May 25 16:00:09 UTC 2018
Module: Mesa
Branch: master
Commit: f09636e2e1311b24cbcd2a2d49e97f8a69702cfd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f09636e2e1311b24cbcd2a2d49e97f8a69702cfd
Author: Alok Hota <alok.hota at intel.com>
Date: Fri May 25 10:19:44 2018 -0500
swr/rast: Check gCoreBuckets/CORE_BUCKETS equal length at compile time
Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>
---
src/gallium/drivers/swr/rasterizer/core/rdtsc_core.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/swr/rasterizer/core/rdtsc_core.cpp b/src/gallium/drivers/swr/rasterizer/core/rdtsc_core.cpp
index f289a319ca..48ea397018 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;
More information about the mesa-commit
mailing list