forge
Explore
Log in

Don't you dare go Hollow

use ScanoutCandidate kind for surfaces

Browse files at this commit

af9ce533100b49e8bc879b557ab830f5d3a18805Christian MeisslParent: 0044578
this allows to get direct scan-out on surfaces again
src/layer/mapped.rsmodified+2 -2
@@ -195,7 +195,7 @@ impl MappedLayer {
195195 (buf_pos + offset.to_f64()).to_physical_precise_round(scale),
196196 scale,
197197 alpha,
198- Kind::Unspecified,
198+ Kind::ScanoutCandidate,
199199 ));
200200 }
201201
@@ -205,7 +205,7 @@ impl MappedLayer {
205205 buf_pos.to_physical_precise_round(scale),
206206 scale,
207207 alpha,
208- Kind::Unspecified,
208+ Kind::ScanoutCandidate,
209209 );
210210 }
211211
src/niri.rsmodified+2 -2
@@ -3747,7 +3747,7 @@ impl Niri {
37473747 pointer_pos,
37483748 output_scale,
37493749 1.,
3750- Kind::Unspecified,
3750+ Kind::ScanoutCandidate,
37513751 ));
37523752 }
37533753
@@ -4144,7 +4144,7 @@ impl Niri {
41444144 (0, 0),
41454145 output_scale,
41464146 1.,
4147- Kind::Unspecified,
4147+ Kind::ScanoutCandidate,
41484148 ));
41494149 }
41504150
src/window/mapped.rsmodified+4 -4
@@ -587,7 +587,7 @@ impl LayoutElement for Mapped {
587587 (buf_pos + offset.to_f64()).to_physical_precise_round(scale),
588588 scale,
589589 alpha,
590- Kind::Unspecified,
590+ Kind::ScanoutCandidate,
591591 ));
592592 }
593593
@@ -597,7 +597,7 @@ impl LayoutElement for Mapped {
597597 buf_pos.to_physical_precise_round(scale),
598598 scale,
599599 alpha,
600- Kind::Unspecified,
600+ Kind::ScanoutCandidate,
601601 );
602602 }
603603
@@ -627,7 +627,7 @@ impl LayoutElement for Mapped {
627627 buf_pos.to_physical_precise_round(scale),
628628 scale,
629629 alpha,
630- Kind::Unspecified,
630+ Kind::ScanoutCandidate,
631631 )
632632 }
633633 }
@@ -656,7 +656,7 @@ impl LayoutElement for Mapped {
656656 (buf_pos + offset.to_f64()).to_physical_precise_round(scale),
657657 scale,
658658 alpha,
659- Kind::Unspecified,
659+ Kind::ScanoutCandidate,
660660 ));
661661 }
662662