https://bugs.kde.org/show_bug.cgi?id=358750

--- Comment #18 from Niels Ole Salscheider <niels_...@salscheider-online.de> ---
> The code in question looks like it unconditionally tries /dev/dri/renderD0,
> that one's likely occupied and in return it resorts to card0
> 
> What *should* (probably, I'm no expert) happen is to try all available
> render nodes (ie. loop from 0-128?) until one available is found?!

The current code just tries to open /dev/dri/card0 twice (on Linux), because
"int n = snprintf(buf, sizeof(buf), DRM_DEV_NAME, DRM_DIR_NAME, 0);" just
copies that string into buf. So it does not use render nodes at all.
Of course, the path of the render node could be calculated in a similar way -
the hardcoded path was mostly just to see if it works.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to