View previous topic :: View next topic |
Author |
Message |
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Wed Sep 28, 2016 11:08 pm Post subject: intel should i USE= egl gles opengl etc? |
|
|
i don't really do games or other fancy multimedia stuff, except for watching movies occasionally. i seem to have issues playing videos online or offline. perhaps they are to do with some particular movies, or formats, or codes. i don't understand enough..
i do have 3d acceleration as per the wiki.
Code: | $ glxinfo | grep rendering
direct rendering: Yes |
with vo=vaapi, i get a blank black mpv window.. and lots of these error messages
Code: | $ mpv -vo vaapi videofile
...
(+) Video --vid=1 (*) (h264)
(+) Audio --aid=1 --alang=eng (*) 'DASH audio' (opus) (external)
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/va/drivers/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
[vaapi] Decoder profile 'VAProfileH264Main' not available.
AO: [alsa] 48000Hz stereo 2ch float
Using software decoding.
VO: [vaapi] 552x360 yuv420p
[osd/libass] fontconfig: cannot find font 'sans-serif', falling back to 'DejaVu Sans'
[vo/vaapi] vaPutSurface(): the requested function is not implemented
[vo/vaapi] vaPutSurface(): the requested function is not implemented
AV: 00:00:00 / 01:27:17 (0%) A-V: 0.000 Cache: 10s+592KB
[vo/vaapi] vaPutSurface(): the requested function is not implemented
AV: 00:00:00 / 01:27:17 (0%) A-V: 0.000 Cache: 10s+592KB
[vo/vaapi] vaPutSurface(): the requested function is not implemented
AV: 00:00:00 / 01:27:17 (0%) A-V: 0.000 Cache: 10s+672KB
[vo/vaapi] vaPutSurface(): the requested function is not implemented
AV: 00:00:00 / 01:27:17 (0%) A-V: 0.000 Cache: 10s+672KB
[vo/vaapi] vaPutSurface(): the requested function is not implemented
AV: 00:00:00 / 01:27:17 (0%) A-V: 0.000 Cache: 10s+736KB
[vo/vaapi] vaPutSurface(): the requested function is not implemented
[vo/vaapi] vaPutSurface(): the requested function is not implemented
... |
with vo=opengl-hq, i can see the video playing in the mpv window.. and some warning messages
Code: | $ mpv -vo opengl-hq videofile
...
(+) Video --vid=1 (*) (h264)
(+) Audio --aid=1 --alang=eng (*) 'DASH audio' (opus) (external)
[vo/opengl-hq] Could not create EGL context!
[vo/opengl-hq] Disabling scaler #0 spline36 (GLSL version too old).
[vo/opengl-hq] Disabling scaler #1 mitchell (GLSL version too old).
[vo/opengl-hq] Disabling scaler #2 spline36 (GLSL version too old).
[vo/opengl-hq] Disabling scaler #3 mitchell (GLSL version too old).
[vo/opengl-hq] Disabling linear/sigmoid scaling (GLSL version too old).
[vo/opengl-hq] Disabling debanding (GLSL version too old).
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/va/drivers/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
AO: [alsa] 48000Hz stereo 2ch float
[vaapi] Decoder profile 'VAProfileH264Main' not available.
Using software decoding.
VO: [opengl-hq] 552x360 yuv420p
[osd/libass] fontconfig: cannot find font 'sans-serif', falling back to 'DejaVu Sans'
AV: 00:00:02 / 01:27:17 (0%) A-V: 0.000 Cache: 10s+2MB
... |
i'm afraid, i don't really understand all those messages.
should i globally enable any flags - perhaps (drm?) egl gles opengl vaapi - for all packages and recompile everything? if they are not required everywhere, i'd rather not.
/usr/sbin/lspci -knnv: | 00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a42] (rev 07) (prog-if 00 [VGA controller])
Subsystem: Toshiba America Info Systems Mobile 4 Series Chipset Integrated Graphics Controller [1179:ff1e]
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at d0000000 (64-bit, non-prefetchable) [size=4M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 5110 [size=8]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915 |
/etc/portage/make.conf: | VIDEO_CARDS="intel i965" |
_________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Last edited by josephg on Wed Apr 19, 2017 8:27 pm; edited 6 times in total |
|
Back to top |
|
|
spidark Tux's lil' helper
Joined: 01 Sep 2011 Posts: 147
|
Posted: Sat Oct 01, 2016 3:24 pm Post subject: |
|
|
Hi josephg
I'm no expert and can't help you with an explanation of those errors,
But you can try to enabling vaapi and x264 and x265 om ffmpeg in package.use
I do not see those errors when i play a video file on my Laptop.
Code: |
mpv -vo opengl-hq 0001-8388.mp4
Auto-loading profile 'extension.mp4'
Playing: 0001-8388.mp4
(+) Video --vid=1 (*) (mpeg4)
(+) Audio --aid=1 --alang=und (*) (mp3)
AO: [pulse] 44100Hz stereo 2ch s16
VO: [opengl-hq] 960x540 yuv420p
Fontconfig warning: "/etc/fonts/infinality/conf.d/41-repl-os-win.conf", line 148: Having multiple values in <test> isn't supported and may not work as expected
|
Code: |
mpv -vo vaapi 0001-8388.mp4
Auto-loading profile 'extension.mp4'
Playing: 0001-8388.mp4
(+) Video --vid=1 (*) (mpeg4)
(+) Audio --aid=1 --alang=und (*) (mp3)
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/va/drivers/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
AO: [pulse] 44100Hz stereo 2ch s16
VO: [vaapi] 960x540 yuv420p
Fontconfig warning: "/etc/fonts/infinality/conf.d/41-repl-os-win.conf", line 148: Having multiple values in <test> isn't supported and may not work as expected
|
Code: |
less ~/.mpv/config
[vo.vdpau]
hwdec=vdpau
#ao=alsa
ao=pulse
alang=en
af=drc
vo=opengl-hq
softvol=yes
[protocol.dvd]
profile-desc="profile for dvd:// streams"
#=====================================
# FLV PROFILE
# ===================================
[extension.flv]
profile-desc="profile for .flv files"
ontop=yes
fullscreen = yes
# force starting with centered window
geometry=50%:50%
# # # don't allow a new window to have a size larger than 90% of the screen size
autofit-larger=90%x90%
#softvol-max=1600
volume-max=4600
|
Code: | media-video/ffmpeg
Latest version available: 2.8.6
Latest version installed: 2.8.6
Unstable version: 9999
Use Flags (stable): +X +alsa +amr +amr +amrenc +bluray +bs2b +bzip2 +cdio +celt +chromaprint +cpu_flags_x86_aes +cpu_flags_x86_avx +cpu_flags_x86_mmx +cpu_flags_x86_mmxext +cpu_flags_x86_sse +cpu_flags_x86_sse2 +cpu_flags_x86_sse3 +cpu_flags_x86_sse4_1 +cpu_flags_x86_sse4_2 +cpu_flags_x86_ssse3 +cpudetection +ebur128 +encode +faac +fdk +fftools_aviocat +fftools_cws2fws +fftools_ffescape +fftools_ffeval +fftools_ffhash +fftools_fourcc2pixfmt +fftools_graph2dot +fftools_ismindex +fftools_pktdumper +fftools_qt-faststart +fftools_sidxindex +fftools_trasher +flite +fontconfig +frei0r +fribidi +gme +gpl +gsm +hardcoded-tables +iconv +iec61883 +ieee1394 +jpeg2k +kvazaar +ladspa +libass +libcaca +libilbc +librtmp +libsoxr +libv4l +lzma +modplug +mp3 +network +nvenc +openal +opengl +openh264 +openssl +opus +oss +pic +postproc +pulseaudio +rubberband +schroedinger +sdl +sdl +snappy +speex +theora +threads +truetype +twolame +v4l +vaapi +vdpau +vorbis +vpx +wavpack +webp +x264 +x265 +xcb +xcb +xcb +xvid +zimg +zlib +zvbi -abi_x86_32 -cpu_flags_x86_3dnow -cpu_flags_x86_3dnowext -cpu_flags_x86_avx2 -cpu_flags_x86_fma3 -cpu_flags_x86_fma4 -cpu_flags_x86_xop -debug -doc -gcrypt -gmp -gnutls -jack -samba -ssh -static-libs -test |
Hope this helps you.
Cheers. _________________ Laptop HP Pavilion G6 2310-SD Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Sat Oct 01, 2016 3:52 pm Post subject: |
|
|
thank you spidark. i'll have another look..
btw, what command gives this output?
spidark wrote: | Code: | media-video/ffmpeg
Latest version available: 2.8.6
Latest version installed: 2.8.6
Unstable version: 9999
Use Flags (stable): +X +alsa +amr +amr +amrenc +bluray +bs2b +bzip2 +cdio +celt +chromaprint +cpu_flags_x86_aes +cpu_flags_x86_avx +cpu_flags_x86_mmx +cpu_flags_x86_mmxext +cpu_flags_x86_sse +cpu_flags_x86_sse2 +cpu_flags_x86_sse3 +cpu_flags_x86_sse4_1 +cpu_flags_x86_sse4_2 +cpu_flags_x86_ssse3 +cpudetection +ebur128 +encode +faac +fdk +fftools_aviocat +fftools_cws2fws +fftools_ffescape +fftools_ffeval +fftools_ffhash +fftools_fourcc2pixfmt +fftools_graph2dot +fftools_ismindex +fftools_pktdumper +fftools_qt-faststart +fftools_sidxindex +fftools_trasher +flite +fontconfig +frei0r +fribidi +gme +gpl +gsm +hardcoded-tables +iconv +iec61883 +ieee1394 +jpeg2k +kvazaar +ladspa +libass +libcaca +libilbc +librtmp +libsoxr +libv4l +lzma +modplug +mp3 +network +nvenc +openal +opengl +openh264 +openssl +opus +oss +pic +postproc +pulseaudio +rubberband +schroedinger +sdl +sdl +snappy +speex +theora +threads +truetype +twolame +v4l +vaapi +vdpau +vorbis +vpx +wavpack +webp +x264 +x265 +xcb +xcb +xcb +xvid +zimg +zlib +zvbi -abi_x86_32 -cpu_flags_x86_3dnow -cpu_flags_x86_3dnowext -cpu_flags_x86_avx2 -cpu_flags_x86_fma3 -cpu_flags_x86_fma4 -cpu_flags_x86_xop -debug -doc -gcrypt -gmp -gnutls -jack -samba -ssh -static-libs -test |
|
_________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey |
|
Back to top |
|
|
spidark Tux's lil' helper
Joined: 01 Sep 2011 Posts: 147
|
Posted: Sat Oct 01, 2016 8:05 pm Post subject: |
|
|
josephg wrote: | thank you spidark. i'll have another look..
btw, what command gives this output?
spidark wrote: | Code: | media-video/ffmpeg
Latest version available: 2.8.6
Latest version installed: 2.8.6
Unstable version: 9999
Use Flags (stable): +X +alsa +amr +amr +amrenc +bluray +bs2b +bzip2 +cdio +celt +chromaprint +cpu_flags_x86_aes +cpu_flags_x86_avx +cpu_flags_x86_mmx +cpu_flags_x86_mmxext +cpu_flags_x86_sse +cpu_flags_x86_sse2 +cpu_flags_x86_sse3 +cpu_flags_x86_sse4_1 +cpu_flags_x86_sse4_2 +cpu_flags_x86_ssse3 +cpudetection +ebur128 +encode +faac +fdk +fftools_aviocat +fftools_cws2fws +fftools_ffescape +fftools_ffeval +fftools_ffhash +fftools_fourcc2pixfmt +fftools_graph2dot +fftools_ismindex +fftools_pktdumper +fftools_qt-faststart +fftools_sidxindex +fftools_trasher +flite +fontconfig +frei0r +fribidi +gme +gpl +gsm +hardcoded-tables +iconv +iec61883 +ieee1394 +jpeg2k +kvazaar +ladspa +libass +libcaca +libilbc +librtmp +libsoxr +libv4l +lzma +modplug +mp3 +network +nvenc +openal +opengl +openh264 +openssl +opus +oss +pic +postproc +pulseaudio +rubberband +schroedinger +sdl +sdl +snappy +speex +theora +threads +truetype +twolame +v4l +vaapi +vdpau +vorbis +vpx +wavpack +webp +x264 +x265 +xcb +xcb +xcb +xvid +zimg +zlib +zvbi -abi_x86_32 -cpu_flags_x86_3dnow -cpu_flags_x86_3dnowext -cpu_flags_x86_avx2 -cpu_flags_x86_fma3 -cpu_flags_x86_fma4 -cpu_flags_x86_xop -debug -doc -gcrypt -gmp -gnutls -jack -samba -ssh -static-libs -test |
|
|
Sorry about that josephg,
Install Code: | app-portage/esearch |
Command
I also like to use
Code: | app-portage/gentoolkit |
command
Which gives more descriptive information.
Cheers. _________________ Laptop HP Pavilion G6 2310-SD Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Wed Oct 05, 2016 5:15 am Post subject: |
|
|
spidark wrote: | Install Code: | app-portage/esearch |
Command |
i liked that concise output with all (de)selected flags in one line. hence why i asked. thank you.
yes i have equery. just one problem i'm facing is the output can't be parsed, or i'm not doing it right. for eg,
Code: | $ equery u ffmpeg | grep -i decod |
returns nothing _________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Last edited by josephg on Fri Oct 07, 2016 8:59 pm; edited 1 time in total |
|
Back to top |
|
|
spidark Tux's lil' helper
Joined: 01 Sep 2011 Posts: 147
|
Posted: Wed Oct 05, 2016 6:07 am Post subject: |
|
|
josephg wrote: |
yes i have equery. just one problem i'm facing is the output can't be parsed, or i'm not doing it right. for eg,
Code: | $ equery u ffmpeg | grep -i decod |
returns nothing |
Hi josephg,
try this
To see the flags that were set i use this command.
Code: | equery u ffmpeg | grep -i ^+ |
And for Unset i use
Code: | equery u ffmpeg | grep -i ^- |
Or eg to check cpu flags available
Code: | equery u ffmpeg | grep -i cpu
-cpu_flags_x86_3dnow
-cpu_flags_x86_3dnowext
+cpu_flags_x86_avx
-cpu_flags_x86_avx2
-cpu_flags_x86_fma3
-cpu_flags_x86_fma4
+cpu_flags_x86_mmx
+cpu_flags_x86_mmxext
+cpu_flags_x86_sse
+cpu_flags_x86_sse2
+cpu_flags_x86_sse3
+cpu_flags_x86_sse4_1
+cpu_flags_x86_sse4_2
+cpu_flags_x86_ssse3
-cpu_flags_x86_xop
+cpudetection
|
or to check which cpu flags are active.
Code: | equery u ffmpeg | grep -i ^+cpu
+cpu_flags_x86_avx
+cpu_flags_x86_mmx
+cpu_flags_x86_mmxext
+cpu_flags_x86_sse
+cpu_flags_x86_sse2
+cpu_flags_x86_sse3
+cpu_flags_x86_sse4_1
+cpu_flags_x86_sse4_2
+cpu_flags_x86_ssse3
+cpudetection
|
That's how i use grep, but there are grep experts that can instruct you with better examples i'm sure. _________________ Laptop HP Pavilion G6 2310-SD Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Wed Oct 05, 2016 12:59 pm Post subject: |
|
|
thank you again. but let me clarify what i was trying..
if i "equery u ffmpeg", i get a very long list of each use flag per line with a "description" at the end of each line.
if i "equery u ffmpeg | grep cpu", i don't see that "description" at the end of each line. i would like to see the "description" too, when i grep it.
but perhaps this is more a portage query, i should ask in that sub-forum. _________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Last edited by josephg on Mon Apr 17, 2017 10:10 am; edited 1 time in total |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Wed Oct 05, 2016 2:31 pm Post subject: |
|
|
josephg wrote: | if i "equery u ffmpeg | grep cpu", i don't see that "description" at the end of each line. i would like to see the "description" too, when i grep it. |
ok, i found the answer. equery needs --no-pipe like so.
Code: | $ equery --no-pipe u ffmpeg | grep cpu
- - cpu_flags_x86_3dnow : Use the 3DNow! instruction set
- - cpu_flags_x86_3dnowext : Use the Enhanced 3DNow! instruction set
- - cpu_flags_x86_avx : Adds support for Advanced Vector Extensions instructions
- - cpu_flags_x86_avx2 : Adds support for Advanced Vector Extensions 2 instructions
- - cpu_flags_x86_fma3 : Use the Fused Multiply Add 3 instruction set ([fma] in cpuinfo)
- - cpu_flags_x86_fma4 : Use the Fused Multiply Add 4 instruction set
+ + cpu_flags_x86_mmx : Use the MMX instruction set
+ + cpu_flags_x86_mmxext : Use the Extended MMX instruction set (a subset of SSE) ([mmxext] or [sse] in cpuinfo)
+ + cpu_flags_x86_sse : Use the SSE instruction set
+ + cpu_flags_x86_sse2 : Use the SSE2 instruction set
+ + cpu_flags_x86_sse3 : Use the SSE3 instruction set ([pni] in cpuinfo, NOT ssse3)
- - cpu_flags_x86_sse4_1 : Enable SSE4.1 instruction support
- - cpu_flags_x86_sse4_2 : Enable SSE4.2 instruction support
+ + cpu_flags_x86_ssse3 : Use the SSSE3 instruction set (NOT sse3/pni)
- - cpu_flags_x86_xop : Enable the XOP instruction set
- - cpudetection : Enables runtime CPU detection (useful for bindist, compatibility on other CPUs) |
without it,
Code: | $ equery u ffmpeg | grep cpu
-cpu_flags_x86_3dnow
-cpu_flags_x86_3dnowext
-cpu_flags_x86_avx
-cpu_flags_x86_avx2
-cpu_flags_x86_fma3
-cpu_flags_x86_fma4
+cpu_flags_x86_mmx
+cpu_flags_x86_mmxext
+cpu_flags_x86_sse
+cpu_flags_x86_sse2
+cpu_flags_x86_sse3
-cpu_flags_x86_sse4_1
-cpu_flags_x86_sse4_2
+cpu_flags_x86_ssse3
-cpu_flags_x86_xop
-cpudetection |
that's what i was missing personally, i think this should be the default behaviour!
now i can get this working..
josephg wrote: |
yes i have equery. just one problem i'm facing is the output can't be parsed, or i'm not doing it right. for eg,
Code: | $ equery u ffmpeg | grep -i decod |
returns nothing |
Code: | $ equery --no-pipe u ffmpeg | grep -i decod
- - celt : Adds Xiph CELT audio decoding support via media-libs/celt
- - opus : Adds (decoding) support for the Opus codec via media-libs/opus.
+ + vaapi : Enable Video Acceleration API for hardware decoding
- - vdpau : Enable the Video Decode and Presentation API for Unix acceleration interface
- - vpx : Enables vp8 codec support using libvpx: Decoding vp8 does not require this to be enabled but libvpx can also be used for decoding; encoding vp8 requires this useflag to be enabled though.
- - zvbi : Enables media-libs/zvbi based teletext decoder. |
_________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Last edited by josephg on Fri Oct 07, 2016 9:01 pm; edited 2 times in total |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Wed Oct 05, 2016 3:42 pm Post subject: |
|
|
i see debian recommends not using xf86-video-intel driver.
Quote: | The use of this driver is discouraged if your hw is new enough (ca. 2007 and newer). You can try uninstalling this driver and let the server use it's builtin modesetting driver instead. |
so i did a bit of research and saw lots of articles suggesting improved performance after removing this driver. so i did
since i have VIDEO_CARDS="intel" in make.conf, i had to
/etc/portage/package.use: | x11-base/xorg-drivers -video_cards_intel |
after rebooting, i stil have
Code: | $ glxinfo | grep rendering
direct rendering: Yes |
and now glxgears consistently gives me 500+ FPS where before i was getting a tad less than 60 FPS _________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Last edited by josephg on Fri Oct 07, 2016 1:32 pm; edited 2 times in total |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Wed Oct 05, 2016 4:20 pm Post subject: |
|
|
josephg wrote: | and now glxgears consistently gives me 500+ FPS whereas i was getting a tad less than 60 FPS with the intel driver. |
That just means the latter had vsync and modesetting doesn't, nothing about 3D. You'll need to check glxinfo -B doesn't mention softpipe to be sure. |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Wed Oct 05, 2016 7:32 pm Post subject: |
|
|
Ant P. wrote: | josephg wrote: | and now glxgears consistently gives me 500+ FPS whereas i was getting a tad less than 60 FPS with the intel driver. |
That just means the latter had vsync and modesetting doesn't, nothing about 3D. You'll need to check glxinfo -B doesn't mention softpipe to be sure. |
with x11-drivers/xf86-video-intel
Code: | $ glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Intel Open Source Technology Center (0x8086)
Device: Mesa DRI Mobile Intel® GM45 Express Chipset x86/MMX/SSE2 (0x2a42)
Version: 12.0.1
Accelerated: yes
Video memory: 1536MB
Unified memory: yes
Preferred profile: compat (0x2)
Max core profile version: 0.0
Max compat profile version: 2.1
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 2.0
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset x86/MMX/SSE2
OpenGL version string: 2.1 Mesa 12.0.1
OpenGL shading language version string: 1.20
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 12.0.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16 |
without x11-drivers/xf86-video-intel
Code: | $ glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: VMware, Inc. (0xffffffff)
Device: llvmpipe (LLVM 3.7, 128 bits) (0xffffffff)
Version: 12.0.1
Accelerated: no
Video memory: -1186MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 3.3
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.7, 128 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 12.0.1
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 3.0 Mesa 12.0.1
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 12.0.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00 |
Ant P., is that what you meant by softpipe?
it says i'm running on a vmware driver
but /var/log/Xorg.0.log shows me what i think i should be running on:
Code: | [ 2305.366] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 2305.366] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 2305.366] (II) Loader magic: 0x829b680
[ 2305.366] (II) Module ABI versions:
[ 2305.366] X.Org ANSI C Emulation: 0.4
[ 2305.366] X.Org Video Driver: 20.0
[ 2305.366] X.Org XInput driver : 22.1
[ 2305.366] X.Org Server Extension : 9.0
[ 2305.367] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 2305.369] (--) PCI:*(0:0:2:0) 8086:2a42:1179:ff1e rev 7, Mem @ 0xd0000000/4194304, 0xc0000000/268435456, I/O @ 0x00005110/8
[ 2305.369] (--) PCI: (0:0:2:1) 8086:2a43:1179:ff1e rev 7, Mem @ 0xd3500000/1048576
[ 2305.369] (II) LoadModule: "glx"
[ 2305.370] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 2305.371] (II) Module glx: vendor="X.Org Foundation"
[ 2305.371] compiled for 1.18.4, module version = 1.0.0
[ 2305.371] ABI class: X.Org Server Extension, version 9.0
[ 2305.371] (==) AIGLX enabled
[ 2305.371] (==) Matched intel as autoconfigured driver 0
[ 2305.371] (==) Matched intel as autoconfigured driver 1
[ 2305.371] (==) Matched modesetting as autoconfigured driver 2
[ 2305.371] (==) Matched fbdev as autoconfigured driver 3
[ 2305.371] (==) Matched vesa as autoconfigured driver 4
[ 2305.371] (==) Assigned the driver to the xf86ConfigLayout
[ 2305.371] (II) LoadModule: "intel"
[ 2305.372] (WW) Warning, couldn't open module intel
[ 2305.372] (II) UnloadModule: "intel"
[ 2305.372] (II) Unloading intel
[ 2305.372] (EE) Failed to load module "intel" (module does not exist, 0)
[ 2305.372] (II) LoadModule: "modesetting"
[ 2305.372] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 2305.372] (II) Module modesetting: vendor="X.Org Foundation"
[ 2305.372] compiled for 1.18.4, module version = 1.18.4
[ 2305.372] Module class: X.Org Video Driver
[ 2305.372] ABI class: X.Org Video Driver, version 20.0
[ 2305.372] (II) LoadModule: "fbdev"
[ 2305.372] (WW) Warning, couldn't open module fbdev
[ 2305.372] (II) UnloadModule: "fbdev"
[ 2305.372] (II) Unloading fbdev
[ 2305.372] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 2305.373] (II) LoadModule: "vesa"
[ 2305.373] (WW) Warning, couldn't open module vesa
[ 2305.373] (II) UnloadModule: "vesa"
[ 2305.373] (II) Unloading vesa
[ 2305.373] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 2305.373] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 2305.373] (++) using VT number 1 |
Code: | [ 2305.852] (II) modeset(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[ 2305.852] (==) modeset(0): DPI set to (96, 96)
[ 2305.852] (II) Loading sub module "fb"
[ 2305.852] (II) LoadModule: "fb"
[ 2305.852] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 2305.903] (II) Module fb: vendor="X.Org Foundation"
[ 2305.903] compiled for 1.18.4, module version = 1.0.0
[ 2305.903] ABI class: X.Org ANSI C Emulation, version 0.4
[ 2305.903] (II) Loading sub module "shadow"
[ 2305.903] (II) LoadModule: "shadow"
[ 2305.903] (II) Loading /usr/lib/xorg/modules/libshadow.so
[ 2305.915] (II) Module shadow: vendor="X.Org Foundation"
[ 2305.915] compiled for 1.18.4, module version = 1.1.0
[ 2305.915] ABI class: X.Org ANSI C Emulation, version 0.4
[ 2305.915] (==) Depth 24 pixmap format is 32 bpp
[ 2305.915] (==) modeset(0): Backing store enabled
[ 2305.915] (==) modeset(0): Silken mouse enabled
[ 2305.915] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 2305.915] (==) modeset(0): DPMS enabled
[ 2306.695] (--) RandR disabled
[ 2306.695] (II) AIGLX: Screen 0 is not DRI2 capable
[ 2306.695] (EE) AIGLX: reverting to software rendering
[ 2307.770] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 2307.771] (II) AIGLX: Loaded and initialized swrast
[ 2307.771] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 2307.772] (II) modeset(0): Damage tracking initialized
[ 2307.772] (II) modeset(0): Setting screen physical size to 338 x 211
[ 2307.832] (II) config/udev: Adding input device Power Button (/dev/input/event2) |
_________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Last edited by josephg on Fri Oct 07, 2016 1:33 pm; edited 3 times in total |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Wed Oct 05, 2016 8:00 pm Post subject: |
|
|
You're probably missing USE=glamor on xorg-server. |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Wed Oct 05, 2016 8:05 pm Post subject: |
|
|
Ant P. wrote: | You're probably missing USE=glamor on xorg-server. |
you are right! thank you ...off to recompile with glamor on _________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Wed Oct 05, 2016 8:35 pm Post subject: |
|
|
thank you Ant P.
i now have this.. xorg-server with glamor without intel, and no xf86-video-intel. glxgears has gone back down to it's usual 59+ FPS. this kernel modesetting driver is doing everything that the intel driver did, and perhaps more..
Code: | $ glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Intel Open Source Technology Center (0x8086)
Device: Mesa DRI Mobile Intel® GM45 Express Chipset x86/MMX/SSE2 (0x2a42)
Version: 12.0.1
Accelerated: yes
Video memory: 1536MB
Unified memory: yes
Preferred profile: compat (0x2)
Max core profile version: 0.0
Max compat profile version: 2.1
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 2.0
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset x86/MMX/SSE2
OpenGL version string: 2.1 Mesa 12.0.1
OpenGL shading language version string: 1.20
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 12.0.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16 |
and everything's working great.. perhaps gentoo (like debian and others) should change intel driver recommend? _________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Last edited by josephg on Fri Oct 07, 2016 1:38 pm; edited 2 times in total |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Wed Oct 05, 2016 8:41 pm Post subject: |
|
|
so i have now removed intel driver it feels nice to get rid of stuff
should i change my
/etc/portage/make.conf: | VIDEO_CARDS="intel i965" |
because if i keep the above, then i have to
/etc/portage/package.use: | x11-base/xorg-drivers -video_cards_intel |
_________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Last edited by josephg on Thu Oct 06, 2016 11:22 am; edited 2 times in total |
|
Back to top |
|
|
Budoka l33t
Joined: 03 Jun 2012 Posts: 777 Location: Tokyo, Japan
|
Posted: Thu Oct 06, 2016 2:39 am Post subject: |
|
|
josephg wrote: | should i change my
/etc/portage/make.conf: | VIDEO_CARDS="intel i965" |
|
My understanding is that if your chipset is Gen 4 or better that is what you would use.
But others may be better equipped to give a firm answer. |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Thu Oct 06, 2016 12:53 pm Post subject: |
|
|
i think some of my mpv/vaapi issues have been resolved. i can see video with vo=vaapi, but no hardware decoding
Code: | $ mpv -vo vaapi movie.mp4
Playing: movie.mp4
(+) Video --vid=1 (*) (h264)
(+) Audio --aid=1 --alang=eng (*) (aac)
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/va/drivers/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
AO: [alsa] 48000Hz stereo 2ch float
[vaapi] Decoder profile 'VAProfileH264High' not available.
Using software decoding.
VO: [vaapi] 1920x1080 yuv420p
[osd/libass] fontconfig: cannot find font 'sans-serif', falling back to 'DejaVu Sans'
AV: 00:00:01 / 01:59:17 (0%) A-V: 0.000 |
Code: | $ vainfo
libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/va/drivers/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.38 (libva 1.6.2)
vainfo: Driver version: Intel i965 driver for Intel(R) GM45 Express Chipset - 1.6.2
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD |
can i add VAProfileH264High and/or enable hardware decoding without messing about too much? i see this wiki page, but i'm having trouble understanding it. _________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Oct 07, 2016 12:18 am Post subject: |
|
|
You shouldn't need all that, just the ~arch versions of libva/libva-intel-driver. |
|
Back to top |
|
|
spidark Tux's lil' helper
Joined: 01 Sep 2011 Posts: 147
|
Posted: Fri Oct 07, 2016 5:07 am Post subject: |
|
|
josephg wrote: |
ok, i found the answer. equery needs --no-pipe like so.
that was what i was missing personally, i think this should be the default behaviour! |
That's indeed a better output,
Good to now this one josephg
cheers _________________ Laptop HP Pavilion G6 2310-SD Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Fri Oct 07, 2016 10:48 am Post subject: |
|
|
Ant P. wrote: | You shouldn't need all that, just the ~arch versions of libva/libva-intel-driver. |
so i added them to package.keywords, and did an emerge again. i don't see those use flags or any H264 profile or hardware decoding.
Code: | # emerge -1 libva libva-intel-driver
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[ebuild U ~] x11-libs/libva-intel-driver-1.7.2::gentoo [1.6.2::gentoo] USE="X drm -wayland" 1,194 KiB
[ebuild U ~] x11-libs/libva-1.7.2::gentoo [1.6.2::gentoo] USE="X drm egl -opengl -vdpau -wayland" VIDEO_CARDS="intel -dummy -fglrx -nouveau -nvidia" 785 KiB
Total: 2 packages (2 upgrades), Size of downloads: 1,979 KiB
Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 2) x11-libs/libva-1.7.2::gentoo
>>> Installing (1 of 2) x11-libs/libva-1.7.2::gentoo
>>> Emerging (2 of 2) x11-libs/libva-intel-driver-1.7.2::gentoo
>>> Installing (2 of 2) x11-libs/libva-intel-driver-1.7.2::gentoo
>>> Jobs: 2 of 2 complete Load avg: 2.04, 1.23, 0.80
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date |
Code: | $ eix libva
[I] x11-libs/libva
Available versions: 1.6.2 ~1.7.0 ~1.7.1 (~)1.7.2 **9999 {X +drm egl opengl vdpau wayland ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" VIDEO_CARDS="dummy fglrx intel nouveau nvidia"}
Installed versions: 1.7.2(11:49:04 07/10/16)(X drm -egl -opengl -vdpau -wayland ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 -64 -x32" VIDEO_CARDS="intel -dummy -fglrx -nouveau -nvidia")
Homepage: https://www.freedesktop.org/wiki/Software/vaapi
Description: Video Acceleration (VA) API for Linux
[I] x11-libs/libva-intel-driver
Available versions: 1.6.2 ~1.7.0 ~1.7.1 (~)1.7.2 **9999 {X +drm wayland ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 1.7.2(11:22:40 07/10/16)(X drm -wayland ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 -64 -x32")
Homepage: https://www.freedesktop.org/wiki/Software/vaapi
Description: HW video decode support for Intel integrated graphics |
Code: | $ vainfo
libva info: VA-API version 0.39.3
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/va/drivers/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.39 (libva 1.7.2)
vainfo: Driver version: Intel i965 driver for Intel(R) GM45 Express Chipset - 1.7.2
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD |
Code: | $ mpv movie.mp4
Playing: movie.mp4
(+) Video --vid=1 (*) (h264)
(+) Audio --aid=1 --alang=eng (*) (aac)
libva info: VA-API version 0.39.3
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/va/drivers/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
[vaapi] Decoder profile 'VAProfileH264High' not available.
AO: [alsa] 48000Hz stereo 2ch float
Using software decoding.
VO: [vaapi] 1920x1080 yuv420p
[osd/libass] fontconfig: cannot find font 'sans-serif', falling back to 'DejaVu Sans'
... |
_________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Last edited by josephg on Fri Oct 07, 2016 1:41 pm; edited 1 time in total |
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Fri Oct 07, 2016 11:49 am Post subject: |
|
|
this thread is fascinating and disturbing
Is it the consensus that it is now a bad idea to
install xf86-video-intel driver because it is
completely unnecessary and may worsen
performance? (someone should update the
gentoo wiki intel guide in that case asap)
'cause that is a somewhat radical step
(maybe it explain why there's no version 3 of the driver ) _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
trubicoid Tux's lil' helper
Joined: 04 Aug 2009 Posts: 79
|
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Fri Oct 07, 2016 12:52 pm Post subject: |
|
|
i just did a kernel compile.. wonder if this might be causing any issues?
Code: | $ sudo make -s -j3 && make -j3 modules_install && make install
drivers/gpu/drm/i915/intel_display.c: In function 'intel_plane_obj_offset':
drivers/gpu/drm/i915/intel_display.c:2969:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
offset = (unsigned char *)vma->node.start;
^
Setup is 15148 bytes (padded to 15360 bytes).
System is 2295 kB
CRC ea8a077f
Kernel: arch/x86/boot/bzImage is ready (#5) |
_________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Fri Oct 07, 2016 1:15 pm Post subject: |
|
|
i don't have any gpu hangs, but i thought still perhaps i should enable Intel IOMMU as per the wiki. _________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Last edited by josephg on Fri Oct 07, 2016 1:24 pm; edited 3 times in total |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Fri Oct 07, 2016 1:19 pm Post subject: |
|
|
albright wrote: | this thread is fascinating and disturbing
Is it the consensus that it is now a bad idea to
install xf86-video-intel driver because it is
completely unnecessary and may worsen
performance? (someone should update the
gentoo wiki intel guide in that case asap)
'cause that is a somewhat radical step
(maybe it explain why there's no version 3 of the driver ) |
it is not just about performance, but additional functionality too. and apparently intel hasn't updated that driver for years.
now that it is in the mainline kernel, we should see more activity and further development. _________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey |
|
Back to top |
|
|
|