75f554d973
This didn't make sense since these members can be specified to have no data by setting the length to 0. - Prevent uses of this patten by adding an assert in WireCmd.cpp's generator. - Fix SetBindGroup dynamicOffset to not be optional but default to nullptr instead. This issues would cause a read of uninitialized pointers becaus the generator code looked like this: SetBindGroupCmd cmd; cmd.dynamicOffsetCount = record.dynamicOffsetCount; // 1 bool has_dynamicOffset = record.has_dynamicOffsetl // false if (has_dynamicOffset) { cmd.dynamicOffsets = ...; } // Oh no! dynamicOffsets contains garbage even if dynamicOffsetCount // is set to 1. dawn_native will happily read it. Bug: chromium:1220036 Change-Id: I5c468b639f671cef3be2fa64667a0bf114fc902b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/54643 Auto-Submit: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Stephen White <senorblanco@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org> |
||
---|---|---|
.. | ||
dawn_native | ||
dawn_wire | ||
opengl | ||
.clang-format | ||
dawn_proc.c | ||
dawn_proc_table.h | ||
dawn_thread_dispatch_proc.cpp | ||
library_webgpu_enum_tables.js | ||
mock_webgpu.cpp | ||
mock_webgpu.h | ||
webgpu.h | ||
webgpu_cpp.cpp | ||
webgpu_cpp.h | ||
webgpu_cpp_print.h | ||
webgpu_struct_info.json |