elFarto / nvidia-vaapi-driver

A VA-API implemention using NVIDIA's NVDEC
Other
1.22k stars 56 forks source link

Driver no longer working with Firefox nightly since 2022-05-19 #87

Closed Jeglerjeg closed 2 years ago

Jeglerjeg commented 2 years ago

I'm X11 and Firefox 102.0b2 and nvidia driver version 515.48.07

Everything from the readme has been set, except for widget.dmabuf.force-enabled and EGL_PLATFORM

Logs ``` 8663.555154881 [240838-240838] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7fcbac711c40 31 8663.555162122 [240838-240838] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 0 (0 max) instances 8663.558699262 [240838-240838] ../src/export-buf.c: 159 findGPUIndexFromFd Looking for DRM device index: 0 8663.559614757 [240838-240838] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8663.559667248 [240838-240838] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8663.559670908 [240838-240838] ../src/export-buf.c: 187 findGPUIndexFromFd Found drmDeviceIndex: 0 8663.559673438 [240838-240838] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8663.593959629 [240838-240838] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8663.593966559 [240838-240838] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8663.613960106 [240838-240838] ../src/vabackend.c: 556 nvCreateConfig got profile: 6 with 0 attributes 8663.613968816 [240838-240838] ../src/vabackend.c: 556 nvCreateConfig got profile: 7 with 0 attributes 8663.613972306 [240838-240838] ../src/vabackend.c: 556 nvCreateConfig got profile: 13 with 0 attributes 8663.613975196 [240838-240838] ../src/vabackend.c: 556 nvCreateConfig got profile: 14 with 0 attributes 8663.613976556 [240838-240838] ../src/vabackend.c: 556 nvCreateConfig got profile: 19 with 0 attributes 8663.613979656 [240838-240838] ../src/vabackend.c:1752 nvTerminate Terminating 0x7fcbac711c40 8663.613982536 [240838-240838] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8663.615050752 [240838-240838] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8663.656769237 [240838-240838] ../src/vabackend.c:1766 nvTerminate Now have 0 (0 max) instances [2022-06-01T17:53:43Z ERROR mp4parse] Found 2 nul bytes in "\u{0}\u{0}" [2022-06-01T17:53:43Z ERROR mp4parse] Found 2 nul bytes in "\u{0}\u{0}" [2022-06-01T17:53:43Z ERROR mp4parse] Found 2 nul bytes in "\u{0}\u{0}" [2022-06-01T17:53:43Z ERROR mp4parse] Found 2 nul bytes in "\u{0}\u{0}" 8694.009153032 [241591-241786] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c3872a5c0 31 8694.009159062 [241591-241786] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 0 (0 max) instances 8694.012024579 [241591-241786] ../src/export-buf.c: 159 findGPUIndexFromFd Looking for DRM device index: 0 8694.013037684 [241591-241786] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.013098195 [241591-241786] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.013102985 [241591-241786] ../src/export-buf.c: 187 findGPUIndexFromFd Found drmDeviceIndex: 0 8694.013104875 [241591-241786] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8694.070105240 [241591-241786] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.070114320 [241591-241786] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.070182020 [241591-241786] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.095835981 [241591-241786] ../src/vabackend.c: 556 nvCreateConfig got profile: 6 with 0 attributes 8694.095850501 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0 8694.095853751 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6c13193280 5 8694.096842717 [241591-241786] ../src/vabackend.c: 556 nvCreateConfig got profile: 7 with 0 attributes 8694.096850597 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0 8694.096851977 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6c13193280 5 8694.099708394 [241591-241786] ../src/vabackend.c: 556 nvCreateConfig got profile: 13 with 0 attributes 8694.099716424 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0 8694.099719224 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6c13193280 5 8694.100939841 [241591-241786] ../src/vabackend.c: 556 nvCreateConfig got profile: 14 with 0 attributes 8694.100946401 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 9 (nil) 0 8694.100947851 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 9 0x7f6c13193280 5 8694.102650511 [241591-241786] ../src/vabackend.c: 556 nvCreateConfig got profile: 19 with 0 attributes 8694.102656381 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 10 (nil) 0 8694.102657721 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 10 0x7f6c13193280 5 8694.104496682 [241591-241786] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c3872a5c0 8694.104502202 [241591-241786] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.105564988 [241591-241786] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.140281452 [241591-241786] ../src/vabackend.c:1766 nvTerminate Now have 0 (0 max) instances 8694.141261608 [241591-241791] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c3872b100 31 8694.141268788 [241591-241791] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 0 (0 max) instances 8694.141274538 [241591-241791] ../src/export-buf.c: 161 findGPUIndexFromFd Looking for GPU index: 0 8694.141492089 [241591-241791] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.141516629 [241591-241791] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.141520299 [241591-241791] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8694.191052710 [241591-241791] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.191062750 [241591-241791] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.191163460 [241591-241791] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.191533672 [241591-241791] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c3872b100 8694.191542043 [241591-241791] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.192602539 [241591-241791] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.230463012 [241591-241791] ../src/vabackend.c:1766 nvTerminate Now have 0 (0 max) instances 8694.230977445 [241591-241795] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c3872a5c0 31 8694.230986715 [241591-241795] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 0 (0 max) instances 8694.230994015 [241591-241795] ../src/export-buf.c: 161 findGPUIndexFromFd Looking for GPU index: 0 8694.231262226 [241591-241795] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.231290336 [241591-241795] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.231294076 [241591-241795] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8694.280559715 [241591-241795] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.280567795 [241591-241795] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.280638046 [241591-241795] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.281060218 [241591-241791] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c10d56880 31 8694.281065648 [241591-241791] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 1 (0 max) instances 8694.281069028 [241591-241791] ../src/export-buf.c: 161 findGPUIndexFromFd Looking for GPU index: 0 8694.281471831 [241591-241791] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.281498931 [241591-241791] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.281502411 [241591-241791] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8694.323710239 [241591-241800] ../src/vabackend.c: 556 nvCreateConfig got profile: 7 with 0 attributes 8694.323889380 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0 8694.323892360 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6bfc5c1400 5 8694.327382140 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 32620 8694.327387990 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6bfc5c1d00 5 8694.328772498 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b100) 8694.328779608 [241591-241800] ../src/vabackend.c:1211 nvDeriveImage In nvDeriveImage 8694.328784938 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a480) 8694.328788418 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a020) 8694.328792159 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a700) 8694.328795619 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a7a0) 8694.328799069 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a8e0) 8694.328802009 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7aac0) 8694.328805479 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b600) 8694.328808629 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b880) 8694.328813029 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bce0) 8694.328816239 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b4c0) 8694.328823769 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b920) 8694.328827209 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b560) 8694.328833719 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bb00) 8694.328837119 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bc40) 8694.328841729 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bf60) 8694.328845429 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7ba60) 8694.328847569 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bd80) 8694.328852669 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7be20) 8694.328857889 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb1240) 8694.328861239 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb0f20) 8694.328864729 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb0340) 8694.328867479 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb03e0) 8694.328871269 [241591-241800] ../src/vabackend.c: 685 nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb12e0) 8694.329654744 [241591-241791] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.329659544 [241591-241791] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.329692574 [241591-241791] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.329920385 [241591-241795] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c10d56880 8694.329925805 [241591-241795] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.330986972 [241591-241795] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.361406510 [241591-241795] ../src/vabackend.c:1766 nvTerminate Now have 1 (0 max) instances 8694.362111864 [241591-241791] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c10d55f20 31 8694.362118534 [241591-241791] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 1 (0 max) instances 8694.362124444 [241591-241791] ../src/export-buf.c: 161 findGPUIndexFromFd Looking for GPU index: 0 8694.362333815 [241591-241791] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.362357815 [241591-241791] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.362360795 [241591-241791] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8694.387051550 [241591-241800] ../src/vabackend.c: 556 nvCreateConfig got profile: 7 with 0 attributes 8694.387067231 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0 8694.387069641 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6bfc5c0c80 5 8694.388816081 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 32619 8694.388824661 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6bfc5c0c80 5 8694.390360450 [241591-241800] ../src/vabackend.c: 747 nvCreateContext with 24 render targets, 24 surfaces, at 1920x1088 8694.399360803 [241591-241791] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.399368553 [241591-241791] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.399437053 [241591-241791] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.399695685 [241591-241795] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c10d55f20 8694.399701255 [241591-241795] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.400738661 [241591-241795] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.400811881 [241591-241807] ../src/vabackend.c: 342 resolveSurfaces [RT] Resolve thread for 0x7f6bfc8da000 started 8694.401674796 [241591-241800] ../src/vabackend.c:1022 nvEndPicture Decoded frame successfully to idx: 0 (0x7f6bfccb12e0) 8694.401683596 [241591-241807] ../src/vabackend.c: 357 resolveSurfaces Reading from queue: 0 1 8694.401688826 [241591-241807] ../src/vabackend.c: 372 resolveSurfaces Mapping surface 0 8694.404506473 [241591-241807] ../src/vabackend.c: 374 resolveSurfaces Mapped surface 0 to 20D600000 (2048) 8694.404514553 [241591-241807] ../src/export-buf.c: 525 realiseSurface No free surfaces found 8694.404518663 [241591-241791] ../src/vabackend.c:1022 nvEndPicture Decoded frame successfully to idx: 1 (0x7f6bfccb03e0) 8694.404657114 [241591-241791] ../src/vabackend.c:1703 nvExportSurfaceHandle Exporting surface: 0 (0x7f6bfccb12e0) 8694.404919535 [241591-241807] ../src/export-buf.c: 441 allocateBackingImage Presenting frame 0 1920x1088 (0x7f6bfccb12e0, 0x7f6bfc847a60, 0x7f6bfc847040) 8694.409534512 [241591-241807] ../src/export-buf.c: 459 allocateBackingImage Adding frame from EGLStream: 0x7f6bfc5c7f61 8694.409542182 [241591-241807] ../src/export-buf.c: 470 allocateBackingImage Acquired image from EGLStream: 0x7f6bfc5c7f61 8694.409547452 [241591-241807] ../src/export-buf.c: 283 exportBackingImage eglExportDMABUFImageQueryMESA: 0x7f6bfc5c0f80 NV12 (3231564e) planes:2 mods:3000000004fe014 3000000004fe014 8694.417349178 [241591-241791] ../src/vabackend.c:1744 nvExportSurfaceHandle Exporting with 1920 1088 0 1920 0 1920 8694.417359728 [241591-241791] ../src/vabackend.c:1052 nvSyncSurface Syncing on surface: 0 (0x7f6bfccb12e0) 8694.417361728 [241591-241791] ../src/vabackend.c:1057 nvSyncSurface Surface 0 not resolved, waiting 8694.417821911 [241591-241791] ../src/vabackend.c:1067 nvSyncSurface Surface 0 resolved (0x7f6bfccb12e0) 8694.417819211 [241591-241807] ../src/vabackend.c: 378 resolveSurfaces Surface 0 exported 8694.417840181 [241591-241807] ../src/vabackend.c: 357 resolveSurfaces Reading from queue: 1 2 8694.417843501 [241591-241807] ../src/vabackend.c: 372 resolveSurfaces Mapping surface 1 8694.417873012 [241591-241807] ../src/vabackend.c: 374 resolveSurfaces Mapped surface 1 to 20D600000 (2048) 8694.417876802 [241591-241807] ../src/export-buf.c: 525 realiseSurface No free surfaces found 8694.418383485 [241591-241791] ../src/export-buf.c: 60 debug [EGL] eglGetPlatformDisplay: EGL_BAD_PARAMETER error: In internal function: Additional INFO may be available 8694.418389435 [241591-241791] ../src/export-buf.c: 60 debug [EGL] eglGetPlatformDisplay: EGL_BAD_PARAMETER error: In function eglGetPlatformDisplay(), unsupported EGL Platform 8694.424827832 [241591-241807] ../src/export-buf.c: 441 allocateBackingImage Presenting frame 1 1920x1088 (0x7f6bfccb03e0, 0x7f6bfc847dc0, 0x7f6bfc847160) 8694.424967423 [241591-241807] ../src/export-buf.c: 459 allocateBackingImage Adding frame from EGLStream: 0x7f6bfc5c7d01 8694.424972803 [241591-241807] ../src/export-buf.c: 470 allocateBackingImage Acquired image from EGLStream: 0x7f6bfc5c7d01 8694.424978143 [241591-241807] ../src/export-buf.c: 283 exportBackingImage eglExportDMABUFImageQueryMESA: 0x7f6bfc5c0200 NV12 (3231564e) planes:2 mods:3000000004fe014 3000000004fe014 8694.425525856 [241591-241807] ../src/vabackend.c: 378 resolveSurfaces Surface 1 exported 8694.428314443 [241591-241795] ../src/vabackend.c:1766 nvTerminate Now have 1 (0 max) instances 8694.440826066 [241591-241800] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c10d557a0 31 8694.440831436 [241591-241800] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 1 (0 max) instances 8694.440836406 [241591-241800] ../src/export-buf.c: 161 findGPUIndexFromFd Looking for GPU index: 0 8694.441063078 [241591-241800] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.441083148 [241591-241800] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.441086138 [241591-241800] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 ATTENTION: default value of option mesa_glthread overridden by environment. libEGL warning: egl: failed to create dri2 screen 8694.446985732 [241591-241791] ../src/export-buf.c: 60 debug [EGL] eglInitialize: DRI2: failed to create screen ATTENTION: default value of option mesa_glthread overridden by environment. *** MESA_GLSL_CACHE_DISABLE is deprecated; use MESA_SHADER_CACHE_DISABLE instead *** 8694.458260478 [241591-241791] ../src/export-buf.c: 60 debug [EGL] eglCreateImageKHR: _eglParseImageAttribList 8694.469419694 [241591-241800] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.469428114 [241591-241800] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.469503604 [241591-241800] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.469649165 [241591-241791] ../src/vabackend.c: 830 nvDestroyContext Destroying context: 27 8694.469657135 [241591-241791] ../src/vabackend.c: 252 destroyContext Signaling resolve thread to exit 8694.469663185 [241591-241791] ../src/vabackend.c: 258 destroyContext Waiting for resolve thread to exit 8694.469671645 [241591-241807] ../src/vabackend.c: 383 resolveSurfaces [RT] Resolve thread for 0x7f6bfc8da000 exiting 8694.469710356 [241591-241791] ../src/vabackend.c: 260 destroyContext pthread_timedjoin_np finished with 0 8694.479368273 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface 0 (0x7f6bfccb12e0) 8694.479376443 [241591-241791] ../src/export-buf.c: 351 detachBackingImageFromSurface Detaching BackingImage 0x7f6bfc5c0f80 from Surface 0x7f6bfccb12e0 8694.479384763 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface 1 (0x7f6bfccb03e0) 8694.479388063 [241591-241791] ../src/export-buf.c: 351 detachBackingImageFromSurface Detaching BackingImage 0x7f6bfc5c0200 from Surface 0x7f6bfccb03e0 8694.479390853 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfccb0340) 8694.479394133 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479397993 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfccb0f20) 8694.479400953 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479404333 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfccb1240) 8694.479407143 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479409923 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7be20) 8694.479412863 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479416023 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bd80) 8694.479418783 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479420323 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7ba60) 8694.479421753 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479424833 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bf60) 8694.479426093 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479427463 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bc40) 8694.479430053 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479433543 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bb00) 8694.479435773 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479438623 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b560) 8694.479441733 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479445533 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b920) 8694.479447653 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479450243 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b4c0) 8694.479453303 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479455683 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bce0) 8694.479460423 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479462043 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b880) 8694.479466673 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479469453 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b600) 8694.479472023 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479474463 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7aac0) 8694.479479203 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479481973 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a8e0) 8694.479484933 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479486563 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a7a0) 8694.479488833 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479490233 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a700) 8694.479492743 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479496263 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a020) 8694.479498443 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479501843 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a480) 8694.479504523 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479507133 [241591-241791] ../src/vabackend.c: 719 nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b100) 8694.479508403 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 8694.479512773 [241591-241791] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c3872a5c0 8694.479515133 [241591-241791] ../src/export-buf.c: 318 destroyBackingImage Destroying BackingImage: 0x7f6bfc5c0200 8694.479649644 [241591-241791] ../src/export-buf.c: 318 destroyBackingImage Destroying BackingImage: 0x7f6bfc5c0f80 8694.479761025 [241591-241791] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.480826111 [241591-241791] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.510861197 [241591-241791] ../src/vabackend.c:1766 nvTerminate Now have 1 (0 max) instances 8694.510928588 [241591-241800] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c10d557a0 8694.510935518 [241591-241800] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.512001404 [241591-241800] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.544613385 [241591-241800] ../src/vabackend.c:1766 nvTerminate Now have 0 (0 max) instances 8694.546206395 [241591-241791] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c10d55200 31 8694.546215075 [241591-241791] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 0 (0 max) instances 8694.546223665 [241591-241791] ../src/export-buf.c: 161 findGPUIndexFromFd Looking for GPU index: 0 8694.546564947 [241591-241791] ../src/export-buf.c: 172 findGPUIndexFromFd Found 3 EGL devices 8694.546597707 [241591-241791] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 8694.546601347 [241591-241791] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 8694.584243808 [241591-241791] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 8694.584254128 [241591-241791] ../src/export-buf.c: 99 reconnect Reconnecting to stream 8694.584352429 [241591-241791] ../src/vabackend.c:1119 nvQueryImageFormats In nvQueryImageFormats 8694.584581870 [241591-241791] ../src/vabackend.c:1752 nvTerminate Terminating 0x7f6c10d55200 8694.584587240 [241591-241791] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 8694.585646926 [241591-241791] ../src/export-buf.c: 82 releaseExporter Done releasing frames 8694.625628910 [241591-241791] ../src/vabackend.c:1766 nvTerminate Now have 0 (0 max) instances 8756.721295971 [240838-240838] ../src/export-buf.c: 60 debug [EGL] eglCreateContext: EGL_BAD_MATCH error: In eglCreateContext: Failure in argument parsing 8756.721305651 [240838-240838] ../src/export-buf.c: 60 debug [EGL] eglCreateContext: EGL_BAD_ATTRIBUTE error: In eglCreateContext: Failure in argument parsing 8756.737157384 [240838-240838] ../src/export-buf.c: 60 debug [EGL] eglCreateContext: EGL_BAD_MATCH error: In eglCreateContext: Failure in argument parsing 8756.737166614 [240838-240838] ../src/export-buf.c: 60 debug [EGL] eglCreateContext: EGL_BAD_ATTRIBUTE error: In eglCreateContext: Failure in argument parsing ```
Darkspirit commented 2 years ago

libEGL warning: egl: failed to create dri2 screen

https://bugzilla.mozilla.org/show_bug.cgi?id=1771898

elFarto commented 2 years ago

I'm not sure that's the same issue as the Firefox bug.

It looks like the same issue we have when running on Wayland, where the RDD thread doesn't get the correct EGL implementation, and it ends up trying to use the mesa EGL instead. You could try running with EGL_PLATFORM=x11 or EGL_PLATFORM=gbm as see if that solves the issue.

qumaciel commented 2 years ago

I'm having the same issue on FF nightly 103.0a1.20220605+. It was working flawlessly before, unfortunately, I don't remember when it started.

It looks like the same issue we have when running on Wayland, where the RDD thread doesn't get the correct EGL implementation, and it ends up trying to use the mesa EGL instead. You could try running with EGL_PLATFORM=x11 or EGL_PLATFORM=gbm as see if that solves the issue.

When trying EGL_PLATFORM=x11/gbm, both led to WebRender (Software).

qumaciel commented 2 years ago

Double-checking eglinfo I've found that egl: failed to create dri2 screen happens on device 1, but the vaapi-driver selected the device 0.

eglinfo ``` > eglinfo EGL client extensions string: EGL_EXT_platform_base EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_KHR_platform_x11 EGL_EXT_platform_x11 EGL_EXT_platform_device EGL_KHR_platform_wayland EGL_EXT_platform_wayland EGL_KHR_platform_gbm EGL_MESA_platform_gbm EGL_MESA_platform_xcb EGL_MESA_platform_surfaceless GBM platform: EGL API version: 1.5 EGL vendor string: NVIDIA EGL version string: 1.5 EGL client APIs: OpenGL_ES OpenGL EGL extensions string: EGL_EXT_buffer_age EGL_EXT_client_sync EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_MESA_image_dma_buf_export EGL_EXT_output_base EGL_EXT_output_drm EGL_EXT_protected_content EGL_EXT_stream_consumer_egloutput EGL_EXT_stream_acquire_mode EGL_EXT_sync_reuse EGL_IMG_context_priority EGL_KHR_config_attribs EGL_KHR_create_context_no_error EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_partial_update EGL_KHR_swap_buffers_with_damage EGL_KHR_no_config_context EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_reusable_sync EGL_KHR_stream EGL_KHR_stream_attrib EGL_KHR_stream_consumer_gltexture EGL_KHR_stream_cross_process_fd EGL_KHR_stream_fifo EGL_KHR_stream_producer_eglsurface EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_NV_nvrm_fence_sync EGL_NV_quadruple_buffer EGL_NV_stream_consumer_eglimage EGL_NV_stream_cross_display EGL_NV_stream_cross_object EGL_NV_stream_cross_process EGL_NV_stream_cross_system EGL_NV_stream_dma EGL_NV_stream_flush EGL_NV_stream_metadata EGL_NV_stream_remote EGL_NV_stream_reset EGL_NV_stream_socket EGL_NV_stream_socket_inet EGL_NV_stream_socket_unix EGL_NV_stream_sync EGL_NV_stream_fifo_next EGL_NV_stream_fifo_synchronous EGL_NV_stream_consumer_gltexture_yuv EGL_NV_stream_attrib EGL_NV_stream_origin EGL_NV_system_time EGL_NV_output_drm_flip_event EGL_NV_triple_buffer EGL_NV_robustness_video_memory_purge EGL_EXT_present_opaque EGL_WL_bind_wayland_display EGL_WL_wayland_eglstream Configurations: bf lv colorbuffer dp st ms vis cav bi renderable supported id sz l r g b a th cl ns b id eat nd gl es es2 vg surfaces --------------------------------------------------------------------- 0x01 32 0 8 8 8 8 24 8 0 0 0x34325241-- y y y win,pb,str 0x02 32 0 8 8 8 8 24 0 0 0 0x34325241-- y y y win,pb,str 0x03 32 0 8 8 8 8 0 8 0 0 0x34325241-- y y y win,pb,str 0x04 32 0 8 8 8 8 0 0 0 0 0x34325241-- y y y win,pb,str 0x05 32 0 8 8 8 8 24 8 2 1 0x34325241-- y y y win,pb,str 0x06 32 0 8 8 8 8 24 0 2 1 0x34325241-- y y y win,pb,str 0x07 32 0 8 8 8 8 0 8 2 1 0x34325241-- y y y win,pb,str 0x08 32 0 8 8 8 8 0 0 2 1 0x34325241-- y y y win,pb,str 0x09 32 0 8 8 8 8 24 8 4 1 0x34325241-- y y y win,pb,str 0x0a 32 0 8 8 8 8 24 8 4 1 0x34325241-- y y y win,pb,str 0x0b 32 0 8 8 8 8 24 0 4 1 0x34325241-- y y y win,pb,str 0x0c 32 0 8 8 8 8 24 0 4 1 0x34325241-- y y y win,pb,str 0x0d 32 0 8 8 8 8 0 8 4 1 0x34325241-- y y y win,pb,str 0x0e 32 0 8 8 8 8 0 8 4 1 0x34325241-- y y y win,pb,str 0x0f 32 0 8 8 8 8 0 0 4 1 0x34325241-- y y y win,pb,str 0x10 32 0 8 8 8 8 0 0 4 1 0x34325241-- y y y win,pb,str 0x11 32 0 8 8 8 8 24 8 8 1 0x34325241-- y y y win,pb,str 0x12 32 0 8 8 8 8 24 0 8 1 0x34325241-- y y y win,pb,str 0x13 32 0 8 8 8 8 0 8 8 1 0x34325241-- y y y win,pb,str 0x14 32 0 8 8 8 8 0 0 8 1 0x34325241-- y y y win,pb,str 0x15 24 0 8 8 8 0 24 8 0 0 0x34325258-- y y y win,pb,str 0x16 24 0 8 8 8 0 24 0 0 0 0x34325258-- y y y win,pb,str 0x17 24 0 8 8 8 0 0 8 0 0 0x34325258-- y y y win,pb,str 0x18 24 0 8 8 8 0 0 0 0 0 0x34325258-- y y y win,pb,str 0x19 24 0 8 8 8 0 24 8 2 1 0x34325258-- y y y win,pb,str 0x1a 24 0 8 8 8 0 24 0 2 1 0x34325258-- y y y win,pb,str 0x1b 24 0 8 8 8 0 0 8 2 1 0x34325258-- y y y win,pb,str 0x1c 24 0 8 8 8 0 0 0 2 1 0x34325258-- y y y win,pb,str 0x1d 24 0 8 8 8 0 24 8 4 1 0x34325258-- y y y win,pb,str 0x1e 24 0 8 8 8 0 24 8 4 1 0x34325258-- y y y win,pb,str 0x1f 24 0 8 8 8 0 24 0 4 1 0x34325258-- y y y win,pb,str 0x20 24 0 8 8 8 0 24 0 4 1 0x34325258-- y y y win,pb,str 0x21 24 0 8 8 8 0 0 8 4 1 0x34325258-- y y y win,pb,str 0x22 24 0 8 8 8 0 0 8 4 1 0x34325258-- y y y win,pb,str 0x23 24 0 8 8 8 0 0 0 4 1 0x34325258-- y y y win,pb,str 0x24 24 0 8 8 8 0 0 0 4 1 0x34325258-- y y y win,pb,str 0x25 24 0 8 8 8 0 24 8 8 1 0x34325258-- y y y win,pb,str 0x26 24 0 8 8 8 0 24 0 8 1 0x34325258-- y y y win,pb,str 0x27 24 0 8 8 8 0 0 8 8 1 0x34325258-- y y y win,pb,str 0x28 24 0 8 8 8 0 0 0 8 1 0x34325258-- y y y win,pb,str 0x29 16 0 5 6 5 0 24 8 0 0 0x36314752-- y y y win,pb,str 0x2a 16 0 5 6 5 0 24 0 0 0 0x36314752-- y y y win,pb,str 0x2b 16 0 5 6 5 0 16 0 0 0 0x36314752-- y y y win,pb,str 0x2c 16 0 5 6 5 0 0 8 0 0 0x36314752-- y y y win,pb,str 0x2d 16 0 5 6 5 0 0 0 0 0 0x36314752-- y y y win,pb,str 0x2e 16 0 5 6 5 0 24 8 2 1 0x36314752-- y y y win,pb,str 0x2f 16 0 5 6 5 0 24 0 2 1 0x36314752-- y y y win,pb,str 0x30 16 0 5 6 5 0 16 0 2 1 0x36314752-- y y y win,pb,str 0x31 16 0 5 6 5 0 0 8 2 1 0x36314752-- y y y win,pb,str 0x32 16 0 5 6 5 0 0 0 2 1 0x36314752-- y y y win,pb,str 0x33 16 0 5 6 5 0 24 8 4 1 0x36314752-- y y y win,pb,str 0x34 16 0 5 6 5 0 24 8 4 1 0x36314752-- y y y win,pb,str 0x35 16 0 5 6 5 0 24 0 4 1 0x36314752-- y y y win,pb,str 0x36 16 0 5 6 5 0 24 0 4 1 0x36314752-- y y y win,pb,str 0x37 16 0 5 6 5 0 16 0 4 1 0x36314752-- y y y win,pb,str 0x38 16 0 5 6 5 0 16 0 4 1 0x36314752-- y y y win,pb,str 0x39 16 0 5 6 5 0 0 8 4 1 0x36314752-- y y y win,pb,str 0x3a 16 0 5 6 5 0 0 8 4 1 0x36314752-- y y y win,pb,str 0x3b 16 0 5 6 5 0 0 0 4 1 0x36314752-- y y y win,pb,str 0x3c 16 0 5 6 5 0 0 0 4 1 0x36314752-- y y y win,pb,str 0x3d 16 0 5 6 5 0 24 8 8 1 0x36314752-- y y y win,pb,str 0x3e 16 0 5 6 5 0 24 0 8 1 0x36314752-- y y y win,pb,str 0x3f 16 0 5 6 5 0 16 0 8 1 0x36314752-- y y y win,pb,str 0x40 16 0 5 6 5 0 0 8 8 1 0x36314752-- y y y win,pb,str 0x41 16 0 5 6 5 0 0 0 8 1 0x36314752-- y y y win,pb,str Wayland platform: eglinfo: eglInitialize failed X11 platform: EGL API version: 1.5 EGL vendor string: NVIDIA EGL version string: 1.5 EGL client APIs: OpenGL_ES OpenGL EGL extensions string: EGL_EXT_buffer_age EGL_EXT_client_sync EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_MESA_image_dma_buf_export EGL_EXT_output_base EGL_EXT_stream_acquire_mode EGL_EXT_sync_reuse EGL_IMG_context_priority EGL_KHR_config_attribs EGL_KHR_create_context_no_error EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_partial_update EGL_KHR_swap_buffers_with_damage EGL_KHR_no_config_context EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_reusable_sync EGL_KHR_stream EGL_KHR_stream_attrib EGL_KHR_stream_consumer_gltexture EGL_KHR_stream_cross_process_fd EGL_KHR_stream_fifo EGL_KHR_stream_producer_eglsurface EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_NV_nvrm_fence_sync EGL_NV_post_sub_buffer EGL_NV_quadruple_buffer EGL_NV_stream_consumer_eglimage EGL_NV_stream_cross_display EGL_NV_stream_cross_object EGL_NV_stream_cross_process EGL_NV_stream_cross_system EGL_NV_stream_dma EGL_NV_stream_flush EGL_NV_stream_metadata EGL_NV_stream_remote EGL_NV_stream_reset EGL_NV_stream_socket EGL_NV_stream_socket_inet EGL_NV_stream_socket_unix EGL_NV_stream_sync EGL_NV_stream_fifo_next EGL_NV_stream_fifo_synchronous EGL_NV_stream_consumer_gltexture_yuv EGL_NV_stream_attrib EGL_NV_stream_origin EGL_NV_system_time EGL_NV_output_drm_flip_event EGL_NV_triple_buffer EGL_NV_robustness_video_memory_purge EGL_EXT_present_opaque EGL_WL_bind_wayland_display EGL_WL_wayland_eglstream Configurations: bf lv colorbuffer dp st ms vis cav bi renderable supported id sz l r g b a th cl ns b id eat nd gl es es2 vg surfaces --------------------------------------------------------------------- 0x01 32 0 8 8 8 8 24 8 0 0 0x24-- y y y win,pb,pix,str 0x02 32 0 8 8 8 8 24 8 0 0 0x7a-- y y y win,pb,pix,str 0x03 32 0 8 8 8 8 24 8 0 0 0x4f-- y y y win,pb,pix,str 0x04 32 0 8 8 8 8 24 0 0 0 0x28-- y y y win,pb,pix,str 0x05 32 0 8 8 8 8 24 0 0 0 0x7e-- y y y win,pb,pix,str 0x06 32 0 8 8 8 8 24 0 0 0 0x53-- y y y win,pb,pix,str 0x07 32 0 8 8 8 8 0 0 0 0 0x2c-- y y y win,pb,pix,str 0x08 32 0 8 8 8 8 0 0 0 0 0x82-- y y y win,pb,pix,str 0x09 32 0 8 8 8 8 0 0 0 0 0x57-- y y y win,pb,pix,str 0x0a 32 0 8 8 8 8 24 8 2 1 0x38-- y y y win,pb,str 0x0b 32 0 8 8 8 8 24 8 2 1 0x8e-- y y y win,pb,str 0x0c 32 0 8 8 8 8 24 8 2 1 0x63-- y y y win,pb,str 0x0d 32 0 8 8 8 8 24 0 2 1 0x30-- y y y win,pb,str 0x0e 32 0 8 8 8 8 24 0 2 1 0x86-- y y y win,pb,str 0x0f 32 0 8 8 8 8 24 0 2 1 0x5b-- y y y win,pb,str 0x10 32 0 8 8 8 8 24 8 4 1 0x3a-- y y y win,pb,str 0x11 32 0 8 8 8 8 24 8 4 1 0x90-- y y y win,pb,str 0x12 32 0 8 8 8 8 24 8 4 1 0x65-- y y y win,pb,str 0x13 32 0 8 8 8 8 24 0 4 1 0x32-- y y y win,pb,str 0x14 32 0 8 8 8 8 24 0 4 1 0x88-- y y y win,pb,str 0x15 32 0 8 8 8 8 24 0 4 1 0x5d-- y y y win,pb,str 0x16 32 0 8 8 8 8 24 8 8 1 0x44-- y y y win,pb,str 0x17 32 0 8 8 8 8 24 8 8 1 0x9a-- y y y win,pb,str 0x18 32 0 8 8 8 8 24 8 8 1 0x6f-- y y y win,pb,str 0x19 32 0 8 8 8 8 24 0 8 1 0x40-- y y y win,pb,str 0x1a 32 0 8 8 8 8 24 0 8 1 0x96-- y y y win,pb,str 0x1b 32 0 8 8 8 8 24 0 8 1 0x6b-- y y y win,pb,str 0x1c 32 0 8 8 8 8 24 8 16 1 0x4c-- y y y win,pb,str 0x1d 32 0 8 8 8 8 24 8 16 1 0xa2-- y y y win,pb,str 0x1e 32 0 8 8 8 8 24 8 16 1 0x77-- y y y win,pb,str 0x1f 32 0 8 8 8 8 24 0 16 1 0x48-- y y y win,pb,str 0x20 32 0 8 8 8 8 24 0 16 1 0x9e-- y y y win,pb,str 0x21 32 0 8 8 8 8 24 0 16 1 0x73-- y y y win,pb,str 0x22 24 0 8 8 8 0 24 8 0 0 0x21-- y y y win,pb,pix,str 0x23 24 0 8 8 8 0 24 8 0 0 0x23-- y y y win,pb,pix,str 0x24 24 0 8 8 8 0 24 8 0 0 0x22-- y y y win,pb,pix,str 0x25 24 0 8 8 8 0 24 0 0 0 0x27-- y y y win,pb,pix,str 0x26 24 0 8 8 8 0 24 0 0 0 0x7d-- y y y win,pb,pix,str 0x27 24 0 8 8 8 0 24 0 0 0 0x52-- y y y win,pb,pix,str 0x28 24 0 8 8 8 0 0 0 0 0 0x2b-- y y y win,pb,pix,str 0x29 24 0 8 8 8 0 0 0 0 0 0x81-- y y y win,pb,pix,str 0x2a 24 0 8 8 8 0 0 0 0 0 0x56-- y y y win,pb,pix,str 0x2b 24 0 8 8 8 0 24 8 2 1 0x37-- y y y win,pb,str 0x2c 24 0 8 8 8 0 24 8 2 1 0x8d-- y y y win,pb,str 0x2d 24 0 8 8 8 0 24 8 2 1 0x62-- y y y win,pb,str 0x2e 24 0 8 8 8 0 24 0 2 1 0x2f-- y y y win,pb,str 0x2f 24 0 8 8 8 0 24 0 2 1 0x85-- y y y win,pb,str 0x30 24 0 8 8 8 0 24 0 2 1 0x5a-- y y y win,pb,str 0x31 24 0 8 8 8 0 24 8 4 1 0x39-- y y y win,pb,str 0x32 24 0 8 8 8 0 24 8 4 1 0x8f-- y y y win,pb,str 0x33 24 0 8 8 8 0 24 8 4 1 0x64-- y y y win,pb,str 0x34 24 0 8 8 8 0 24 0 4 1 0x31-- y y y win,pb,str 0x35 24 0 8 8 8 0 24 0 4 1 0x87-- y y y win,pb,str 0x36 24 0 8 8 8 0 24 0 4 1 0x5c-- y y y win,pb,str 0x37 24 0 8 8 8 0 24 8 8 1 0x43-- y y y win,pb,str 0x38 24 0 8 8 8 0 24 8 8 1 0x99-- y y y win,pb,str 0x39 24 0 8 8 8 0 24 8 8 1 0x6e-- y y y win,pb,str 0x3a 24 0 8 8 8 0 24 0 8 1 0x3f-- y y y win,pb,str 0x3b 24 0 8 8 8 0 24 0 8 1 0x95-- y y y win,pb,str 0x3c 24 0 8 8 8 0 24 0 8 1 0x6a-- y y y win,pb,str 0x3d 24 0 8 8 8 0 24 8 16 1 0x4b-- y y y win,pb,str 0x3e 24 0 8 8 8 0 24 8 16 1 0xa1-- y y y win,pb,str 0x3f 24 0 8 8 8 0 24 8 16 1 0x76-- y y y win,pb,str 0x40 24 0 8 8 8 0 24 0 16 1 0x47-- y y y win,pb,str 0x41 24 0 8 8 8 0 24 0 16 1 0x9d-- y y y win,pb,str 0x42 24 0 8 8 8 0 24 0 16 1 0x72-- y y y win,pb,str 0x43 16 0 5 6 5 0 24 8 0 0 0x00-- y y y pb,str 0x44 16 0 5 6 5 0 24 0 0 0 0x00-- y y y pb,str 0x45 16 0 5 6 5 0 16 0 0 0 0x00-- y y y pb,str 0x46 16 0 5 6 5 0 0 0 0 0 0x00-- y y y pb,str Surfaceless platform: libEGL warning: egl: failed to create dri2 screen EGL API version: 1.5 EGL vendor string: Mesa Project EGL version string: 1.5 EGL client APIs: OpenGL OpenGL_ES EGL driver name: swrast EGL extensions string: EGL_EXT_create_context_robustness EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_query_driver Configurations: bf lv colorbuffer dp st ms vis cav bi renderable supported id sz l r g b a th cl ns b id eat nd gl es es2 vg surfaces --------------------------------------------------------------------- 0x01 32 0 10 10 10 2 0 0 0 0 0x00-- a y y y pb 0x02 32 0 10 10 10 2 16 0 0 0 0x00-- a y y y pb 0x03 32 0 10 10 10 2 24 0 0 0 0x00-- a y y y pb 0x04 32 0 10 10 10 2 24 8 0 0 0x00-- a y y y pb 0x05 32 0 10 10 10 2 32 0 0 0 0x00-- a y y y pb 0x06 32 0 10 10 10 2 0 0 4 1 0x00-- a y y y pb 0x07 32 0 10 10 10 2 16 0 4 1 0x00-- a y y y pb 0x08 32 0 10 10 10 2 24 0 4 1 0x00-- a y y y pb 0x09 32 0 10 10 10 2 24 8 4 1 0x00-- a y y y pb 0x0a 32 0 10 10 10 2 32 0 4 1 0x00-- a y y y pb 0x0b 30 0 10 10 10 0 0 0 0 0 0x00-- y y y y pb 0x0c 30 0 10 10 10 0 16 0 0 0 0x00-- y y y y pb 0x0d 30 0 10 10 10 0 24 0 0 0 0x00-- y y y y pb 0x0e 30 0 10 10 10 0 24 8 0 0 0x00-- y y y y pb 0x0f 30 0 10 10 10 0 32 0 0 0 0x00-- y y y y pb 0x10 30 0 10 10 10 0 0 0 4 1 0x00-- y y y y pb 0x11 30 0 10 10 10 0 16 0 4 1 0x00-- y y y y pb 0x12 30 0 10 10 10 0 24 0 4 1 0x00-- y y y y pb 0x13 30 0 10 10 10 0 24 8 4 1 0x00-- y y y y pb 0x14 30 0 10 10 10 0 32 0 4 1 0x00-- y y y y pb 0x15 32 0 8 8 8 8 0 0 0 0 0x00-- a y y y pb 0x16 32 0 8 8 8 8 16 0 0 0 0x00-- a y y y pb 0x17 32 0 8 8 8 8 24 0 0 0 0x00-- a y y y pb 0x18 32 0 8 8 8 8 24 8 0 0 0x00-- a y y y pb 0x19 32 0 8 8 8 8 32 0 0 0 0x00-- a y y y pb 0x1a 32 0 8 8 8 8 0 0 4 1 0x00-- a y y y pb 0x1b 32 0 8 8 8 8 16 0 4 1 0x00-- a y y y pb 0x1c 32 0 8 8 8 8 24 0 4 1 0x00-- a y y y pb 0x1d 32 0 8 8 8 8 24 8 4 1 0x00-- a y y y pb 0x1e 32 0 8 8 8 8 32 0 4 1 0x00-- a y y y pb 0x1f 24 0 8 8 8 0 0 0 0 0 0x00-- y y y y pb 0x20 24 0 8 8 8 0 16 0 0 0 0x00-- y y y y pb 0x21 24 0 8 8 8 0 24 0 0 0 0x00-- y y y y pb 0x22 24 0 8 8 8 0 24 8 0 0 0x00-- y y y y pb 0x23 24 0 8 8 8 0 32 0 0 0 0x00-- y y y y pb 0x24 24 0 8 8 8 0 0 0 4 1 0x00-- y y y y pb 0x25 24 0 8 8 8 0 16 0 4 1 0x00-- y y y y pb 0x26 24 0 8 8 8 0 24 0 4 1 0x00-- y y y y pb 0x27 24 0 8 8 8 0 24 8 4 1 0x00-- y y y y pb 0x28 24 0 8 8 8 0 32 0 4 1 0x00-- y y y y pb 0x29 16 0 5 6 5 0 0 0 0 0 0x00-- y y y y pb 0x2a 16 0 5 6 5 0 16 0 0 0 0x00-- y y y y pb 0x2b 16 0 5 6 5 0 24 0 0 0 0x00-- y y y y pb 0x2c 16 0 5 6 5 0 24 8 0 0 0x00-- y y y y pb 0x2d 16 0 5 6 5 0 32 0 0 0 0x00-- y y y y pb 0x2e 16 0 5 6 5 0 0 0 4 1 0x00-- y y y y pb 0x2f 16 0 5 6 5 0 16 0 4 1 0x00-- y y y y pb 0x30 16 0 5 6 5 0 24 0 4 1 0x00-- y y y y pb 0x31 16 0 5 6 5 0 24 8 4 1 0x00-- y y y y pb 0x32 16 0 5 6 5 0 32 0 4 1 0x00-- y y y y pb 0x33 64 0 16 16 16 16 0 0 0 0 0x00-- a y y y pb 0x34 64 0 16 16 16 16 16 0 0 0 0x00-- a y y y pb 0x35 64 0 16 16 16 16 24 0 0 0 0x00-- a y y y pb 0x36 64 0 16 16 16 16 24 8 0 0 0x00-- a y y y pb 0x37 64 0 16 16 16 16 32 0 0 0 0x00-- a y y y pb 0x38 64 0 16 16 16 16 0 0 4 1 0x00-- a y y y pb 0x39 64 0 16 16 16 16 16 0 4 1 0x00-- a y y y pb 0x3a 64 0 16 16 16 16 24 0 4 1 0x00-- a y y y pb 0x3b 64 0 16 16 16 16 24 8 4 1 0x00-- a y y y pb 0x3c 64 0 16 16 16 16 32 0 4 1 0x00-- a y y y pb 0x3d 48 0 16 16 16 0 0 0 0 0 0x00-- y y y y pb 0x3e 48 0 16 16 16 0 16 0 0 0 0x00-- y y y y pb 0x3f 48 0 16 16 16 0 24 0 0 0 0x00-- y y y y pb 0x40 48 0 16 16 16 0 24 8 0 0 0x00-- y y y y pb 0x41 48 0 16 16 16 0 32 0 0 0 0x00-- y y y y pb 0x42 48 0 16 16 16 0 0 0 4 1 0x00-- y y y y pb 0x43 48 0 16 16 16 0 16 0 4 1 0x00-- y y y y pb 0x44 48 0 16 16 16 0 24 0 4 1 0x00-- y y y y pb 0x45 48 0 16 16 16 0 24 8 4 1 0x00-- y y y y pb 0x46 48 0 16 16 16 0 32 0 4 1 0x00-- y y y y pb Device platform: Device #0: EGL device extensions string: EGL_NV_device_cuda EGL_EXT_device_drm EGL_EXT_device_drm_render_node EGL_EXT_device_query_name EGL_EXT_device_persistent_id Platform Device: EGL API version: 1.5 EGL vendor string: NVIDIA EGL version string: 1.5 EGL client APIs: OpenGL_ES OpenGL EGL extensions string: EGL_EXT_buffer_age EGL_EXT_client_sync EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_MESA_image_dma_buf_export EGL_EXT_output_base EGL_EXT_output_drm EGL_EXT_protected_content EGL_EXT_stream_consumer_egloutput EGL_EXT_stream_acquire_mode EGL_EXT_sync_reuse EGL_IMG_context_priority EGL_KHR_config_attribs EGL_KHR_create_context_no_error EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_partial_update EGL_KHR_swap_buffers_with_damage EGL_KHR_no_config_context EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_reusable_sync EGL_KHR_stream EGL_KHR_stream_attrib EGL_KHR_stream_consumer_gltexture EGL_KHR_stream_cross_process_fd EGL_KHR_stream_fifo EGL_KHR_stream_producer_eglsurface EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_NV_nvrm_fence_sync EGL_NV_quadruple_buffer EGL_NV_stream_consumer_eglimage EGL_NV_stream_cross_display EGL_NV_stream_cross_object EGL_NV_stream_cross_process EGL_NV_stream_cross_system EGL_NV_stream_dma EGL_NV_stream_flush EGL_NV_stream_metadata EGL_NV_stream_remote EGL_NV_stream_reset EGL_NV_stream_socket EGL_NV_stream_socket_inet EGL_NV_stream_socket_unix EGL_NV_stream_sync EGL_NV_stream_fifo_next EGL_NV_stream_fifo_synchronous EGL_NV_stream_consumer_gltexture_yuv EGL_NV_stream_attrib EGL_NV_stream_origin EGL_NV_system_time EGL_NV_output_drm_flip_event EGL_NV_triple_buffer EGL_NV_robustness_video_memory_purge EGL_EXT_present_opaque EGL_WL_bind_wayland_display EGL_WL_wayland_eglstream Configurations: bf lv colorbuffer dp st ms vis cav bi renderable supported id sz l r g b a th cl ns b id eat nd gl es es2 vg surfaces --------------------------------------------------------------------- 0x01 32 0 8 8 8 8 24 8 0 0 0x00-- y y y pb,str 0x02 32 0 8 8 8 8 24 0 0 0 0x00-- y y y pb,str 0x03 32 0 8 8 8 8 0 8 0 0 0x00-- y y y pb,str 0x04 32 0 8 8 8 8 0 0 0 0 0x00-- y y y pb,str 0x05 32 0 8 8 8 8 24 8 2 1 0x00-- y y y pb,str 0x06 32 0 8 8 8 8 24 0 2 1 0x00-- y y y pb,str 0x07 32 0 8 8 8 8 0 8 2 1 0x00-- y y y pb,str 0x08 32 0 8 8 8 8 0 0 2 1 0x00-- y y y pb,str 0x09 32 0 8 8 8 8 24 8 4 1 0x00-- y y y pb,str 0x0a 32 0 8 8 8 8 24 8 4 1 0x00-- y y y pb,str 0x0b 32 0 8 8 8 8 24 0 4 1 0x00-- y y y pb,str 0x0c 32 0 8 8 8 8 24 0 4 1 0x00-- y y y pb,str 0x0d 32 0 8 8 8 8 0 8 4 1 0x00-- y y y pb,str 0x0e 32 0 8 8 8 8 0 8 4 1 0x00-- y y y pb,str 0x0f 32 0 8 8 8 8 0 0 4 1 0x00-- y y y pb,str 0x10 32 0 8 8 8 8 0 0 4 1 0x00-- y y y pb,str 0x11 32 0 8 8 8 8 24 8 8 1 0x00-- y y y pb,str 0x12 32 0 8 8 8 8 24 0 8 1 0x00-- y y y pb,str 0x13 32 0 8 8 8 8 0 8 8 1 0x00-- y y y pb,str 0x14 32 0 8 8 8 8 0 0 8 1 0x00-- y y y pb,str 0x15 24 0 8 8 8 0 24 8 0 0 0x00-- y y y pb,str 0x16 24 0 8 8 8 0 24 0 0 0 0x00-- y y y pb,str 0x17 24 0 8 8 8 0 0 8 0 0 0x00-- y y y pb,str 0x18 24 0 8 8 8 0 0 0 0 0 0x00-- y y y pb,str 0x19 24 0 8 8 8 0 24 8 2 1 0x00-- y y y pb,str 0x1a 24 0 8 8 8 0 24 0 2 1 0x00-- y y y pb,str 0x1b 24 0 8 8 8 0 0 8 2 1 0x00-- y y y pb,str 0x1c 24 0 8 8 8 0 0 0 2 1 0x00-- y y y pb,str 0x1d 24 0 8 8 8 0 24 8 4 1 0x00-- y y y pb,str 0x1e 24 0 8 8 8 0 24 8 4 1 0x00-- y y y pb,str 0x1f 24 0 8 8 8 0 24 0 4 1 0x00-- y y y pb,str 0x20 24 0 8 8 8 0 24 0 4 1 0x00-- y y y pb,str 0x21 24 0 8 8 8 0 0 8 4 1 0x00-- y y y pb,str 0x22 24 0 8 8 8 0 0 8 4 1 0x00-- y y y pb,str 0x23 24 0 8 8 8 0 0 0 4 1 0x00-- y y y pb,str 0x24 24 0 8 8 8 0 0 0 4 1 0x00-- y y y pb,str 0x25 24 0 8 8 8 0 24 8 8 1 0x00-- y y y pb,str 0x26 24 0 8 8 8 0 24 0 8 1 0x00-- y y y pb,str 0x27 24 0 8 8 8 0 0 8 8 1 0x00-- y y y pb,str 0x28 24 0 8 8 8 0 0 0 8 1 0x00-- y y y pb,str 0x29 16 0 5 6 5 0 24 8 0 0 0x00-- y y y pb,str 0x2a 16 0 5 6 5 0 24 0 0 0 0x00-- y y y pb,str 0x2b 16 0 5 6 5 0 16 0 0 0 0x00-- y y y pb,str 0x2c 16 0 5 6 5 0 0 8 0 0 0x00-- y y y pb,str 0x2d 16 0 5 6 5 0 0 0 0 0 0x00-- y y y pb,str 0x2e 16 0 5 6 5 0 24 8 2 1 0x00-- y y y pb,str 0x2f 16 0 5 6 5 0 24 0 2 1 0x00-- y y y pb,str 0x30 16 0 5 6 5 0 16 0 2 1 0x00-- y y y pb,str 0x31 16 0 5 6 5 0 0 8 2 1 0x00-- y y y pb,str 0x32 16 0 5 6 5 0 0 0 2 1 0x00-- y y y pb,str 0x33 16 0 5 6 5 0 24 8 4 1 0x00-- y y y pb,str 0x34 16 0 5 6 5 0 24 8 4 1 0x00-- y y y pb,str 0x35 16 0 5 6 5 0 24 0 4 1 0x00-- y y y pb,str 0x36 16 0 5 6 5 0 24 0 4 1 0x00-- y y y pb,str 0x37 16 0 5 6 5 0 16 0 4 1 0x00-- y y y pb,str 0x38 16 0 5 6 5 0 16 0 4 1 0x00-- y y y pb,str 0x39 16 0 5 6 5 0 0 8 4 1 0x00-- y y y pb,str 0x3a 16 0 5 6 5 0 0 8 4 1 0x00-- y y y pb,str 0x3b 16 0 5 6 5 0 0 0 4 1 0x00-- y y y pb,str 0x3c 16 0 5 6 5 0 0 0 4 1 0x00-- y y y pb,str 0x3d 16 0 5 6 5 0 24 8 8 1 0x00-- y y y pb,str 0x3e 16 0 5 6 5 0 24 0 8 1 0x00-- y y y pb,str 0x3f 16 0 5 6 5 0 16 0 8 1 0x00-- y y y pb,str 0x40 16 0 5 6 5 0 0 8 8 1 0x00-- y y y pb,str 0x41 16 0 5 6 5 0 0 0 8 1 0x00-- y y y pb,str Device #1: EGL device extensions string: EGL_EXT_device_drm EGL_EXT_device_drm_render_node Platform Device: libEGL warning: egl: failed to create dri2 screen libEGL warning: egl: failed to create dri2 screen eglinfo: eglInitialize failed Device #2: EGL device extensions string: EGL_EXT_device_drm EGL_EXT_device_drm_render_node Platform Device: EGL API version: 1.5 EGL vendor string: Mesa Project EGL version string: 1.5 EGL client APIs: OpenGL OpenGL_ES EGL driver name: iris EGL extensions string: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_IMG_context_priority EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display Configurations: bf lv colorbuffer dp st ms vis cav bi renderable supported id sz l r g b a th cl ns b id eat nd gl es es2 vg surfaces --------------------------------------------------------------------- 0x01 32 0 10 10 10 2 0 0 0 0 0x00-- a y y y pb 0x02 32 0 10 10 10 2 16 0 0 0 0x00-- a y y y pb 0x03 32 0 10 10 10 2 24 0 0 0 0x00-- a y y y pb 0x04 32 0 10 10 10 2 24 8 0 0 0x00-- a y y y pb 0x05 32 0 10 10 10 2 0 0 2 1 0x00-- a y y y pb 0x06 32 0 10 10 10 2 0 0 4 1 0x00-- a y y y pb 0x07 32 0 10 10 10 2 0 0 8 1 0x00-- a y y y pb 0x08 32 0 10 10 10 2 0 0 16 1 0x00-- a y y y pb 0x09 32 0 10 10 10 2 16 0 2 1 0x00-- a y y y pb 0x0a 32 0 10 10 10 2 16 0 4 1 0x00-- a y y y pb 0x0b 32 0 10 10 10 2 16 0 8 1 0x00-- a y y y pb 0x0c 32 0 10 10 10 2 16 0 16 1 0x00-- a y y y pb 0x0d 32 0 10 10 10 2 24 0 2 1 0x00-- a y y y pb 0x0e 32 0 10 10 10 2 24 0 4 1 0x00-- a y y y pb 0x0f 32 0 10 10 10 2 24 0 8 1 0x00-- a y y y pb 0x10 32 0 10 10 10 2 24 0 16 1 0x00-- a y y y pb 0x11 32 0 10 10 10 2 24 8 2 1 0x00-- a y y y pb 0x12 32 0 10 10 10 2 24 8 4 1 0x00-- a y y y pb 0x13 32 0 10 10 10 2 24 8 8 1 0x00-- a y y y pb 0x14 32 0 10 10 10 2 24 8 16 1 0x00-- a y y y pb 0x15 30 0 10 10 10 0 0 0 0 0 0x00-- y y y y pb 0x16 30 0 10 10 10 0 16 0 0 0 0x00-- y y y y pb 0x17 30 0 10 10 10 0 24 0 0 0 0x00-- y y y y pb 0x18 30 0 10 10 10 0 24 8 0 0 0x00-- y y y y pb 0x19 30 0 10 10 10 0 0 0 2 1 0x00-- y y y y pb 0x1a 30 0 10 10 10 0 0 0 4 1 0x00-- y y y y pb 0x1b 30 0 10 10 10 0 0 0 8 1 0x00-- y y y y pb 0x1c 30 0 10 10 10 0 0 0 16 1 0x00-- y y y y pb 0x1d 30 0 10 10 10 0 16 0 2 1 0x00-- y y y y pb 0x1e 30 0 10 10 10 0 16 0 4 1 0x00-- y y y y pb 0x1f 30 0 10 10 10 0 16 0 8 1 0x00-- y y y y pb 0x20 30 0 10 10 10 0 16 0 16 1 0x00-- y y y y pb 0x21 30 0 10 10 10 0 24 0 2 1 0x00-- y y y y pb 0x22 30 0 10 10 10 0 24 0 4 1 0x00-- y y y y pb 0x23 30 0 10 10 10 0 24 0 8 1 0x00-- y y y y pb 0x24 30 0 10 10 10 0 24 0 16 1 0x00-- y y y y pb 0x25 30 0 10 10 10 0 24 8 2 1 0x00-- y y y y pb 0x26 30 0 10 10 10 0 24 8 4 1 0x00-- y y y y pb 0x27 30 0 10 10 10 0 24 8 8 1 0x00-- y y y y pb 0x28 30 0 10 10 10 0 24 8 16 1 0x00-- y y y y pb 0x29 32 0 8 8 8 8 0 0 0 0 0x00-- a y y y pb 0x2a 32 0 8 8 8 8 16 0 0 0 0x00-- a y y y pb 0x2b 32 0 8 8 8 8 24 0 0 0 0x00-- a y y y pb 0x2c 32 0 8 8 8 8 24 8 0 0 0x00-- a y y y pb 0x2d 32 0 8 8 8 8 0 0 2 1 0x00-- a y y y pb 0x2e 32 0 8 8 8 8 0 0 4 1 0x00-- a y y y pb 0x2f 32 0 8 8 8 8 0 0 8 1 0x00-- a y y y pb 0x30 32 0 8 8 8 8 0 0 16 1 0x00-- a y y y pb 0x31 32 0 8 8 8 8 16 0 2 1 0x00-- a y y y pb 0x32 32 0 8 8 8 8 16 0 4 1 0x00-- a y y y pb 0x33 32 0 8 8 8 8 16 0 8 1 0x00-- a y y y pb 0x34 32 0 8 8 8 8 16 0 16 1 0x00-- a y y y pb 0x35 32 0 8 8 8 8 24 0 2 1 0x00-- a y y y pb 0x36 32 0 8 8 8 8 24 0 4 1 0x00-- a y y y pb 0x37 32 0 8 8 8 8 24 0 8 1 0x00-- a y y y pb 0x38 32 0 8 8 8 8 24 0 16 1 0x00-- a y y y pb 0x39 32 0 8 8 8 8 24 8 2 1 0x00-- a y y y pb 0x3a 32 0 8 8 8 8 24 8 4 1 0x00-- a y y y pb 0x3b 32 0 8 8 8 8 24 8 8 1 0x00-- a y y y pb 0x3c 32 0 8 8 8 8 24 8 16 1 0x00-- a y y y pb 0x3d 24 0 8 8 8 0 0 0 0 0 0x00-- y y y y pb 0x3e 24 0 8 8 8 0 16 0 0 0 0x00-- y y y y pb 0x3f 24 0 8 8 8 0 24 0 0 0 0x00-- y y y y pb 0x40 24 0 8 8 8 0 24 8 0 0 0x00-- y y y y pb 0x41 24 0 8 8 8 0 0 0 2 1 0x00-- y y y y pb 0x42 24 0 8 8 8 0 0 0 4 1 0x00-- y y y y pb 0x43 24 0 8 8 8 0 0 0 8 1 0x00-- y y y y pb 0x44 24 0 8 8 8 0 0 0 16 1 0x00-- y y y y pb 0x45 24 0 8 8 8 0 16 0 2 1 0x00-- y y y y pb 0x46 24 0 8 8 8 0 16 0 4 1 0x00-- y y y y pb 0x47 24 0 8 8 8 0 16 0 8 1 0x00-- y y y y pb 0x48 24 0 8 8 8 0 16 0 16 1 0x00-- y y y y pb 0x49 24 0 8 8 8 0 24 0 2 1 0x00-- y y y y pb 0x4a 24 0 8 8 8 0 24 0 4 1 0x00-- y y y y pb 0x4b 24 0 8 8 8 0 24 0 8 1 0x00-- y y y y pb 0x4c 24 0 8 8 8 0 24 0 16 1 0x00-- y y y y pb 0x4d 24 0 8 8 8 0 24 8 2 1 0x00-- y y y y pb 0x4e 24 0 8 8 8 0 24 8 4 1 0x00-- y y y y pb 0x4f 24 0 8 8 8 0 24 8 8 1 0x00-- y y y y pb 0x50 24 0 8 8 8 0 24 8 16 1 0x00-- y y y y pb 0x51 16 0 5 6 5 0 0 0 0 0 0x00-- y y y y pb 0x52 16 0 5 6 5 0 16 0 0 0 0x00-- y y y y pb 0x53 16 0 5 6 5 0 24 0 0 0 0x00-- y y y y pb 0x54 16 0 5 6 5 0 24 8 0 0 0x00-- y y y y pb 0x55 16 0 5 6 5 0 0 0 2 1 0x00-- y y y y pb 0x56 16 0 5 6 5 0 0 0 4 1 0x00-- y y y y pb 0x57 16 0 5 6 5 0 0 0 8 1 0x00-- y y y y pb 0x58 16 0 5 6 5 0 0 0 16 1 0x00-- y y y y pb 0x59 16 0 5 6 5 0 16 0 2 1 0x00-- y y y y pb 0x5a 16 0 5 6 5 0 16 0 4 1 0x00-- y y y y pb 0x5b 16 0 5 6 5 0 16 0 8 1 0x00-- y y y y pb 0x5c 16 0 5 6 5 0 16 0 16 1 0x00-- y y y y pb 0x5d 16 0 5 6 5 0 24 0 2 1 0x00-- y y y y pb 0x5e 16 0 5 6 5 0 24 0 4 1 0x00-- y y y y pb 0x5f 16 0 5 6 5 0 24 0 8 1 0x00-- y y y y pb 0x60 16 0 5 6 5 0 24 0 16 1 0x00-- y y y y pb 0x61 16 0 5 6 5 0 24 8 2 1 0x00-- y y y y pb 0x62 16 0 5 6 5 0 24 8 4 1 0x00-- y y y y pb 0x63 16 0 5 6 5 0 24 8 8 1 0x00-- y y y y pb 0x64 16 0 5 6 5 0 24 8 16 1 0x00-- y y y y pb 0x65 64 0 16 16 16 16 0 0 0 0 0x00-- a y y y pb 0x66 64 0 16 16 16 16 16 0 0 0 0x00-- a y y y pb 0x67 64 0 16 16 16 16 24 0 0 0 0x00-- a y y y pb 0x68 64 0 16 16 16 16 24 8 0 0 0x00-- a y y y pb 0x69 64 0 16 16 16 16 0 0 2 1 0x00-- a y y y pb 0x6a 64 0 16 16 16 16 0 0 4 1 0x00-- a y y y pb 0x6b 64 0 16 16 16 16 0 0 8 1 0x00-- a y y y pb 0x6c 64 0 16 16 16 16 0 0 16 1 0x00-- a y y y pb 0x6d 64 0 16 16 16 16 16 0 2 1 0x00-- a y y y pb 0x6e 64 0 16 16 16 16 16 0 4 1 0x00-- a y y y pb 0x6f 64 0 16 16 16 16 16 0 8 1 0x00-- a y y y pb 0x70 64 0 16 16 16 16 16 0 16 1 0x00-- a y y y pb 0x71 64 0 16 16 16 16 24 0 2 1 0x00-- a y y y pb 0x72 64 0 16 16 16 16 24 0 4 1 0x00-- a y y y pb 0x73 64 0 16 16 16 16 24 0 8 1 0x00-- a y y y pb 0x74 64 0 16 16 16 16 24 0 16 1 0x00-- a y y y pb 0x75 64 0 16 16 16 16 24 8 2 1 0x00-- a y y y pb 0x76 64 0 16 16 16 16 24 8 4 1 0x00-- a y y y pb 0x77 64 0 16 16 16 16 24 8 8 1 0x00-- a y y y pb 0x78 64 0 16 16 16 16 24 8 16 1 0x00-- a y y y pb 0x79 48 0 16 16 16 0 0 0 0 0 0x00-- y y y y pb 0x7a 48 0 16 16 16 0 16 0 0 0 0x00-- y y y y pb 0x7b 48 0 16 16 16 0 24 0 0 0 0x00-- y y y y pb 0x7c 48 0 16 16 16 0 24 8 0 0 0x00-- y y y y pb 0x7d 48 0 16 16 16 0 0 0 2 1 0x00-- y y y y pb 0x7e 48 0 16 16 16 0 0 0 4 1 0x00-- y y y y pb 0x7f 48 0 16 16 16 0 0 0 8 1 0x00-- y y y y pb 0x80 48 0 16 16 16 0 0 0 16 1 0x00-- y y y y pb 0x81 48 0 16 16 16 0 16 0 2 1 0x00-- y y y y pb 0x82 48 0 16 16 16 0 16 0 4 1 0x00-- y y y y pb 0x83 48 0 16 16 16 0 16 0 8 1 0x00-- y y y y pb 0x84 48 0 16 16 16 0 16 0 16 1 0x00-- y y y y pb 0x85 48 0 16 16 16 0 24 0 2 1 0x00-- y y y y pb 0x86 48 0 16 16 16 0 24 0 4 1 0x00-- y y y y pb 0x87 48 0 16 16 16 0 24 0 8 1 0x00-- y y y y pb 0x88 48 0 16 16 16 0 24 0 16 1 0x00-- y y y y pb 0x89 48 0 16 16 16 0 24 8 2 1 0x00-- y y y y pb 0x8a 48 0 16 16 16 0 24 8 4 1 0x00-- y y y y pb 0x8b 48 0 16 16 16 0 24 8 8 1 0x00-- y y y y pb 0x8c 48 0 16 16 16 0 24 8 16 1 0x00-- y y y y pb Device #3: EGL device extensions string: EGL_MESA_device_software EGL_EXT_device_drm_render_node Platform Device: EGL API version: 1.5 EGL vendor string: Mesa Project EGL version string: 1.5 EGL client APIs: OpenGL OpenGL_ES EGL driver name: swrast EGL extensions string: EGL_EXT_create_context_robustness EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_query_driver Configurations: bf lv colorbuffer dp st ms vis cav bi renderable supported id sz l r g b a th cl ns b id eat nd gl es es2 vg surfaces --------------------------------------------------------------------- 0x01 32 0 10 10 10 2 0 0 0 0 0x00-- a y y y pb 0x02 32 0 10 10 10 2 16 0 0 0 0x00-- a y y y pb 0x03 32 0 10 10 10 2 24 0 0 0 0x00-- a y y y pb 0x04 32 0 10 10 10 2 24 8 0 0 0x00-- a y y y pb 0x05 32 0 10 10 10 2 32 0 0 0 0x00-- a y y y pb 0x06 32 0 10 10 10 2 0 0 4 1 0x00-- a y y y pb 0x07 32 0 10 10 10 2 16 0 4 1 0x00-- a y y y pb 0x08 32 0 10 10 10 2 24 0 4 1 0x00-- a y y y pb 0x09 32 0 10 10 10 2 24 8 4 1 0x00-- a y y y pb 0x0a 32 0 10 10 10 2 32 0 4 1 0x00-- a y y y pb 0x0b 30 0 10 10 10 0 0 0 0 0 0x00-- y y y y pb 0x0c 30 0 10 10 10 0 16 0 0 0 0x00-- y y y y pb 0x0d 30 0 10 10 10 0 24 0 0 0 0x00-- y y y y pb 0x0e 30 0 10 10 10 0 24 8 0 0 0x00-- y y y y pb 0x0f 30 0 10 10 10 0 32 0 0 0 0x00-- y y y y pb 0x10 30 0 10 10 10 0 0 0 4 1 0x00-- y y y y pb 0x11 30 0 10 10 10 0 16 0 4 1 0x00-- y y y y pb 0x12 30 0 10 10 10 0 24 0 4 1 0x00-- y y y y pb 0x13 30 0 10 10 10 0 24 8 4 1 0x00-- y y y y pb 0x14 30 0 10 10 10 0 32 0 4 1 0x00-- y y y y pb 0x15 32 0 8 8 8 8 0 0 0 0 0x00-- a y y y pb 0x16 32 0 8 8 8 8 16 0 0 0 0x00-- a y y y pb 0x17 32 0 8 8 8 8 24 0 0 0 0x00-- a y y y pb 0x18 32 0 8 8 8 8 24 8 0 0 0x00-- a y y y pb 0x19 32 0 8 8 8 8 32 0 0 0 0x00-- a y y y pb 0x1a 32 0 8 8 8 8 0 0 4 1 0x00-- a y y y pb 0x1b 32 0 8 8 8 8 16 0 4 1 0x00-- a y y y pb 0x1c 32 0 8 8 8 8 24 0 4 1 0x00-- a y y y pb 0x1d 32 0 8 8 8 8 24 8 4 1 0x00-- a y y y pb 0x1e 32 0 8 8 8 8 32 0 4 1 0x00-- a y y y pb 0x1f 24 0 8 8 8 0 0 0 0 0 0x00-- y y y y pb 0x20 24 0 8 8 8 0 16 0 0 0 0x00-- y y y y pb 0x21 24 0 8 8 8 0 24 0 0 0 0x00-- y y y y pb 0x22 24 0 8 8 8 0 24 8 0 0 0x00-- y y y y pb 0x23 24 0 8 8 8 0 32 0 0 0 0x00-- y y y y pb 0x24 24 0 8 8 8 0 0 0 4 1 0x00-- y y y y pb 0x25 24 0 8 8 8 0 16 0 4 1 0x00-- y y y y pb 0x26 24 0 8 8 8 0 24 0 4 1 0x00-- y y y y pb 0x27 24 0 8 8 8 0 24 8 4 1 0x00-- y y y y pb 0x28 24 0 8 8 8 0 32 0 4 1 0x00-- y y y y pb 0x29 16 0 5 6 5 0 0 0 0 0 0x00-- y y y y pb 0x2a 16 0 5 6 5 0 16 0 0 0 0x00-- y y y y pb 0x2b 16 0 5 6 5 0 24 0 0 0 0x00-- y y y y pb 0x2c 16 0 5 6 5 0 24 8 0 0 0x00-- y y y y pb 0x2d 16 0 5 6 5 0 32 0 0 0 0x00-- y y y y pb 0x2e 16 0 5 6 5 0 0 0 4 1 0x00-- y y y y pb 0x2f 16 0 5 6 5 0 16 0 4 1 0x00-- y y y y pb 0x30 16 0 5 6 5 0 24 0 4 1 0x00-- y y y y pb 0x31 16 0 5 6 5 0 24 8 4 1 0x00-- y y y y pb 0x32 16 0 5 6 5 0 32 0 4 1 0x00-- y y y y pb ```
Logs ``` env NVD_LOG=1 firefox-nightly 589.908341837 [88879-88879] ../src/vabackend.c:1775 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7fe76d37b980 31 589.908351075 [88879-88879] ../src/vabackend.c:1778 __vaDriverInit_1_0 Now have 0 (0 max) instances 589.913058994 [88879-88879] ../src/export-buf.c: 159 findGPUIndexFromFd Looking for DRM device index: 1 589.914919493 [88879-88879] ../src/export-buf.c: 172 findGPUIndexFromFd Found 4 EGL devices 589.915008758 [88879-88879] ../src/export-buf.c: 181 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 589.915013919 [88879-88879] ../src/export-buf.c: 187 findGPUIndexFromFd Found drmDeviceIndex: 1 589.915017336 [88879-88879] ../src/export-buf.c: 205 findGPUIndexFromFd Selecting EGLDevice 0 589.978374312 [88879-88879] ../src/export-buf.c: 267 initExporter Driver doesn't support 16-bit surfaces 589.978382594 [88879-88879] ../src/export-buf.c: 99 reconnect Reconnecting to stream 589.995066526 [88879-88879] ../src/vabackend.c: 556 nvCreateConfig got profile: 6 with 0 attributes 589.995073646 [88879-88879] ../src/vabackend.c: 556 nvCreateConfig got profile: 7 with 0 attributes 589.995076146 [88879-88879] ../src/vabackend.c: 556 nvCreateConfig got profile: 13 with 0 attributes 589.995077910 [88879-88879] ../src/vabackend.c: 556 nvCreateConfig got profile: 14 with 0 attributes 589.995079440 [88879-88879] ../src/vabackend.c: 556 nvCreateConfig got profile: 19 with 0 attributes 589.995081500 [88879-88879] ../src/vabackend.c:1752 nvTerminate Terminating 0x7fe76d37b980 589.995083208 [88879-88879] ../src/export-buf.c: 65 releaseExporter Releasing exporter, 0 outstanding frames 589.996102811 [88879-88879] ../src/export-buf.c: 82 releaseExporter Done releasing frames 590.019898676 [88879-88879] ../src/vabackend.c:1766 nvTerminate Now have 0 (0 max) instances ```
elFarto commented 2 years ago

I've managed to reproduce it locally. Looks like it was this change that caused it. The release prior to that fix is fine, the one after is broken.

Darkspirit commented 2 years ago

GBM GL in RDD has been replaced with https://bugzilla.mozilla.org/show_bug.cgi?id=1770407#c23. (https://bugzilla.mozilla.org/show_bug.cgi?id=1770523#c4)

elFarto commented 2 years ago

GBM GL in RDD has been replaced with https://bugzilla.mozilla.org/show_bug.cgi?id=1770407#c23. (https://bugzilla.mozilla.org/show_bug.cgi?id=1770523#c4)

That could be a problem. As far as I know, the dma-buf fd's that the NVIDIA driver produces can't be imported into anything else, mostly because they live in device local memory and just can't be access from outside.

One question I do have, is why the RDD process is trying to import it in the first place? I'm not sure I see what it can do with it.

Darkspirit commented 2 years ago

IIUC, there are two reasons:

The RDD process must not have X11/Wayland display access.

I posted this on Reddit, but unfortunately nobody has asked Nvidia in the correct forum yet:

Please ask Nvidia in this thread to support VAAPI via Mesa because you are so frustrated with how complex it is right now: https://forums.developer.nvidia.com/t/nvidia-releases-open-source-gpu-kernel-modules/214128 Nvidia developers need customer feedback so they can reference it in internal discussions: https://forums.developer.nvidia.com/t/thank-you-for-opening-the-sources-of-your-drivers/214502/3

It would be great if many Nvidia users could request VAAPI (vaExportSurfaceHandle) support.

elFarto commented 2 years ago

It's frustrating that the solution that was working for us (the GBM backend) removed in favour of one that doesn't (MESA surfaceless), I'll have to read the issues to find out why that was done. Would you guys be open to a patch that added an option to disable the import check/preview image feature?

We already have a working vaExportSurfaceHandle implementation, whose limitations won't likely be fixed with an NVIDIA backed open-source implementation, and it's doubtful NVIDIA will want to support a third video decoding API.

Darkspirit commented 2 years ago

Looks like it was this change that caused it. The release prior to that fix is fine, the one after is broken.

Doesn't that mean that GBM didn't work either?

WebRender (OpenGL 3.2 hardware rendering) uses X11 GL or Wayland GL in the main process. Since 89, the RDD process had used X11 GL on X11 and Wayland (but was blocked by the sandbox) until it was replaced with GBM GL in 102 (for 10 days),

and then it has been replaced with Mesa surfaceless GL. IIUC, the RDD process must not have X11/Wayland display access.


Would you guys be open to a patch that added an option to disable the import check/preview image feature?

That would cause the problems the check protects against. Mozilla would be blamed for a buggy Firefox. Doesn't sound like a sustainable workaround. (I have nothing to decide, I just file bugs.)


We already have a working vaExportSurfaceHandle implementation

But is it really desired how it is right now? https://github.com/elFarto/nvidia-vaapi-driver/issues/74#issuecomment-1100918826

It's a driver issue. As soon as you initialise cuda, it forces the GPU into a higher power state (at least P2 IIRC), and the nvdec implementation forces you to use cuda to interact with it, so this always happens. It means that using nvdec will never save you power unless you were going to use cuda anyway.


and it's doubtful NVIDIA will want to support a third video decoding API.

https://forums.developer.nvidia.com/t/wayland-information-for-r515-beta-release/214275

The VDPAU library, used for hardware accelerated video decoding and presentation, does not have native Wayland support and does not work with Xwayland.

Nvidia could fix Nouveau VAAPI in Mesa. Microsoft even added VAAPI via D3D12 in Mesa.

https://developer.nvidia.com/blog/nvidia-releases-open-source-gpu-kernel-modules/

There are plans to work on an upstream approach with the Linux kernel community and partners such as Canonical, Red Hat, and SUSE.

In the meantime, published source code serves as a reference to help improve the Nouveau driver. Nouveau can leverage the same firmware used by the NVIDIA driver, exposing many GPU functionalities, such as clock management and thermal management, bringing new features to the in-tree Nouveau driver.

Nvidia and Red Hat seem to plan to improve Mesa:

https://blogs.gnome.org/uraeus/2022/05/11/why-is-the-open-source-driver-release-from-nvidia-so-important-for-linux/

The plan we are working towards from our side, but which is likely to take a few years to come to full fruition, is to come up with a way for the NVIDIA binary driver and Mesa to share a kernel driver. The details of how we will do that is something we are still working on and discussing with our friends at NVIDIA to address both the needs of the NVIDIA userspace and the needs of the Mesa userspace. Along with that evolution we hope to work with NVIDIA engineers to refactor the userspace bits of Mesa that are now targeting just Nouveau to be able to interact with this new kernel driver and also work so that the binary driver and Nouveau can share the same firmware. This has clear advantages for both the open source community and the NVIDIA. For the open source community it means that we will now have a kernel driver and firmware that allows things like changing the clocking of the GPU to provide the kind of performance people expect from the NVIDIA graphics card and it means that we will have an open source driver that will have access to the firmware and kernel updates from day one for new generations of NVIDIA hardware. For the ‘binary’ driver, and I put that in ” signs because it will now be less binary :), it means as stated above that it can start taking advantage of the GPL-only APIs in the kernel, distros can ship it and enable secure boot, and it gets an open source consumer of its kernel driver allowing it to go upstream. If this new shared kernel driver will be known as Nouveau or something completely different is still an open question, and of course it happening at all depends on if we and the rest of the open source community and NVIDIA are able to find a path together to make it happen, but so far everyone seems to be of good will.

What are the next steps Well there is a lot of work to do here. NVIDIA need to continue the effort to make this new driver feature complete for both Compute and Graphics Display usecases, we’d like to work together to come up with a plan for what the future unified kernel driver can look like and a model around it that works for both the community and NVIDIA, we need to add things like a Mesa Vulkan driver. We at Red Hat will be playing an active part in this work as the only Linux vendor with the capacity to do so and we will also work to ensure that the wider open source community has a chance to participate fully like we do for all open source efforts we are part of.

ghoste07 commented 2 years ago

Seems like this change fixed it, Nvidia panel is showing video engine usage now.

Also, not exactly related to this issue, but is the MOZ_DISABLE_RDD_SANDBOX check still necessary? AFAIK it was fixed up in this bug report.

elFarto commented 2 years ago

Seems like this change fixed it, Nvidia panel is showing video engine usage now.

That's good news! I was a little worried we'd be stuck with the MESA surfaceless solution.

Also, not exactly related to this issue, but is the MOZ_DISABLE_RDD_SANDBOX check still necessary? AFAIK it was fixed up in this bug report.

Yes, it's still needed. The cause of this is CUDA, and the weird and wacky things it does when starting up. There's no real way around this unless we get all the things CUDA is using added to the sandbox, and I'm not entirely sure that's a good idea.

ghost commented 2 years ago

Seems like this change fixed it, Nvidia panel is showing video engine usage now.

Also, not exactly related to this issue, but is the MOZ_DISABLE_RDD_SANDBOX check still necessary? AFAIK it was fixed up in this bug report.

I don't understand the commit btw. Any user side temp fix ?

ghoste07 commented 2 years ago

Seems like this change fixed it, Nvidia panel is showing video engine usage now. Also, not exactly related to this issue, but is the MOZ_DISABLE_RDD_SANDBOX check still necessary? AFAIK it was fixed up in this bug report.

I don't understand the commit btw. Any user side temp fix ?

I'm not a developer so I don't really understand any of it either. That said, you'll need to use Firefox Nightly or the latest beta build. The stable build doesn't have the patch yet.

ghost commented 2 years ago

So it's working fine on beta (103.b6) but not on stable. Does that mean whoever on stable either should migrate to beta temporarily or wait for stable to reach 103 ?

n0k0m3 commented 2 years ago

Wait until July 26th: https://wiki.mozilla.org/Release_Management/Calendar#Future_branch_dates

thesword53 commented 2 years ago

VAAPI decode on Firefox is completly broken. Even on my Intel HD graphics, it's not working. Twitch streams often crash showing decoder error message.

ghost commented 2 years ago

VAAPI decode on Firefox is completly broken. Even on my Intel HD graphics, it's not working. Twitch streams often crash showing decoder error message.

Try beta for now. Or wait for firefox v103 which has working patch.

mohad12211 commented 2 years ago

v103 is out with the fix for this. finally.

philipl commented 2 years ago

I wouldn't get too excited. How many releases in a row have they alternated between breaking and fixing it?

n0k0m3 commented 2 years ago

Confirm it's fixed in v130

AlexFolland commented 1 year ago

It'll be a while still until Firefox v130. The above comment meant v103.

I'm posting this because I was confused when skimming this thread and thinking there was some long-term plan to fix this in far-off Firefox v130, then realized it was a mistake.

aplatypus commented 10 months ago

I doubt that this is a firefox issue. I am getting this problem running the eglgears_wayland demo:

$ eglgears_wayland 
libEGL warning: egl: failed to create dri2 screen
EGL_VERSION = 1.5

That's on Kubuntu 23.10 64-bit; nvidia v: 535.129.03