D27980: make opengl module support multiple dri devices

Harald Sitter noreply at phabricator.kde.org
Thu Mar 12 12:21:31 GMT 2020


sitter added a comment.


  In D27980#625840 <https://phabricator.kde.org/D27980#625840>, @zzag wrote:
  
  > I'm not sure whether this is useful, but libdrm has an API to enumerate devices.
  
  
  Had a quick look, using libdrm seems a bit excessive for what we want to do here. The current /sys digging also doesn't exactly fill me with joy though :(

INLINE COMMENTS

> sitter wrote in opengl.cpp:281
> Dirs actually, e.g. /proc/dri/0/name
> I honestly do not know what they are so I figured best to just list everything. They could be symlinks for all I know. /proc/dri/ isn't a thing on any of my VMs :|

As it turns out the /proc/dri stuff was supposedly removed here https://github.com/torvalds/linux/commit/cb6458f97b53d7f73043206c18014b3ca63ac345 making this code entirely irrelevant since kernel 3.12.
Any objections to removing it altogether?

REPOSITORY
  R102 KInfoCenter

REVISION DETAIL
  https://phabricator.kde.org/D27980

To: sitter
Cc: zzag, apol, adridg, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200312/39e25cce/attachment.html>


More information about the Plasma-devel mailing list