Conversation
e562d10 to
6cde4b9
Compare
109d913 to
138e363
Compare
|
@metux Is this pr fine as-is, or do you have a commit in mind where I should split this? |
|
Split the first 2 commits related to libdrm into #2154 |
|
For some reason, I only got this on email, but I can't see it on github: It is checked in |
|
Merge Conflict found |
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
|
We need some some backports of this pr to pr/25.1 and maybe to pr/25.0, I noticed having nvidia & amd gpus on same system. I have failing nvidia on glamor: |
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
Don't require `EGL_KHR_no_config_context` , nvidia 390 drivers don't support it. Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
…GLDisplay Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
to take a small config struct instead of the glamor private Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
for glamor_egl's private data This allows glamor to fully manage it's resources and not leak or use-after-free. Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
`glamor_egl_init2` is now another function that can be used by xf86 drivers Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
… `glamor_egl_init2` Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
That's really weird. From the log, you tested this on a 3090, where gbm should work. This means that you have an fd and a gbm device, but from the log, egl couldn't initialize on it (perhaps not the nvidia backend)? Since it couldn't initialize on gbm, it fell back to the device platform. This means that glamor found a (format, modifier) pair that it could use, so it initialized DRI3. This means that you are using the nvidia gbm backend. I assume that without this pr glamor just fails to initialize? |
|
Split the first 4 commits (everything before the |
On that system there are two gpus: /dev/dri/card0 - found 1st amd & no monitors connected with patch: without patch: Only difference that glamor is disabled: |
This one is not affected by the X server, it should work even in a tty. This one is, but I don't think the X server is the issue here. It looks like a setup issue to me, I had this problem before. Otoh, you need at least these for gbm to work on nvidia: the nvidia egl libs provided by
And you need the right config options for the kernel. You need at least : I Enabled For reference, here is my |
That good catch. Installed it and now modesetting working correctly now |
The gbm platform looks good, but are you sure this is good? |
|
Merge Conflict found |
|
Merge Conflict found |
Pull all generic glamor stuff into dix, and all the xf86 stuff into hw/xfree86
Now Xfbdev uses this too.
Perhaps Xvfb can use this too? https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/235