Closed
Bug 1290498
Opened 8 years ago
Closed 8 years ago
Compositors should ReadUnlock textures after swap
Categories
(Core :: Graphics: Layers, defect)
Core
Graphics: Layers
Tracking
()
RESOLVED
FIXED
mozilla51
Tracking | Status | |
---|---|---|
firefox51 | --- | fixed |
People
(Reporter: nical, Assigned: nical)
Details
Attachments
(1 file)
4.04 KB,
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
TextureHosts can ask the compositor to ReadUnlock() them after the next composition. Currenlty CompositorOGL does that before swap, I think it should do it after Swap.
Assignee | ||
Comment 1•8 years ago
|
||
This actually affects all compositor backends.
Summary: CompositorOGL ReadUnlocks textures before swap → Compositors should ReadUnlock textures after swap
Assignee | ||
Comment 2•8 years ago
|
||
Assignee: nobody → nical.bugzilla
Attachment #8776032 -
Flags: review?(sotaro.ikeda.g)
Comment 3•8 years ago
|
||
Are there any backends where this makes sense to do? For regular OpenGL we make a copy on texture upload so we can read unlock right away. D3D9 and D3D11 also both seem to make a copy during upload so should be able to read unlock right away as well. I'm not sure about gralloc.
Flags: needinfo?(nical.bugzilla)
Assignee | ||
Comment 4•8 years ago
|
||
All textures that do some sort of copy/upload internally already ReadUnlock right after unlock. Only the ones where the compositor reads from the shared data directly have this deferred ReadUnlock done by the Compositor.
Flags: needinfo?(nical.bugzilla)
Comment 5•8 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #3) > I'm not sure about gralloc. gralloc has a mechanism to wait fence delivery.
Comment 6•8 years ago
|
||
Comment on attachment 8776032 [details] [diff] [review] ReadUnlock after swap It seems good. But it seems to work well only on D3D11 since CompositorD3D11::EndFrame() waits previous frame complete. That was added by Bug 1260611. CompositorD3D9 and CompositorOGL does not have it yet.
Attachment #8776032 -
Flags: review?(sotaro.ikeda.g) → review+
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/6a932b1e6a2b Process deferred texture ReadUnlock after compositor swap instead of before. r=sotaro
Comment 8•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6a932b1e6a2b
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in
before you can comment on or make changes to this bug.
Description
•