1f25ea94bb
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> |
||
---|---|---|
.. | ||
dawn_native | ||
dawn_wire | ||
opengl | ||
.clang-format | ||
api.h | ||
api_cpp.h | ||
api_cpp_print.h | ||
dawn_proc.c | ||
dawn_proc_table.h | ||
dawn_thread_dispatch_proc.cpp | ||
library_webgpu_enum_tables.js | ||
mock_webgpu.cpp | ||
mock_webgpu.h | ||
webgpu_cpp.cpp | ||
webgpu_struct_info.json |