Reduce kMaxQueryCount to 4096

Bug: gpuweb#3648
Change-Id: Ic0dc211a4338f42de1a533c0f18f8852d8af4d36
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/112445
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
Austin Eng 2022-12-06 02:24:49 +00:00 committed by Dawn LUCI CQ
parent 0249ef5b58
commit 99cdc539df
2 changed files with 7 additions and 4 deletions

View File

@ -55,10 +55,9 @@ static constexpr float kLodMax = 1000.0;
// on macOS, but we decide to do it on all platforms.
static constexpr uint64_t kCopyBufferToBufferOffsetAlignment = 4u;
// The maximum size of visibilityResultBuffer is 256KB on Metal, to fit the restriction, limit the
// maximum size of query set to 64KB. The size of a query is 8-bytes, the maximum query count is 64
// * 1024 / 8.
static constexpr uint32_t kMaxQueryCount = 8192u;
// Metal has a maximum size of 32Kb for a counter set buffer. Each query is 8 bytes.
// So, the maximum nymber of queries is 32Kb / 8.
static constexpr uint32_t kMaxQueryCount = 4096;
// An external texture occupies multiple binding slots. These are the per-external-texture bindings
// needed.

View File

@ -86,6 +86,10 @@ crbug.com/1309194 [ linux ] webgpu:web_platform,copyToTexture,canvas:copy_conten
crbug.com/1309194 [ linux ] webgpu:web_platform,copyToTexture,canvas:copy_contents_from_gl_context_canvas:* [ Skip ]
crbug.com/1309194 [ linux ] webgpu:web_platform,copyToTexture,canvas:copy_contents_from_gpu_context_canvas:* [ Skip ]
# Limit value changed. gpuweb#3648
webgpu:api,validation,query_set,create:count:type="occlusion" [ Failure ]
webgpu:api,validation,query_set,create:count:type="timestamp" [ Failure ]
################################################################################
# web_platform crashes on SwiftShader
# Skipped instead of just Crash because of the number of failures