Closed Bug 1617553 Opened 5 years ago Closed 5 years ago

[Wayland] Activating DMA-BUF for WebGL has swapped color channels

Categories

(Core :: Graphics: CanvasWebGL, defect)

Unspecified
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: kennylevinsen, Assigned: stransky)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Reproduction on latest nightly:

  1. Force-enable OpenGL compositing.
  2. Enable widget.wayland_dmabuf_webgl.enabled
  3. Run WebGL aquarium test (https://webglsamples.org/aquarium/aquarium.html)

Tested on intel integrated graphics with sway/wlroots.

Observed result

Increased performance, but with swapped color channels (red/blue swap).

Expected result

Increased performance with same output.

Flags: needinfo?(stransky)

That's very interesting, Thanks. It's because I tested that on https://webglsamples.org/blob/blob.html where the colors are not so visible :)

Assignee: nobody → stransky
Flags: needinfo?(stransky)

I can reproduce this with OpenGL layers, but not basic layers or WebRender.

I expect it may be also broken in gl compositor when "widget.wayland_dmabuf_textures.enabled" is set to true.

Pushed by btara@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/83c66ad3ea49 [Wayland] Use GL texture format instead of surface one for GL texture source, r=sotaro

Confirmed to also affect widget.wayland_dmabuf_textures.enabled

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: