Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 25af3c24b4b9d4439099c2e5642a61e1a96108c1
      
https://github.com/WebKit/WebKit/commit/25af3c24b4b9d4439099c2e5642a61e1a96108c1
  Author: Tadeu Zagallo <[email protected]>
  Date:   2023-11-23 (Thu, 23 Nov 2023)

  Changed paths:
    M Source/WebGPU/WGSL/ConstantFunctions.h

  Log Message:
  -----------
  [WGSL] Constant function for abs is wrong for u32 and f16
https://bugs.webkit.org/show_bug.cgi?id=265257
rdar://118724534

Reviewed by Mike Wyrzykowski.

For some reason it was casting u32 to int, when the result should be the 
identity.
The result type also needs to be explicit, otherwise we return f32 for f16 
inputs.

* Source/WebGPU/WGSL/ConstantFunctions.h:
(WGSL::UNARY_OPERATION):

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to