Closed Bug 1688851 Opened 3 years ago Closed 3 years ago

[Linux/EGL] Use gbm_bo_create instead of gbm_bo_create_with_modifiers if all modifiers are set to DRM_FORMAT_MOD_INVALID

Categories

(Core :: Graphics, defect, P3)

Desktop
Linux
defect

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: rmader, Assigned: rmader)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This would stop mesa from spamming Only invalid modifier specified to stderr when running e.g. WebGL with DMABUFs on Mutter/Wayland.

See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7601#note_778855 for context.

Martin, needinfoing you here so you know about it.

Flags: needinfo?(stransky)
Severity: -- → S3
Priority: -- → P3

Okay, I think the fix may be easy. We just need to scan the format modifiers and remove them when they're invalid. That can be done at nsDMABufDevice::nsDMABufDevice() where the format modifiers are loaded.

Flags: needinfo?(stransky)
Assignee: nobody → robert.mader
Status: NEW → ASSIGNED
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/autoland/rev/9562386904cc
Check if modifiers are valid before adding. r=stransky,jgilbert
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: