-
Notifications
You must be signed in to change notification settings - Fork 53
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
Non-deprecated coverage #25
Comments
Whats the state of this? It seems many of these changes did already happen on the 'feature-failure' branch, am I right? |
@Drakulix - Yes, all of the recent work has been in the I'm right now moving the low-level logic into the |
Alright, sounds like you got a bunch of refactoring ahead. Once you are settled on a structure of the code, I am happy to help. |
Hey @Slabity, |
I apologize for the delay. My notifications are apparently disabled for some reason. I'll update the list above to show what is covered now in the |
That sounds good! My biggest question regarding your design decisions of the
I would prefer to unify this. I have no opinion regards free-standing functions vs |
Agreed. I plan on unifying the functions to make them easier to work with. I'd like to put all operations that require a The |
Hey @Slabity, |
Hey @Drakulix, sorry for the delays. Life gets in the way. The good news is that there is only one more piece of functionality for atomic modesetting, which is the actual atomic commands themselves (as long as you don't need custom property blobs, which might be a bit more difficult). An atomic 'commit' is actually just a bunch of resource properties you want to modify at once. I'd recommend looking at kmscube's drm-atomic.c to get a sense for how it's used. The caveat is that these resource properties need to be ordered in a specific way or else the driver will complain about bad arguments. As for your other PRs, I can look through those today. On a slightly related note, I've made a new example, |
No worries, I had no time as well in the last couple of weeks, but I want to get started working on smithay again soon. So thanks for your info, I will check that out and try to get something working soon. :) |
I've sorted through all the different functions that the DRM API exposes and filtered out all the deprecated functionality that the kernel no longer recommends using. Any function that was mapped to
drm_noop
,drm_invalid_op
, or one of thedrm_legacy_*
functions in the Linux 4.9 kernel have been removed from the crate. Thedrm-sys
crate will continue to include bindings to them, but unless someone wants me to specifically support that deprecated functionality, they will be kept out ofdrm-rs
. This should keep the crate lean and clean.I'd also like to move low-level ffi-based logic into the
ffi
module. It's currently scattered around the crate.This crate should also support
#[no_std]
if possible. I don't see any dependencies that this requires.Finally, remove all memory allocation and management. Let the user decide how to organize their program's memory.
Basic
Modesetting
DumbBuffers
Cursors
Properties
Atomic
GEM Buffers
PRIME handles
The text was updated successfully, but these errors were encountered: