Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 30933781f1aba1fec720f03f5958b02ae20dc3c9
      
https://github.com/WebKit/WebKit/commit/30933781f1aba1fec720f03f5958b02ae20dc3c9
  Author: Mike Wyrzykowski <[email protected]>
  Date:   2025-03-13 (Thu, 13 Mar 2025)

  Changed paths:
    A LayoutTests/fast/webgpu/nocrash/fuzz-289705-expected.txt
    A LayoutTests/fast/webgpu/nocrash/fuzz-289705.html
    M LayoutTests/fast/webgpu/regression/repro_275624-expected.txt
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp

  Log Message:
  -----------
  [WGSL] textureDimensions needs a bounds check its mip level
https://bugs.webkit.org/show_bug.cgi?id=289705
rdar://146794909

Reviewed by Cameron McCormack.

The lod value passed to get_width/height/depth must be in the range [0, 
num_mip_levels]

Note it is inclusive and not num_mip_levels-1 because a texture with 1 mip 
level has
the base level = 0 and mip level = 1 so no -1 is needed.

* LayoutTests/platform/mac/fast/webgpu/nocrash/fuzz-289705-expected.txt: Added.
* LayoutTests/platform/mac/fast/webgpu/nocrash/fuzz-289705.html: Added.
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::emitTextureDimensions):

Canonical link: https://commits.webkit.org/292140@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to