platforms/drm: disable explicit modifiers by default
There are some unresolved issues where driving outputs can fail because of bandwidth constraints. These don't appear to happen with implicit modifiers, or at least they don't happen as often.
This commit is contained in:
parent
4848964c60
commit
ca869e2bc5
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ bool DrmPlane::init()
|
|||
checkSupport(5, Transformation::ReflectY);
|
||||
|
||||
// read formats from blob if available and if modifiers are supported, and from the plane object if not
|
||||
if (auto formatProp = getProp(PropertyIndex::In_Formats); formatProp && gpu()->addFB2ModifiersSupported() && qEnvironmentVariableIntValue("KWIN_DRM_NO_MODIFIERS") == 0) {
|
||||
if (auto formatProp = getProp(PropertyIndex::In_Formats); formatProp && gpu()->addFB2ModifiersSupported() && qEnvironmentVariableIntValue("KWIN_DRM_USE_MODIFIERS") == 1) {
|
||||
auto blob = static_cast<drm_format_modifier_blob*>(formatProp->currentBlob()->data);
|
||||
auto modifiers = reinterpret_cast<drm_format_modifier*>(reinterpret_cast<uint8_t*>(blob) + blob->modifiers_offset);
|
||||
uint32_t *formatarr = reinterpret_cast<uint32_t*>(reinterpret_cast<uint8_t*>(blob) + blob->formats_offset);
|
||||
|
|
Loading…
Reference in a new issue