#
#asahi · 2023-03-25 10:39
marcanit just doesn't do anything when you try
#asahi · 2023-03-25 10:39
marcanbut KDE still shows it in the list
#asahi · 2023-03-25 10:39
marcanit does
#asahi · 2023-03-25 10:38
jannausetting a fake mode should just fail
#asahi · 2023-03-25 10:38
marcanmight depend on the device? j314 here
#asahi · 2023-03-25 10:38
marcanI remember finding the code that did that
#asahi · 2023-03-25 10:38
marcannot for me, I see a pile of dummy resolutions on wayland
#asahi · 2023-03-25 10:38
jannaumarcan: is it just kwin/kscreen under x11? under wayland it shows jsut the native panel resolution
#asahi · 2023-03-25 10:38
nsklausin case i want to check what's happening on that front later on, how do i even name it ?
#asahi · 2023-03-25 10:37
nsklaus"resolution scaling" maybe ?
#asahi · 2023-03-25 10:36
nsklausso, considering i need to refresh my outdated concept on that subject, how would you name that issue you're talking about right now ? if i cannot call it "resolution change" ?
#asahi · 2023-03-25 10:34
marcan(that don't work)
#asahi · 2023-03-25 10:34
marcanthat reminds me we need to do something about kwin showing fake modes for the screen
#asahi · 2023-03-25 10:33
jannauit's not tested in the sense that I haven't seen an application using differently sized src/dest rects
#asahi · 2023-03-25 10:32
marcanso it *should* work though I'm not sure if it's been tested
#asahi · 2023-03-25 10:32
marcan req->swap.dst_rect[l] = drm_to_dcp_rect(&new_state->dst);
#asahi · 2023-03-25 10:32
ChaosPrincessplease do rewrite dcp in rust, i wouldnt mind writing mipi in that and not have to write all the bindings :P
#asahi · 2023-03-25 10:32
marcan req->swap.src_rect[l] = drm_to_dcp_rect(&src_rect);
#asahi · 2023-03-25 10:31
marcanyeah, it's in there isn't it? I thought it was
#asahi · 2023-03-25 10:31
jannauI think scaling should work if kms use source and destination rectangle to set it up
#asahi · 2023-03-25 10:30
marcanbut I meant that one specifically because DCP and AGX need to agree on the compression format
#asahi · 2023-03-25 10:30
marcanI think she keeps taunting jannau with it :p
#asahi · 2023-03-25 10:30
chadmedis she going to rewrite dcp in rust? :p
#asahi · 2023-03-25 10:30
nsklauseven though i had some old misconception that needed a refresh
#asahi · 2023-03-25 10:30
marcanshould probably throw that one at lina
#asahi · 2023-03-25 10:29
marcaneh, framebuffer compression is more important than scaling for performance anyway :p
#asahi · 2023-03-25 10:29
nsklausgood thing i mentioned the topic it seems :)
#asahi · 2023-03-25 10:29
marcanthen we should do that at some point, yeah
#asahi · 2023-03-25 10:29
marcanoh, I thought we had scaling hooked up
#asahi · 2023-03-25 10:29
jannaunot right now, the frembuffers dcp sees are always panel resolution so the scaling has to happen in the gpu
#asahi · 2023-03-25 10:28
marcanI think in principle if say $game sets up a 1024x768 framebuffer and wants to present via DCP on Wayland it should be possible for the compositor to configure that surface as the primary plane if all the moving parts work right (not sure if they do)
#asahi · 2023-03-25 10:28
nsklaus(about leaving some unecessary legacy stuff behind)
#asahi · 2023-03-25 10:27
nsklausmarcan : fine by me. your approach and stance seems all good to me
#asahi · 2023-03-25 10:27
marcanyes, and that is supported in the dcp driver, isn't it?
#asahi · 2023-03-25 10:26
jannauscaling in the display processor might save memory and memory bandwidth
#asahi · 2023-03-25 10:26
marcanit's just two ways of doing the same thing, one legacy. we're not doing legacy.
#asahi · 2023-03-25 10:25
marcanlike literally on Intel you can xrandr switch to an 800x600 mode on a 1080p laptop screen, or xrandr create a virtual 800x600 screen and scale it to 1080p with a 1080p mode selected, and they are the *same thing* as far as I know, at the hardware.
#asahi · 2023-03-25 10:25
nsklausi understand, i'm not fighting it, it's just i didn't know those details. you give proper reasoning on how things actualy work. i was still stuck on these old concept and took them for some sort of general rule that would not change. and it seems i was wrong. thank you for giving the details.
#asahi · 2023-03-25 10:24
marcanremember x86 is a pile of legacy upon legacy upon legacy in all dimensions, and our job here is to not be burdened by that kind of stuff and do things right
#asahi · 2023-03-25 10:23
marcanbut it no longer is the driver's job to pretend a screen that only has one mode can do more modes like other laptops do
#asahi · 2023-03-25 10:23
marcanso if you really want to render your UI at a lower resolution and scale it, in principle nothing stops wayland compositors from offering that option
#asahi · 2023-03-25 10:23
marcanapproximately zero laptop panels support changing the resolution, intel/AMD/nvidia drivers just emulate it with internal scaling. there's no reason to emulate that in the driver any more since compositors can configure scaling like that themselves if they really want to.
#asahi · 2023-03-25 10:21
nsklausthat's new to me (not changing resolution anymore), but ok
#asahi · 2023-03-25 10:21
nsklausmarcan : ok, i take note: we don't change resolution anymore, and games will be able to make necessary resolution changes to work as they should
#asahi · 2023-03-25 10:20
marcanbut it makes no sense for UIs
#asahi · 2023-03-25 10:20
marcanyes, which is why games *do* usually let you render at a lower resolution than the display, and that all works perfectly fine on wayland
#asahi · 2023-03-25 10:19
nsklausbut, in terms of bandwidth, usualy, when we use high (fixed) resolution, things are less fast than when we use a lower resolution, is it not ?
#asahi · 2023-03-25 10:19
marcanthey do now, so that's obsolete
#asahi · 2023-03-25 10:19
marcanthe only reason we had it is OSes not supporting UI scaling properly
#asahi · 2023-03-25 10:19
marcanthat's a legacy concept inherited from CRTs

plus ›