Skip to content

test(core): cover off-center WebGPU picking and readback rows - #11019

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

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

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Background

Part of #11020. The picking implementation landed in #11027 and the viewport fix in #11018. This follow-up retains dedicated regression coverage without duplicating either implementation.

Change List

  • Test off-center picking in a partial-height viewport
  • Check the WebGPU picking scissor origin
  • Check empty picks outside the viewport
  • Verify bottom-to-top readback ordering for radius picks

Rebased on master after #11018; all five picker tests and lint pass. Final CI is running.

Backport: the 9.4 release line needs #11018's viewport fix plus the picking implementation now in #11027 (original commit 38c9fa7e71). This PR adds tests only; it does not supply that implementation. Ensure the target luma.gl release applies render-pass parameters (visgl/luma.gl#3650).


Note

Low Risk
Test-only changes with no modifications to production runtime code.

Overview
Adds regression test coverage for asynchronous picking in DeckPicker when running on WebGPU devices.

The test verifies picking behavior within a partial-height viewport, confirming that the render pass scissor rectangle uses a top-left origin, queries outside the viewport return empty results, and readback rows maintain bottom-to-top ordering during radius queries.

Reviewed by Cursor Bugbot for commit 77474c6. Bugbot is set up for automated code reviews on this repo. Configure here.

@coveralls

coveralls commented Nov 3, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 83.8% (-0.01%) from 83.811% — chr/webgpu-y-origin-picking into master

Comment thread docs/developer-guide/webgpu.md Resolved
@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This test-only PR appears safe to merge.

Summary

Adds a WebGPU regression test for asynchronous picking in a partial-height view.

  • A WebGPU test checks picks across a partial-height viewport.

No actionable issues found. This review checked source code; tests were not run.

Reviews (5) · Last reviewed commit: "test(core): cover off-center WebGPU pick..." · Reviewed by Greptile

Davien21 added a commit to Davien21/deck.gl that referenced this pull request Nov 3, 2026
This reverts commit e41af4e. The mirrored WebGPU picking is tracked in
visgl#11020 and fixed separately, so this PR stays on canvas mounting.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ibgreen
ibgreen force-pushed the chr/webgpu-y-origin branch from 8969a11 to cac337e Compare November 9, 2026 15:38
@ibgreen
ibgreen force-pushed the chr/webgpu-y-origin-picking branch from 50cd29d to b871369 Compare November 9, 2026 15:39
@ibgreen ibgreen changed the title fix(core): use top-left picking scissor and readback origin on WebGPU test(core): cover off-center WebGPU picking and readback rows Nov 9, 2026

@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 reworked test-only diff. It retains off-center picking, scissor-origin and radius-readback ordering coverage without duplicating the implementation landed in #11027. All five picker tests and lint pass locally; no blocking findings.

Base automatically changed from chr/webgpu-y-origin to master November 9, 2026 15:52
@ibgreen
ibgreen force-pushed the chr/webgpu-y-origin-picking branch from b871369 to 77474c6 Compare November 9, 2026 15:53

@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.

Rechecked after rebasing onto master following #11018. The diff remains limited to the dedicated picking regression tests. All five picker tests and lint pass on this exact head; no blocking findings.

@ibgreen
ibgreen merged commit f990c10 into master Nov 9, 2026
9 checks passed
@ibgreen
ibgreen deleted the chr/webgpu-y-origin-picking branch November 9, 2026 16:06
Davien21 added a commit to Davien21/deck.gl that referenced this pull request Nov 26, 2026
This reverts commit e41af4e. The mirrored WebGPU picking is tracked in
visgl#11020 and fixed separately, so this PR stays on canvas mounting.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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