Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use nearest scaling for integer-upscaled surfaces #189

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

YaLTeR
Copy link
Owner

@YaLTeR YaLTeR commented Feb 13, 2024

Doesn't currently work for the cursor plane, as a similar logic would need to somehow be threaded inside there.

For the primary plane I'm not even sure what sets the scaling filter, seems to use linear for me.

@kchibisov please give this a try.

@YaLTeR YaLTeR force-pushed the nearest-integer-scale branch from 51dfe1f to 88b74f4 Compare February 13, 2024 05:34
@YaLTeR
Copy link
Owner Author

YaLTeR commented Feb 16, 2024

I've got confirmation from mutter folks that it's currently impossible to control the scaling for scanout. They're planning to add this as part of the new kms color transformation API.

@24fpsDaVinci
Copy link

24fpsDaVinci commented Jun 13, 2024

I've got confirmation from mutter folks that it's currently impossible to control the scaling for scanout. They're planning to add this as part of the new kms color transformation API.

so we have to wait for mutter? this PR does not work at all? I'm trying to test this but having trouble rebasing

@YaLTeR
Copy link
Owner Author

YaLTeR commented Jun 13, 2024

We have to wait for the kernel to add the necessary API to do this properly. In the meantime I suppose I could add this as a debug flag. I'll need to redo the PR from scratch though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants