Mailing List Archive

Logging of vaapi devices on master frontend
I get bad logs from frontend when I enable --loglevel debug

CPU is Intel 11th gen. Core I5.

MythTV Version : v33-Pre-647-gfb9457e9aa
MythTV Branch : master
Network Protocol : 91
Library API : 33.20220201-1
QT Version : 5.15.3

$ vainfo
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1
()
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
VAProfileNone : VAEntrypointStats
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSliceLP
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSliceLP
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile1 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileVP9Profile3 : VAEntrypointVLD
VAProfileHEVCMain12 : VAEntrypointVLD
VAProfileHEVCMain422_10 : VAEntrypointVLD
VAProfileHEVCMain422_12 : VAEntrypointVLD
VAProfileHEVCMain444 : VAEntrypointVLD
VAProfileHEVCMain444 : VAEntrypointEncSliceLP
VAProfileHEVCMain444_10 : VAEntrypointVLD
VAProfileHEVCMain444_10 : VAEntrypointEncSliceLP
VAProfileHEVCMain444_12 : VAEntrypointVLD
VAProfileHEVCSccMain : VAEntrypointVLD
VAProfileHEVCSccMain : VAEntrypointEncSliceLP
VAProfileHEVCSccMain10 : VAEntrypointVLD
VAProfileHEVCSccMain10 : VAEntrypointEncSliceLP
VAProfileHEVCSccMain444 : VAEntrypointVLD
VAProfileHEVCSccMain444 : VAEntrypointEncSliceLP
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileHEVCSccMain444_10 : VAEntrypointVLD
VAProfileHEVCSccMain444_10 : VAEntrypointEncSliceLP

It looks like
2022-07-15 18:12:42.707452 D [18722/18722] CoreContext
mythrenderopengl.cpp:1433 (CreateShaderProgram) -
#version 110
#define lowp
#define mediump
#define highp
#line 1
attribute vec2 a_position;
attribute vec4 a_color;
varying vec4 v_color;
uniform mat4 u_projection;
uniform mat4 u_transform;
void main() {
gl_Position = u_projection * u_transform * vec4(a_position, 0.0, 1.0);
v_color = a_color;
}
etc...

Attached the log file of the frontend.
How to debug, fix this issue?

Roland
Re: Logging of vaapi devices on master frontend [ In reply to ]
On Fri, 2022-07-15 at 19:51 +0200, Roland Ernst wrote:
>  I get bad logs from frontend when I enable --loglevel debug
>
> It looks like
> 2022-07-15 18:12:42.707452 D [18722/18722] CoreContext
> mythrenderopengl.cpp:1433 (CreateShaderProgram) -
> #version 110
> #define lowp
> #define mediump
> #define highp
> #line 1
> attribute vec2 a_position;
> attribute vec4 a_color;
> varying   vec4 v_color;
> uniform   mat4 u_projection;
> uniform   mat4 u_transform;
> void main() {
>     gl_Position = u_projection * u_transform * vec4(a_position, 0.0,
> 1.0);
>     v_color     = a_color;
> }
> etc...
>
> Attached the log file of the frontend.
> How to debug, fix this issue?

I've seen that before. I think Mark did that intentionally so you
could see what the shaders are being programmed to do. I've always
just ignored it.

It should probably be moved from VB_GENERAL to something else. Maybe
VB_GPU or VB_GPUVIDEO? Or give it its own flag.

David

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Logging of vaapi devices on master frontend [ In reply to ]
On Fri, Jul 15, 2022 at 8:13 PM David Hampton via mythtv-dev <
mythtv-dev@mythtv.org> wrote:

> On Fri, 2022-07-15 at 19:51 +0200, Roland Ernst wrote:
> > I get bad logs from frontend when I enable --loglevel debug
> >
> > It looks like
> > 2022-07-15 18:12:42.707452 D [18722/18722] CoreContext
> > mythrenderopengl.cpp:1433 (CreateShaderProgram) -
> > #version 110
> > #define lowp
> > #define mediump
> > #define highp
> > #line 1
> > attribute vec2 a_position;
> > attribute vec4 a_color;
> > varying vec4 v_color;
> > uniform mat4 u_projection;
> > uniform mat4 u_transform;
> > void main() {
> > gl_Position = u_projection * u_transform * vec4(a_position, 0.0,
> > 1.0);
> > v_color = a_color;
> > }
> > etc...
> >
> > Attached the log file of the frontend.
> > How to debug, fix this issue?
>
> I've seen that before. I think Mark did that intentionally so you
> could see what the shaders are being programmed to do. I've always
> just ignored it.
>
> It should probably be moved from VB_GENERAL to something else. Maybe
> VB_GPU or VB_GPUVIDEO? Or give it its own flag.
>
> David
>
>
David,
thank you for confirmation. It popped up when I tested PR #606
<https://github.com/MythTV/mythtv/pull/606> on master,
using a new built PC with Intel Core 11th gen.
Not sure, if this will be shown on earlier versions. I will check this.

Roland