mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-15 16:16:08 +00:00
dawn_wire: Support chunked commands
This CL adds support for chunking large commands by first serializing large commands first into a separate buffer, and then sending the buffer data chunk by chunk. This code path is used for large writeBuffer and writeTexture, as well as the inline memory transfer service for buffer mapping. The transfer for writeBuffer and writeTexture will be optimized further in Chrome, and the inline memory transfer service is currently used only in tests. Bug: chromium:1123861, chromium:951558 Change-Id: I02491a44e653e2383174958d9c3d4a4db6fd7bde Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/28882 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
ccaef85257
commit
cac0442277
@@ -331,6 +331,16 @@ TEST_P(QueueWriteTextureTests, VaryingTextureSize) {
|
||||
}
|
||||
}
|
||||
|
||||
// Test uploading a large amount of data with writeTexture.
|
||||
TEST_P(QueueWriteTextureTests, LargeWriteTexture) {
|
||||
TextureSpec textureSpec;
|
||||
textureSpec.textureSize = {2048, 2048, 2};
|
||||
textureSpec.copyOrigin = {0, 0, 0};
|
||||
textureSpec.level = 0;
|
||||
|
||||
DoTest(textureSpec, MinimumDataSpec(textureSpec.textureSize), textureSpec.textureSize);
|
||||
}
|
||||
|
||||
// Test writing a pixel with an offset.
|
||||
TEST_P(QueueWriteTextureTests, VaryingTextureOffset) {
|
||||
constexpr uint32_t kWidth = 259;
|
||||
|
||||
Reference in New Issue
Block a user