From 361a0d8334c846bb2b3f6b38cb556f3cf6be6cd6 Mon Sep 17 00:00:00 2001 From: Austin Eng Date: Mon, 27 Jul 2020 21:24:17 +0000 Subject: [PATCH] Update max storage buffer bindings per stage to 6 This is a temporary change to unblock Tensorflow.js until we expose querying and setting GPULimits. Bug: none Change-Id: Iad851b2be260e9fade7c326bc7fcde39b46cf7fd Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/25840 Reviewed-by: Corentin Wallez Reviewed-by: Austin Eng Commit-Queue: Austin Eng --- src/common/Constants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Constants.h b/src/common/Constants.h index 9b918f66cb..7576d665c7 100644 --- a/src/common/Constants.h +++ b/src/common/Constants.h @@ -37,7 +37,7 @@ static constexpr uint64_t kMinDynamicBufferOffsetAlignment = 256u; // Per stage limits static constexpr uint32_t kMaxSampledTexturesPerShaderStage = 16; static constexpr uint32_t kMaxSamplersPerShaderStage = 16; -static constexpr uint32_t kMaxStorageBuffersPerShaderStage = 4; +static constexpr uint32_t kMaxStorageBuffersPerShaderStage = 6; static constexpr uint32_t kMaxStorageTexturesPerShaderStage = 4; static constexpr uint32_t kMaxUniformBuffersPerShaderStage = 12;