Skip to content

[skia-sync] Merge upstream chrome/m156 bug fixes - #5711

Merged
mattleibow merged 2 commits into
release/4.156.xfrom
skia-sync/release-4.156.x
Nov 12, 2026
Merged

mattleibow merged 2 commits into
release/4.156.xfrom
skia-sync/release-4.156.x

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

Description

Automated upstream bug-fix sync for m156. Targeting release branch release/4.156.x (mono/skia release/4.156.x).

This pull request was produced by skia-upstream-sync.

Related issues

N/A — automated upstream synchronization.

Required skia PR

Requires mono/skia#450

Areas affected

  • Managed API (binding/)
  • Native / C API (externals/skia/src/c, include/c)
  • Generated P/Invoke bindings
  • Native dependency or Skia update
  • Views & integrations
  • Rendering output / visual behavior
  • Performance
  • Tests
  • Build, packaging, or CI
  • Documentation or samples

Changes

Advances the release/4.156.x Skia submodule to validated native merge 796c0cc256ba1252fd0e755f5d8ec9f2dff9b608 and records upstream chrome/m156 commit 8e7863a6ff2ee1dbc6ec0631b61f3631852c8878 in Component Governance metadata.

There is no public managed API or generated P/Invoke change. Observable behavior inherits two upstream corrections: synchronous Vulkan submission can now report fence-wait failure internally, and displacement-filter rendering uses higher-precision scale math. Dependency identities and semantic versions are unchanged.

Testing

  • Linux x64 native source build: passed (build_native.py).
  • All maintained binding generators: passed; no generated changes or new native functions.
  • Managed build: passed (build_managed.py).
  • Full unfiltered dotnet test tests/SkiaSharp.Tests.Console.slnx -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0: passed.
    • Singleton: 1 passed, 0 skipped.
    • Gallery: 50 passed, 0 skipped.
    • Core: 6,489 passed, 33 policy/capability skips.
    • Vulkan: 23 passed, 2 policy/capability skips.
    • Direct3D: 2 passed, 3 platform-policy skips.
  • No backend required by Linux GpuPolicy was skipped; Vulkan initialized and executed successfully with the provisioned lavapipe software ICD.

Human review

Confirm the inherited rendering and Vulkan failure-reporting behavior is appropriate for the 4.156 release line. Linux x64 was built and tested; Windows, macOS, Android, iOS/tvOS, Tizen, and WASM were not executed locally and remain CI/cross-platform review items. No new tests were added because the sync changes no binding surface and the complete existing CPU/GPU suite passed against the rebuilt native library.

Checklist

  • Tests added or updated when behavior required them, or the report explains why not
  • Changes above lists all public API and behavioral changes or states that none changed
  • Documentation follow-up filed, or no public API changed
  • Companion mono/skia PR linked above and bindings regenerated

Last rendered by the sync workflow: 2026-11-12T20:16:20Z

Advance the release/4.156.x Skia submodule to the validated chrome/m156 bug-fix merge and record the exact fork and upstream commits in Component Governance metadata.

Co-authored-by: Copilot <[email protected]>
@mattleibow mattleibow added partner/agentic-workflows Issues and PRs created by SkiaSharp agentic workflows. type/milestone-sync Any Skia upstream sync PR (milestone bump, same-milestone bug-fix re-sync, or tip sync). labels Nov 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

Do not run these scripts without first reviewing the code in this PR.

Step 1 — Download the packages

bash / macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 5711

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 5711"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-5711/packages --name skiasharp-pr-5711
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-5711

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #5711

⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS

Informational only — this never blocks the PR. 🟢 faster / less allocation · 🔴 slower / more allocation; moves under 5% are hidden as noise.

⏱️ Times are raw BenchmarkDotNet means, and the ⭐ PR and baseline legs run on separate CI runners, so microbenchmarks can swing run-to-run — treat small time deltas as noise. Allocations are deterministic and the reliable signal. The interactive perf-dashboard (linked below) applies smoothing for the trend view.

Highlights

⏱️ Time — 🔴 41 slower · 🟢 21 faster

  • 🔴 ColorMathBenchmark.ToColor(Colors: 4096) · Windows · 5.37 µs → 16.90 µs (+215%)
  • 🔴 MatrixMapPointsBenchmark.MapPoint(Points: 256) · Windows · 1.12 µs → 2.59 µs (+130%)
  • 🔴 PathBoundsBenchmark.TightBounds(Points: 1024) · Windows · 9.04 µs → 20.08 µs (+122%)
  • 🔴 MatrixMapPointsBenchmark.MapPoint(Points: 4096) · Windows · 18.90 µs → 41.55 µs (+120%)
  • 🔴 PathBoundsBenchmark.TightBounds(Points: 64) · Windows · 926.2 ns → 1.88 µs (+103%)
  • …and 57 more (see details below)
Full per-OS benchmark deltas

Linux

⏱️ Time (vs 🌙 nightly 4.157.0-nightly.26554.4)

Benchmark baseline this PR Δ
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 96.69 µs 109.47 µs 🔴 +13%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 11.46 µs 12.10 µs 🔴 +6%

Windows

⏱️ Time (vs 🌙 nightly 4.157.0-nightly.26554.4)

Benchmark baseline this PR Δ
ColorMathBenchmark.ToColor(Colors: 4096) 5.37 µs 16.90 µs 🔴 +215%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 1.12 µs 2.59 µs 🔴 +130%
PathBoundsBenchmark.TightBounds(Points: 1024) 9.04 µs 20.08 µs 🔴 +122%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 18.90 µs 41.55 µs 🔴 +120%
PathBoundsBenchmark.TightBounds(Points: 64) 926.2 ns 1.88 µs 🔴 +103%
CanvasDrawBenchmark.Draw(Shapes: 512) 11.55 ms 23.41 ms 🔴 +103%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 68.98 µs 139.23 µs 🔴 +102%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.49 ms 2.94 ms 🔴 +97%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.37 µs 2.63 µs 🔴 +92%
RuntimeEffectShaderBenchmark.DrawFrame 611.50 µs 1.16 ms 🔴 +89%
ColorParseBenchmark.Parse(Iterations: 1000) 44.90 µs 84.32 µs 🔴 +88%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 91.72 µs 167.63 µs 🔴 +83%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 189.92 µs 345.43 µs 🔴 +82%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 141.61 µs 248.84 µs 🔴 +76%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 104.4 ns 183.0 ns 🔴 +75%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 724.69 µs 1.27 ms 🔴 +75%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 550.73 µs 963.45 µs 🔴 +75%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 1.32 ms 2.30 ms 🔴 +75%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 6.21 ms 10.77 ms 🔴 +73%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 6.06 µs 10.47 µs 🔴 +73%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 169.53 µs 289.98 µs 🔴 +71%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 7.20 µs 12.27 µs 🔴 +70%
ColorMathBenchmark.PreMultiply(Colors: 4096) 7.67 µs 13.01 µs 🔴 +70%
MatrixMapPointsBenchmark.MapVector(Points: 256) 5.35 µs 9.03 µs 🔴 +69%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 83.97 µs 139.96 µs 🔴 +67%
…and 9 more

macOS

⏱️ Time (vs 🌙 nightly 4.157.0-nightly.26554.4)

Benchmark baseline this PR Δ
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 1.04 ms 589.58 µs 🟢 -43%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 894.46 µs 545.59 µs 🟢 -39%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 3.28 ms 2.08 ms 🟢 -37%
ColorMathBenchmark.ToColor(Colors: 4096) 25.49 µs 17.09 µs 🟢 -33%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.94 ms 1.31 ms 🟢 -32%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.01 ms 1.45 ms 🟢 -28%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 6.97 ms 5.19 ms 🟢 -26%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 166.90 µs 204.54 µs 🔴 +23%
ColorMathBenchmark.PreMultiply(Colors: 4096) 10.99 µs 8.56 µs 🟢 -22%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 73.16 µs 88.89 µs 🔴 +21%
ColorMathBenchmark.ToColorF(Colors: 4096) 6.37 µs 5.08 µs 🟢 -20%
CanvasDrawBenchmark.Draw(Shapes: 512) 14.24 ms 11.51 ms 🟢 -19%
RuntimeEffectShaderBenchmark.DrawFrame 576.01 µs 686.00 µs 🔴 +19%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 997.88 µs 846.54 µs 🟢 -15%
ColorParseBenchmark.Parse(Iterations: 1000) 82.07 µs 70.46 µs 🟢 -14%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 8.95 µs 7.76 µs 🟢 -13%
PathBoundsBenchmark.TightBounds(Points: 1024) 9.40 µs 10.54 µs 🔴 +12%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 1.37 µs 1.21 µs 🟢 -12%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 290.61 µs 262.86 µs 🟢 -10%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 111.57 µs 122.07 µs 🔴 +9%
PathBoundsBenchmark.TightBounds(Points: 64) 1.00 µs 909.6 ns 🟢 -9%
MatrixOpsBenchmark.Invert(Count: 4096) 73.04 µs 66.75 µs 🟢 -9%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 170.3 ns 157.0 ns 🟢 -8%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 7.78 µs 7.22 µs 🟢 -7%
MatrixMapPointsBenchmark.MapRect(Points: 256) 3.69 µs 3.45 µs 🟢 -6%
…and 1 more

📈 Full interactive perf-dashboard & run details →

mattleibow added a commit to mono/skia that referenced this pull request Nov 12, 2026
[M156] Fix Vulkan wait reporting and displacement precision (#450)

Context: mono/SkiaSharp#5711

Integrate chrome/m156 through 8e7863a
into release/4.156.x, preserving upstream merge ancestry and existing
fork patches. C API declarations and dependency pins remain unchanged.

~~ Report failed Vulkan synchronous waits ~~

Synchronous submission previously returned queue-submit success even
when the subsequent fence wait failed. Return a boolean from
GrVkPrimaryCommandBuffer::forceSync and require both submission and
synchronization to succeed in GrVkGpu::submitCommandBuffer.

Retain the existing VK_TIMEOUT retry and error diagnostics. Keep command
buffer and semaphore cleanup on the existing path even when the wait
fails; asynchronous submissions retain their previous behavior.

~~ Match displacement offsets to full-precision bounds ~~

Half-precision displacement calculations could round differently from
the float-precision bounds calculations, producing inconsistent sampling
near filter boundaries.

Use float2 for the displacement scale uniform and offset arithmetic.
Update the runtime-effect declaration, SkSL source and both generated
shader representations together. Color-channel selection remains in
half precision; the existing SkV2 uniform assignment remains compatible.

Co-authored-by: Nathan Sanchez <[email protected]>
Co-authored-by: Michael Ludwig <[email protected]>
Co-authored-by: Copilot <[email protected]>
@mattleibow mattleibow mentioned this pull request Nov 12, 2026
5 of 14 tasks
Record native merge 712ea097151d4951652dee046a8944376fd8df1b in the gitlink and Component Governance manifest. Its tree is identical to the reviewed native head.

Co-authored-by: Copilot App <[email protected]>
@mattleibow
mattleibow marked this pull request as ready for review November 12, 2026 22:31
@mattleibow
mattleibow merged commit e7ba749 into release/4.156.x Nov 12, 2026
26 of 86 checks passed
@mattleibow
mattleibow deleted the skia-sync/release-4.156.x branch November 12, 2026 22:31
@github-actions github-actions Bot added this to the 4.156.1 milestone Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

partner/agentic-workflows Issues and PRs created by SkiaSharp agentic workflows. type/milestone-sync Any Skia upstream sync PR (milestone bump, same-milestone bug-fix re-sync, or tip sync).

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant