mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-06 21:25:58 +00:00
Adds assertions to check that the SPIR-V Tools fuzzer is not inadvertently applied to SPIR-V binaries of an invalid size, which guards against the fuzzer being run in a misconfigured fashion. The CL also moves a memcpy that populates a SPIR-V binary buffer so that the memcpy only happens when the input really is SPIR-V. This avoids frequent redundant memory copies when fuzzing WGSL. Change-Id: Iafccaa107ff34941d8878ed5be72a2e6d38d0f49 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/58386 Auto-Submit: Alastair Donaldson <afdx@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Alastair Donaldson <afdx@google.com>