Repository navigation
fix(gpui): blur backdrops with a gaussian pyramid and real content past the window edge - #57
Conversation
…st the window edge Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 45 minutes. View limit details
Summary
Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 7
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Major · Order backdrop reads against the overscan they sample. · scene.rs:275-287
crates/gpui/src/scene.rs:275-287
Major · Functional Correctness · Heavy lift Order backdrop reads against the overscan they sample.
In an 800px-wide window, paint a background that ends at x=800, an edge backdrop, then a red quad at x=801..820. Before this change, the viewport mask culled the red quad. With overscan, the quad survives but does not intersect the backdrop's visible bounds. The bounds tree gives the background and red quad order 1 and the backdrop order 2. The blur then picks up red from a quad painted after it. (raw.githubusercontent.com)
Keep the visible mask for compositing, but account for the backdrop's source footprint when establishing draw dependencies. Test the same quad on both sides of the backdrop in paint order: it should contribute only when painted first. Preserve batching for adjacent backdrop strips that have no intervening dependency.

Minor · Include spread targets in idle release. · directx_renderer.rs:220-224
crates/gpui_windows/src/directx_renderer.rs:220-224
Minor · Performance & Scalability · Quick win Include spread targets in idle release.
After a pyramid blur allocates
Spread(level), this iterator never visits that texture. The texture remains allocated afterIDLE_RELEASE, even when later frames need no blur. Add.chain(self.spreads.iter_mut())so the existing timestamp guard also releases spread targets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ayer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Note 🤖 Claude Opus 5.5 responding on behalf of zxsleebu On the two findings outside the diff:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Proved with a probe window on wgpu built from master and from this branch (a wide blur comes out round instead of a grid of soft squares, bars on the right and bottom edges blur the content past the edge instead of a stretched border row, nothing past an edge leaks into a scaled layer), a test that a pointer past the edge reaches no hitbox in the overscan, and by running sonora against it; clippy is clean,
cargo test -p gpui_wgpupasses, metal and hlsl compile in CI.Reviewed with neon-loop: 3 rounds with Gemini 4 Neon on high. Neon verdict: approved
🤖 Generated with Claude Code