[Mesa-dev] [PATCH 2/7] swr/rast: Checking gCoreBuckets and CORE_BUCKETS are equal length at compile time
Alok Hota
alok.hota at intel.com
Wed May 23 19:58:03 UTC 2018
---
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 f289a31..48ea397 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;
--
2.7.4
More information about the mesa-dev
mailing list