mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-25 17:49:48 +01:00
dmabuf
This commit is contained in:
parent
c1adf83484
commit
c135fe39e0
1 changed files with 1 additions and 2 deletions
|
@ -291,7 +291,6 @@ CLinuxDMABUFFeedbackResource::CLinuxDMABUFFeedbackResource(SP<CZwpLinuxDmabufFee
|
||||||
|
|
||||||
// Main tranche
|
// Main tranche
|
||||||
resource->sendTrancheTargetDevice(&deviceArr);
|
resource->sendTrancheTargetDevice(&deviceArr);
|
||||||
resource->sendTrancheFlags((zwpLinuxDmabufFeedbackV1TrancheFlags)0);
|
|
||||||
|
|
||||||
wl_array indices;
|
wl_array indices;
|
||||||
wl_array_init(&indices);
|
wl_array_init(&indices);
|
||||||
|
@ -381,7 +380,7 @@ bool CLinuxDMABUFResource::good() {
|
||||||
void CLinuxDMABUFResource::sendMods() {
|
void CLinuxDMABUFResource::sendMods() {
|
||||||
for (auto& [fmt, mod] : PROTO::linuxDma->defaultFeedback->tranches) {
|
for (auto& [fmt, mod] : PROTO::linuxDma->defaultFeedback->tranches) {
|
||||||
if (resource->version() < 3) {
|
if (resource->version() < 3) {
|
||||||
if (mod == DRM_FORMAT_MOD_INVALID)
|
if (mod == DRM_FORMAT_MOD_INVALID || mod == DRM_FORMAT_MOD_LINEAR)
|
||||||
resource->sendFormat(fmt);
|
resource->sendFormat(fmt);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue