Raise base maxComputeWorkgroupStorageSize limit. 16352 -> 16384

Bug: dawn:1410
Change-Id: I0ad4873474614bcd62638583bf905ff2742eaae2
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/89821
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Loko Kung <lokokung@google.com>
This commit is contained in:
Austin Eng
2022-05-11 18:28:46 +00:00
committed by Dawn LUCI CQ
parent 75a31aa10a
commit ca8a54ed35
3 changed files with 9 additions and 3 deletions

View File

@@ -23,7 +23,7 @@
// TODO(crbug.com/dawn/685):
// For now, only expose these tiers until metrics can determine better ones.
#define LIMITS_WORKGROUP_STORAGE_SIZE(X) \
X(Maximum, maxComputeWorkgroupStorageSize, 16352, 32768, 49152, 65536)
X(Maximum, maxComputeWorkgroupStorageSize, 16384, 32768, 49152, 65536)
#define LIMITS_STORAGE_BUFFER_BINDING_SIZE(X) \
X(Maximum, maxStorageBufferBindingSize, 134217728, 1073741824, 2147483647, 4294967295)

View File

@@ -34,7 +34,7 @@ TEST(Limits, ReifyDefaultLimits_PopulatesDefault) {
limits.maxStorageBufferBindingSize = wgpu::kLimitU64Undefined;
dawn::native::Limits reified = dawn::native::ReifyDefaultLimits(limits);
EXPECT_EQ(reified.maxComputeWorkgroupStorageSize, 16352u);
EXPECT_EQ(reified.maxComputeWorkgroupStorageSize, 16384u);
EXPECT_EQ(reified.maxStorageBufferBindingSize, 134217728ul);
}
@@ -137,7 +137,7 @@ TEST(Limits, ApplyLimitTiers) {
SetLimitsStorageBufferBindingSizeTier3(&limitsStorageBufferBindingSizeTier3);
auto SetLimitsComputeWorkgroupStorageSizeTier1 = [](dawn::native::Limits* limits) {
limits->maxComputeWorkgroupStorageSize = 16352;
limits->maxComputeWorkgroupStorageSize = 16384;
};
dawn::native::Limits limitsComputeWorkgroupStorageSizeTier1;
dawn::native::GetDefaultLimits(&limitsComputeWorkgroupStorageSizeTier1);