[Bug 1209134] New: Don't export LIBVA_DRIVER_NAME in intel-media-driver
http://bugzilla.opensuse.org/show_bug.cgi?id=1209134 Bug ID: 1209134 Summary: Don't export LIBVA_DRIVER_NAME in intel-media-driver Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org Assignee: gfx-bugs@suse.de Reporter: llyyr.public@gmail.com QA Contact: gfx-bugs@suse.de Found By: --- Blocker: --- Currently intel-media-driver exports LIBVA_DRIVER_NAME=iHD globally, which is not needed on a single gpu system and actively annoying on a multigpu system where all the GPUs aren't Intel. I can't think of any good reason why we need to set this, and if we do for whatever reason then we should put it on a different package and install it via recommends so people that have multiple GPUs and don't want to always be using Intel can just lock the package. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1209134 http://bugzilla.opensuse.org/show_bug.cgi?id=1209134#c1 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |CONFIRMED --- Comment #1 from Stefan Dirsch <sndirsch@suse.com> --- Ok. Indeed this is no longer necessary. This came in with version 2.6.0 - 15.Dec.2019 [...] * drm: Add iHD to driver_name_map [...] commit 09c8c2e20b7763fc44299172dbb16061b57f9c71 Author: Azhar Shaikh <azhar.shaikh@intel.com> Date: Tue Nov 6 10:33:33 2018 -0800 drm: Add iHD to driver_name_map Add mapping of i915 kernel driver to Intel media driver vaInitialize succeeds on systems with iHD driver without having to export LIBVA_DRIVER_NAME=iHD Fixes #244 Signed-off-by: Azhar Shaikh <azhar.shaikh@intel.com> diff --git a/va/drm/va_drm_utils.c b/va/drm/va_drm_utils.c index 0fe1a35..cd67ecb 100644 --- a/va/drm/va_drm_utils.c +++ b/va/drm/va_drm_utils.c @@ -37,6 +37,7 @@ struct driver_name_map { }; static const struct driver_name_map g_driver_name_map[] = { + { "i915", 4, "iHD" }, // Intel Media driver { "i915", 4, "i965" }, // Intel OTC GenX driver { "pvrsrvkm", 8, "pvr" }, // Intel UMG PVR driver { "emgd", 4, "emgd" }, // Intel ECG PVR driver Also version 2.8.0 - 18.Jun.2020 [...] * VA/X11: enable driver candidate selection for DRI2 [...] commit bc8a12af319feca180aa99301b7e930f5890c1dd Author: U. Artie Eoff <ullysses.a.eoff@intel.com> Date: Mon Apr 13 12:22:06 2020 -0700 VA/X11: enable driver candidate selection for DRI2 Map the i965 DRI driver to iHD and i965 vaapi driver candidates. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> [...] A bit of history. I introduced LIBVA_DRIVER_NAME=iHD from the beginning when I created intel-media-driver package: ---------------------------------------------------------------------------- r1 | sndirsch | 2018-07-17 11:52:02 | b74da1a78b7062f5ea052fdb3851fa73 | 18.2.0 | rq623376 Initial package, requiring the new libva 2.2.0 I wasn't aware that it would no longer be necessary. As you can see the changes were done after I added to set this environment variable. I will remove it. Also in package for Leap 15.5. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1209134 http://bugzilla.opensuse.org/show_bug.cgi?id=1209134#c2 --- Comment #2 from Stefan Dirsch <sndirsch@suse.com> --- https://github.com/intel/libva/issues/244 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1209134 http://bugzilla.opensuse.org/show_bug.cgi?id=1209134#c3 --- Comment #3 from Stefan Dirsch <sndirsch@suse.com> --- We ship libva >= 2.10 with sle15-sp3/Leap 15..3 and newer. From there it's no longer needed. libva on sle12-sp5 is too old (2.3.0)/ -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1209134 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Don't export |intel-media-driver: Setting |LIBVA_DRIVER_NAME in |LIBVA_DRIVER_NAME=iHD no |intel-media-driver |longer needed -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1209134 http://bugzilla.opensuse.org/show_bug.cgi?id=1209134#c4 --- Comment #4 from Stefan Dirsch <sndirsch@suse.com> --- Also I verified that things are working as expected. On my Haswell, which is too old for intel-media-driver "iHD" gets tried first, fails and then falls back to "i965" without any issues. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1209134 http://bugzilla.opensuse.org/show_bug.cgi?id=1209134#c5 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Stefan Dirsch <sndirsch@suse.com> --- Submitted for factory/TW and sle15-sp5/Leap 15.5. Closing. Thanks for the report! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1209134 http://bugzilla.opensuse.org/show_bug.cgi?id=1209134#c6 --- Comment #6 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1209134) was mentioned in https://build.opensuse.org/request/show/1070714 Factory / intel-media-driver -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com