syncobj: use rendernode for timelines#11087
Conversation
|
might be affected by #11117 |
yeah moved the displaynode / rendernode to structs. check cap on display node first, then render node. unless i missed some logic here i think its working as intended |
|
Can confirm this PR (+ aquamarine changes) works for me on asahi |
nice, mostly just waiting for AQ release then and our rulers review on it ;) |
|
needs a nix bump + cmake/meson aq dep bump and should be gtg |
nix i got no clue, i leave that for @fufexan |
|
@fufexan can you bump aq again |
|
did that actually build with AQ git or did it just rebuild same 0.9.3? |
checked hashes, it did. nvm. |
712d43f to
43f67a2
Compare
|
@fufexan i assume its fine if i update the flake.lock? or does nixos need some prep outside of this flake? |
|
Yeah, you can update it. No need for anything else. |
use rendernode for timelines instead of the drmfd, some devices dont support to use the drmfd for this.
use rendernode if available for CHyprOpenglImpl
try use the rendernode we got from AQ if it exist.
use the rendernode if available already from AQ
prefer the rendernode over the displaynode, and log a error if attempting to use the protocol without explicit sync support on any of the nodes.
check support on both nodes always so it can be used later for preferring rendernode if possible in syncobj protocol.
remove old m_bDrmSyncobjTimelineSupported from non linux if else case that will fail to compile on non linux. the nodes sets support by default to false, and if non linux it wont check for support and set it to true.
bump to 0.9.3 where rendernode support got added.
software renderers apparently bug out on implicit sync, use glfinish as with nvidia case on implicit paths.
|
Thanks a lot for the fix @gulafaran :) |
* syncobj: use rendernode for timelines use rendernode for timelines instead of the drmfd, some devices dont support to use the drmfd for this. * opengl: use rendernode if available use rendernode if available for CHyprOpenglImpl * MesaDRM: use the m_drmRenderNodeFD if it exist try use the rendernode we got from AQ if it exist. * linuxdmabuf: use rendernode if available use the rendernode if available already from AQ * syncobj: prefer rendernode over displaynode prefer the rendernode over the displaynode, and log a error if attempting to use the protocol without explicit sync support on any of the nodes. * syncobj: check support on both nodes always check support on both nodes always so it can be used later for preferring rendernode if possible in syncobj protocol. * syncobj: remove old var in non linux if else case remove old m_bDrmSyncobjTimelineSupported from non linux if else case that will fail to compile on non linux. the nodes sets support by default to false, and if non linux it wont check for support and set it to true. * build: bump aq requirement bump to 0.9.3 where rendernode support got added. * flake.lock: update * renderer: glfinish on software renderer software renderers apparently bug out on implicit sync, use glfinish as with nvidia case on implicit paths. * flake.lock: update --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* syncobj: use rendernode for timelines use rendernode for timelines instead of the drmfd, some devices dont support to use the drmfd for this. * opengl: use rendernode if available use rendernode if available for CHyprOpenglImpl * MesaDRM: use the m_drmRenderNodeFD if it exist try use the rendernode we got from AQ if it exist. * linuxdmabuf: use rendernode if available use the rendernode if available already from AQ * syncobj: prefer rendernode over displaynode prefer the rendernode over the displaynode, and log a error if attempting to use the protocol without explicit sync support on any of the nodes. * syncobj: check support on both nodes always check support on both nodes always so it can be used later for preferring rendernode if possible in syncobj protocol. * syncobj: remove old var in non linux if else case remove old m_bDrmSyncobjTimelineSupported from non linux if else case that will fail to compile on non linux. the nodes sets support by default to false, and if non linux it wont check for support and set it to true. * build: bump aq requirement bump to 0.9.3 where rendernode support got added. * flake.lock: update * renderer: glfinish on software renderer software renderers apparently bug out on implicit sync, use glfinish as with nvidia case on implicit paths. * flake.lock: update --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
use rendernode for timelines instead of the drmfd, some devices dont support to use the drmfd for this.
requires: hyprwm/aquamarine#193
fixes: #10401