core: fix background screenshot on nvidia#656
Conversation
|
I guess we probably want a option to enable it per default, so that we don't have to wait for dma to fail. |
6f7f93f to
9a7b544
Compare
01f1022 to
e5c35ff
Compare
|
I tested with a 3060ti and 550.142 drivers on Hyprland (10-bit as well) and sway (sends a different shm format, tested 24->32). |
vaxerski
left a comment
There was a problem hiding this comment.
generally dma on nvidia should work and there's likely a mistake in the code somewhere. I mean, aquamarine creates buffers just fine.
I guess this is a fair enough compromise for now though (shm is slooow)
|
you mean it should work with non-linear modifiers?? |
e5c35ff to
04f43c2
Compare
|
yeah, nvidia can render to non-linear. |
|
... but it can't bind them to GL_TEXTURE_2D right? |
|
no, external is needed for linear. Most modifiers should be fine with GL_TEXTURE_2D. See |
|
Using |
9b55cb6 to
b778376
Compare
|
Ok since dma also works for nvidia now, I removed the |
Fixes DMA buffer screencopy on nvidia cards. Probably because the sc buffer gets exported by mesa and not nvidia. Why was it so hard to find this?
b778376 to
7904252
Compare
|
Ok so on my old intel laptop It now tries |
Removes the need for eglCreateDRMImageMESA.
|
So in the end we were just missing |
Fixes screencopy on nvidia by falling back to a shm buffer when dma failes.
Closes #59