ARCHIVE: nv_drm_gem_handle_create_drop_reference is broken #269
YusufKhan-gamedev
started this conversation in
General
Replies: 1 comment
-
Its already a pointer lmao, the real issue is that the handle pointers are negative in userland and thats because its not! #270 270 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
nv_drm_gem_handle_create_drop_reference calls drm_gem_handle_create without passing a pointer to the handle that is not good.
This is not good
The last line is the pointer to the handle I assume it should be the real gem handle(Im awful at visualizing pointers)
Question: Can I use that handle in gem ioctls in any way? I tried passing the handle and the pointer to the handle to nvidia_get_gem_map_offset and both returned 160.
Also if the answer is yes then please for the sake of ABI stability could there be a v2 of the gem ioctls instead of outright removing it? I believe we could remove it 3-4 months after 510 is EOL?
Beta Was this translation helpful? Give feedback.
All reactions