public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Suggestions for simplifying VIDEO_CARDS situation
@ 2018-06-17  4:40 Matt Turner
  2018-06-17  6:28 ` Kent Fredric
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Matt Turner @ 2018-06-17  4:40 UTC (permalink / raw
  To: gentoo development; +Cc: x11

Hello,

VIDEO_CARDS is an annoying mess. We used to have radeon, intel, and
some others in media-libs/mesa's VIDEO_CARDS. radeon and intel
corresponded to disparate sets of drivers -- VIDEO_CARDS=radeon has
meant classic r100, r200, r300, and r600 drivers and gallium r600 and
radeonsi drivers. VIDEO_CARDS=intel has meant classic i915 and i965
drivers as well as gallium i915.

I added more-specific VIDEO_CARDS for those separate drivers a few
years ago, so that users could set VIDEO_CARDS="radeon radeonsi" and
only get the one radeonsi driver they actually wanted while still
enabling support for x11-libs/libdrm's radeon support code which is
used by most of those radeon drivers. Of course some users want this
control and others don't care at all.

The confusion comes in with "classic" DRI drivers vs Gallium drivers.
The Gallium abstraction layer allows a hardware driver to handle
multiple APIs -- OpenGL, D3D9, OpenCL, video decode APIs, etc. For
instance, users try to build the classic i965 driver (there is no
Gallium driver for this hardware) with USE=opencl or USE=vaapi and
don't understand why they didn't get what they wanted (or REQUIRED_USE
prevents them from doing so).

Should of Mesa's USE flags, d3d9, llvm, lm_sensors, opencl, openmax,
unwind, vaapi, vdpau, xa, and xvmc are Gallium-only. Should I make a
USE_EXPAND for Gallium-only options to attempt to avoid confusion?
Another point of confusion: not all Gallium drivers support all of
these features. For instance only the r600 and radeonsi drivers
support OpenCL. How to best handle this?

It seems like at one extreme you build an extensive set of
REQUIRED_USE conditions that force users to micromanage their USE
flags, or you let them enable all sorts of impossible combinations and
deal with the confused bug reports.

I would like to somehow get rid of the 'classic' and 'gallium' USE
flags entirely, but I'm not totally sure how. Maybe I can enable them
dependent on VIDEO_CARDS...

Suggestions welcome.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-17 12:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-17  4:40 [gentoo-dev] Suggestions for simplifying VIDEO_CARDS situation Matt Turner
2018-06-17  6:28 ` Kent Fredric
2018-06-17  7:49 ` Brian Dolbec
2018-06-17 12:19   ` Roy Bamford
2018-06-17  8:11 ` [gentoo-dev] " Luca Barbato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox