mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 05:57:51 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user