-
Notifications
You must be signed in to change notification settings - Fork 144
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
Magnifier is broken for pixman renderer #1822
Comments
My 2 cents: For anybody wanting to test the fixes backported to wlroots 0.17: At least nested it did fix the pixman + magnifier issue for me but also causes a pixman + dropshadow issues instead so there is further work to be done on the wlroots side. |
I'm not sure the logic is 100% correct in scene-helpers.c I reworked it slightly and my watts went back to normal. If interested I'll pull up a PR. |
Just to confirm, I've tried the wlroots patch referred to above on Pi, and it does indeed fix the magnifier under pixman for me as well, both windowed and full-screen. (And does also break drop shadows!) |
Try this patch #1832 and see if it still works for magnification. Edit to add: just tested the fix that tokyo4j mentioned in the PR conversation and it seems to work. |
It seems like the magnifier and drop shadows are both fixed in wlroots master / 0.18 (not yet tested though). However there is some hesitation to backport the two changesets to 0.17 (as its more than just a bugfix). So the question is if we can fix the wlroots 0.17 branch separately for this magnifier bug. Thoughts @cillian64 ? |
I've just done a quick test and both the magnifier and drop-shadows work for me with pixman on wlroots master (using your
A lot of the old pixman transform code (before my "performance" patch basically rewrote that function) just don't make any sense to me, especially how it handles source crop (see https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4653#note_2386254) which is what I suspect is going wrong here. I briefly tried a few simple things I thought might fix it but it's remaining thoroughly broken with the magnifier. I understand the hesitation to backport something which isn't a minimal bugfix but given how many issues we found with the old pixman transform code (and that nobody noticed them outside of drop shadows and the screen magnifier) it feels reasonable to backport my changes, I think we're unlikely to make it more broken than the original 0.17 release. (I also think that the old pixman transform function has such horrible performance that you wouldn't want to use the magnifier with it anyway) |
Makes sense, should I prepare a 0.17 backport MR for wlroots then containing the pixman rewrite MR + the recent fixup MR or do you want to do so instead? |
If you'd be able to do the MR that would be great, I'm going to be mostly AFK tomorrow and next week. |
Will do over the weekend. Thanks for your work on the pixman renderer. Edit: |
See #1820.
On pixman renderer, the border of magnifier is not drawn and damage tracking for magnifier doesn't work correctly.
According to @Consolatis, this is already fixed in wlroots (https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4659).
I think either of following options should be taken before the next release:
The text was updated successfully, but these errors were encountered: