mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
swr/rast: Check gCoreBuckets/CORE_BUCKETS equal length at compile time
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
cfe75cc7b5
commit
f09636e2e1
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue