dawn-cmake/generator
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
..
templates dawn_wire: Directly use the data in deserialized buffer when possible 2021-12-10 02:05:28 +00:00
BUILD.gn Add .clang-format files and format more files 2020-07-15 19:51:17 +00:00
CMakeLists.txt CMakeLists: make DAWN_THIRD_PARTY_DIR an option. 2020-10-20 14:26:10 +00:00
dawn_generator.gni Generate multiple variants of webgpu.h header 2021-09-17 19:44:43 +00:00
dawn_json_generator.py Replace hardcode functions in templates 2021-12-10 01:35:19 +00:00
extract_json.py Avoid unnecessary recompiles with code generators. 2021-03-23 19:06:02 +00:00
generator_lib.gni Add .clang-format files and format more files 2020-07-15 19:51:17 +00:00
generator_lib.py Skip None paths when looking for modules 2020-10-20 14:46:10 +00:00
opengl_loader_generator.py Fixes for OpenGL loader generator. 2021-05-06 18:34:14 +00:00
remove_files.py Add .clang-format files and format more files 2020-07-15 19:51:17 +00:00