Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 20eaa761a17cddfa7df1a0db999d84f9eff35bff https://github.com/WebKit/WebKit/commit/20eaa761a17cddfa7df1a0db999d84f9eff35bff Author: Mike Wyrzykowski <mwyrzykow...@apple.com> Date: 2025-08-18 (Mon, 18 Aug 2025)
Changed paths: M Source/WebGPU/WebGPU/HardwareCapabilities.mm Log Message: ----------- [WebGPU] iOS often reports 256MB max buffer size https://bugs.webkit.org/show_bug.cgi?id=297475 rdar://158431698 Reviewed by Tadeu Zagallo. As encountered on WebLLM and also reported on some other AI / ML developers, WebGPU reporting a max buffer size of 1/10th the device's true maximum buffer size is too limiting. iPhone 16 Pro for instance can report a 4GB max buffer size from Metal, so WebGPU would report 400MB. Instead, allow up to 1 GB buffers on iOS as the jetsam limit is still 1.5GB on iOS, so reporting any larger is going to result in the web process getting instantly terminated due to memory pressure. After this change, iPhone 16 Pro reports 1GB buffer size. * Source/WebGPU/WebGPU/HardwareCapabilities.mm: (WebGPU::maxBufferSize): Canonical link: https://commits.webkit.org/298851@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes