use ScanoutCandidate kind for surfaces

this allows to get direct scan-out on surfaces again
This commit is contained in:
Christian Meissl
2025-08-13 10:27:41 +02:00
committed by Ivan Molodetskikh
parent 0044578681
commit af9ce53310
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -195,7 +195,7 @@ impl MappedLayer {
(buf_pos + offset.to_f64()).to_physical_precise_round(scale), (buf_pos + offset.to_f64()).to_physical_precise_round(scale),
scale, scale,
alpha, alpha,
Kind::Unspecified, Kind::ScanoutCandidate,
)); ));
} }
@@ -205,7 +205,7 @@ impl MappedLayer {
buf_pos.to_physical_precise_round(scale), buf_pos.to_physical_precise_round(scale),
scale, scale,
alpha, alpha,
Kind::Unspecified, Kind::ScanoutCandidate,
); );
} }
+2 -2
View File
@@ -3747,7 +3747,7 @@ impl Niri {
pointer_pos, pointer_pos,
output_scale, output_scale,
1., 1.,
Kind::Unspecified, Kind::ScanoutCandidate,
)); ));
} }
@@ -4144,7 +4144,7 @@ impl Niri {
(0, 0), (0, 0),
output_scale, output_scale,
1., 1.,
Kind::Unspecified, Kind::ScanoutCandidate,
)); ));
} }
+4 -4
View File
@@ -587,7 +587,7 @@ impl LayoutElement for Mapped {
(buf_pos + offset.to_f64()).to_physical_precise_round(scale), (buf_pos + offset.to_f64()).to_physical_precise_round(scale),
scale, scale,
alpha, alpha,
Kind::Unspecified, Kind::ScanoutCandidate,
)); ));
} }
@@ -597,7 +597,7 @@ impl LayoutElement for Mapped {
buf_pos.to_physical_precise_round(scale), buf_pos.to_physical_precise_round(scale),
scale, scale,
alpha, alpha,
Kind::Unspecified, Kind::ScanoutCandidate,
); );
} }
@@ -627,7 +627,7 @@ impl LayoutElement for Mapped {
buf_pos.to_physical_precise_round(scale), buf_pos.to_physical_precise_round(scale),
scale, scale,
alpha, alpha,
Kind::Unspecified, Kind::ScanoutCandidate,
) )
} }
} }
@@ -656,7 +656,7 @@ impl LayoutElement for Mapped {
(buf_pos + offset.to_f64()).to_physical_precise_round(scale), (buf_pos + offset.to_f64()).to_physical_precise_round(scale),
scale, scale,
alpha, alpha,
Kind::Unspecified, Kind::ScanoutCandidate,
)); ));
} }