dawn-cmake/generator/templates/dawn_wire
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
..
client Make the prefix of proc table configurable in api.json 2021-12-05 05:29:44 +00:00
server Fix -Wunreachable-code-aggressive. 2021-06-30 11:17:16 +00:00
ObjectType.h Track and destroy all child objects on wire client destruction 2020-11-11 19:46:18 +00:00
WireCmd.cpp dawn_wire: Directly use the data in deserialized buffer when possible 2021-12-10 02:05:28 +00:00
WireCmd.h Make CompilationInfo extensible. 2021-11-16 09:25:35 +00:00