Open Bug 766346 Opened 13 years ago Updated 1 year ago

CSS 3D visual errors with software webrender

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

REOPENED

People

(Reporter: bobby, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(2 files)

http://k88hudson.github.com/sadcube/ The link above will lead to a page with a simple (yet sad) spinning cube. With layers acceleration enabled, the cube appears as expected. Without layers acceleration, however, the cube's constituent planes and its shadow shake violently.
This is confirmed on both Mac and Linux.
We implement 3D transforms using pixman when we don't have hardware acceleration. Sounds like there's something wrong with that implementation.
The "shaking" we're seeing here seems too much to be explained by pixman bugs. The cube seems to be making "two steps forward, one step back" kind of dance.
Though: does pixman do matrix transforms? If yes, the bug could be explained by a bug there.
This is definitely a pixman issue. Attached is a patch that switches the rendering of BasicLayers 3d-transforms to be done via skia instead. This fixes the wobbling for me. Quality still is pretty low (unsurprisingly).
(In reply to Matt Woodrow (:mattwoodrow) from comment #5) > Created attachment 634678 [details] [diff] [review] > Use skia for BasicLayers 3d transforms > > This is definitely a pixman issue. > > Attached is a patch that switches the rendering of BasicLayers 3d-transforms > to be done via skia instead. > > This fixes the wobbling for me. Quality still is pretty low (unsurprisingly). It would be good to fix pixman too...
Blocks: 766712
(In reply to Jeff Muizelaar [:jrmuizel] from comment #6) > It would be good to fix pixman too... It looked to me like it was the result of rounding inaccuracies, not sure if that will be easy to fix. That said, I don't disagree with your statement at all. I think we should take my patch for the time being, without blocking this on finding someone to debug pixman.
Attachment #634678 - Flags: review?(jmuizelaar)
Flags: needinfo?(matt.woodrow)
Comment on attachment 634678 [details] [diff] [review] Use skia for BasicLayers 3d transforms Review of attachment 634678 [details] [diff] [review]: ----------------------------------------------------------------- I'd like an explanation for why this is broken in pixman before taking the patch.
Attachment #634678 - Flags: review?(jmuizelaar) → review-
Severity: normal → S3

Unable to reproduce in current versions.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME

Oops actually this is still a problem with Software WebRender

Severity: S3 → --
Status: RESOLVED → REOPENED
Component: Graphics → Graphics: WebRender
OS: macOS → All
Hardware: x86 → All
Resolution: WORKSFORME → ---
Summary: CSS 3D visual errors with layers acceleration disabled → CSS 3D visual errors with software webrender
Blocks: wr-3d-transform
No longer blocks: 766712
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: