Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some enhancements to vainfo #46

Merged
merged 3 commits into from
Jul 18, 2017
Merged

Some enhancements to vainfo #46

merged 3 commits into from
Jul 18, 2017

Conversation

xhaihao
Copy link
Contributor

@xhaihao xhaihao commented Jun 23, 2017

3 commits

  • add '--device' option to specify device name if the current display is drm.
  • add '--help' option to show available options
  • replace abort() with exit(1)

This option is only available when the drm display is specified in the
command line

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
@dbermond
Copy link

Works fine for me to show information about /dev/dri/renderD129:

$ vainfo --display drm --device /dev/dri/renderD129
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_40
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.40 (libva )
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Desktop - 1.8.4.pre1 (glk-alpha-71-gc3110dc)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD

@xhaihao
Copy link
Contributor Author

xhaihao commented Jun 25, 2017

@dbermond Thanks for trying the patch and the feedback.

vainfo has '--display' and '--device' options, but these options are
hidden, hence add '--help' to show these options

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
@xhaihao xhaihao changed the title vainfo: add an option "--device" to specify a drm device Some enhancements to vainfo Jul 18, 2017
@xhaihao xhaihao self-assigned this Jul 18, 2017
Copy link

@pengche1 pengche1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xhaihao xhaihao merged commit 16196be into intel:master Jul 18, 2017
@kyse
Copy link

kyse commented Nov 13, 2017

Any thoughts on an environment variable to specify the device similar to LIBVA_DRIVER_NAME.

Ive been trying to get setup with a working solution on a vm server where the systemd daemon making use of vainfo to query quick sync support. Problem is the /dev/dri/renderD128 points to the esxi vmwgfx device.

I'm hoping I can just setup an environment variable in the systemd script to get it to process properly.

@Brainiarc7
Copy link

Hello @kyse ,

It may be possible to set up a udev rule pointing to an alias for the correct device name.

Let me see how that would be implemented.

@Kabouik
Copy link

Kabouik commented Aug 17, 2018

Have you found a way @Brainiarc7?

I would also be interested in specifying a device with an environment variable to use the Intel VA driver (i965) instead of the radeon driver (radeonsi), because the latter comes with some bugs for my use, while i965 works perfectly (tried temporarily after rebooting without my AMD GPU). Yet, I do not want to uninstall the AMD GPU permanently because it has other uses than decoding video. See #186 and #264, as well as your own #120 issue.

@Brainiarc7
Copy link

@Kabouik not yet.

Still looking into a dirty hack with a udev rule.

Look, all we're asking for is a reasonable environment variable that would allow for device selection (optional, in the same way that a device driver for vaapi can be specified). It would solve a lot of headaches with vaapi.

@MartinX3
Copy link

I have a similiar problem.

I use my iHD intel gpu to display everything
My nvidia card is used with prime-run

Sadly the 128 dri device is the nvidia-drm
The 129 dri is the i915

But it seems that devices like parole wants to use the 128 with the vaapi in gstreamer to run the movie on the intel gpu card, which is wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants