Bug 61269 - Support libkms on FreeBSD
Summary: Support libkms on FreeBSD
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: libdrm (show other bugs)
Version: XOrg git
Hardware: All FreeBSD
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-22 11:10 UTC by Philip Withnall
Modified: 2019-09-24 17:08 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Fix detection of Intel-style atomic primitives on amd64 (patch by Brian Waters) (831 bytes, text/plain)
2013-02-22 11:10 UTC, Philip Withnall
no flags Details
Add support for FreeBSD’s libkms (patch by Konstantin Belousov) (2.24 KB, patch)
2013-02-22 11:11 UTC, Philip Withnall
no flags Details | Splinter Review
Replace strchrnul() with strchr() (973 bytes, patch)
2013-02-22 11:12 UTC, Philip Withnall
no flags Details | Splinter Review
Add local implementation of strchrnul() (3.74 KB, patch)
2013-02-22 12:47 UTC, Niclas Zeising
no flags Details | Splinter Review
Updated "Add support for FreeBSD’s libkms (patch by Konstantin Belousov)" (2.39 KB, patch)
2013-09-19 11:36 UTC, Christoph Egger
no flags Details | Splinter Review

Description Philip Withnall 2013-02-22 11:10:41 UTC
Created attachment 75298 [details]
Fix detection of Intel-style atomic primitives on amd64 (patch by Brian Waters)

Series of 3 patches coming up which allow libdrm to be compiled with KMS support on FreeBSD.
Comment 1 Philip Withnall 2013-02-22 11:11:53 UTC
Created attachment 75299 [details] [review]
Add support for FreeBSD’s libkms (patch by Konstantin Belousov)

Originally from: http://people.freebsd.org/~kib/drm/libdrm.2.patch
Comment 2 Philip Withnall 2013-02-22 11:12:24 UTC
Created attachment 75300 [details] [review]
Replace strchrnul() with strchr()

strchrnul() doesn’t exist on FreeBSD, and is simple enough to replace with strchr().
Comment 3 Niclas Zeising 2013-02-22 12:47:28 UTC
Created attachment 75312 [details] [review]
Add local implementation of strchrnul()

Hi!
Attached is a different solution to the strchrnul() issue, it adds a local implementation and a configure check to see if strchrnul() exists in libc.  If it does exist in libc, that version will be used instead of the local version.
Comment 4 Christoph Egger 2013-09-19 11:36:57 UTC
Created attachment 86138 [details] [review]
Updated "Add support for FreeBSD’s libkms (patch by Konstantin Belousov)"

Attached is an update to the libkms patch. It adds two small modifications so it works on kfreebsd as well and refreshes against libdrm 2.46. It also adds a small fix (len is used before it is assigned) without which it doesn't work for me
Comment 5 emaste 2014-08-06 00:38:18 UTC
What's the next step here?
Comment 6 Emil Velikov 2014-08-06 03:44:44 UTC
Have either of these two made it to the mailing list [1] ? AFAIK most people do not look for and/or expect patches in bugzilla. Please use git am to generate both patches :)

Thanks
Emil

[1] dri-devel@lists.freedesktop.org
Comment 7 GitLab Migration User 2019-09-24 17:08:43 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/drm/issues/10.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.