dawn-cmake/generator/templates
Jiawei Shao 1f25ea94bb dawn_wire: Directly use the data in deserialized buffer when possible
This patch tries to use the data directly in deserialized buffer
when the data is "data-only" and doesn't affect the control flow instead
of allocating and copying into a temporary buffer. Due to the protection
of TOCTOU attacks, currently we only set "wire_is_data_only" on the
parameter "data" in Queue.WriteBuffer() and Queue.WriteTexture().

With this patch, the performance of dawn_perf_tests
BufferUploadPerf.Run/*_WriteBuffer_BufferSize_* with "-w" will
be greatly improved (~20%) when the upload buffer size is greater than
1MB.

BUG=chromium:1266727

Change-Id: I7a9d54c9b505975235ee37aa72ee97f082ad3aa3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/72063
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
2021-12-10 02:05:28 +00:00
..
dawn_native Add a build target for a webgpu_dawn library 2021-12-09 20:03:48 +00:00
dawn_wire dawn_wire: Directly use the data in deserialized buffer when possible 2021-12-10 02:05:28 +00:00
opengl Implement EGLImage external texture API for GL. 2021-06-03 16:19:16 +00:00
.clang-format Add .clang-format files and format more files 2020-07-15 19:51:17 +00:00
api.h Fix google3 license related issues 2021-12-02 21:25:58 +00:00
api_cpp.h dawn_wire: Remove unused support of "const*const*" 2021-12-09 02:43:28 +00:00
api_cpp_print.h Make templates webgpu_cpp.h and webgpu_cpp_print.h flexible 2021-12-07 00:46:35 +00:00
dawn_proc.c Replace hardcode functions in templates 2021-12-10 01:35:19 +00:00
dawn_proc_table.h Make the prefix of proc table configurable in api.json 2021-12-05 05:29:44 +00:00
dawn_thread_dispatch_proc.cpp Replace hardcode functions in templates 2021-12-10 01:35:19 +00:00
library_webgpu_enum_tables.js Generate multiple variants of webgpu.h header 2021-09-17 19:44:43 +00:00
mock_webgpu.cpp Add a category named function in dawn.json 2021-12-02 07:41:21 +00:00
mock_webgpu.h Add a category named function in dawn.json 2021-12-02 07:41:21 +00:00
webgpu_cpp.cpp Add a category named function in dawn.json 2021-12-02 07:41:21 +00:00
webgpu_struct_info.json Generate multiple variants of webgpu.h header 2021-09-17 19:44:43 +00:00