Skip to content

fix(core): use top-left viewport origin on WebGPU - #11018

Merged
ibgreen merged 1 commit into
masterfrom
chr/webgpu-y-origin
Nov 9, 2026
Merged

ibgreen merged 1 commit into
masterfrom
chr/webgpu-y-origin

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Background

Part of #11020. WebGPU views covering part of the canvas render at a vertically mirrored location. The picking-coordinate fix has landed in #11027, so this PR now stands on its own.

Change List

  • Keep top-left viewport coordinates on WebGPU
  • Preserve WebGL's bottom-left viewport coordinates
  • Test drawing in a partial-height viewport

Rebased on master after #11027; viewport regression and lint pass. Fresh CI is running.

Before and after

Left: WebGPU before. Middle: WebGPU after. Right: WebGL. Top and bottom views cover 60% and 40% of the canvas.

Backport: retain this viewport fix alongside the picking implementation from #11027 (original picking commit 38c9fa7e71) for the 9.4 release line.

@coveralls

coveralls commented Nov 3, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 83.811% (-0.002%) from 83.813% — chr/webgpu-y-origin into master

@chrisgervang
chrisgervang marked this pull request as ready for review November 3, 2026 16:31
@chrisgervang
chrisgervang requested a review from ibgreen November 3, 2026 16:31
@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable defects were found.

Summary

Fixes vertically misplaced partial-height views on WebGPU.

  • Partial WebGPU views now stay at their top-left canvas position.

Static review found no actionable issues. Tests were not run.

Reviews (3) · Last reviewed commit: "fix(core): use top-left viewport origin ..." · Reviewed by Greptile

@ibgreen
ibgreen force-pushed the chr/webgpu-y-origin branch from 8969a11 to cac337e Compare November 9, 2026 15:38

@ibgreen ibgreen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the refreshed viewport-origin fix. WebGPU preserves top-left viewport coordinates while WebGL retains the existing bottom-left conversion. The partial-height viewport regression passes locally; no blocking findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants