I'm trying to find out what's needed to get kodi running on lima (amlogic am905x, mali450) using the new kodi EGL/GBM backend and after a small tweak (https://gist.github.com/koenkooi/1d8e71969167f7ff68163f15166e797a) I'm now at the point where it crashes due to missing features.
This is using revision 1e3fd4f0e247f6c6955e89bba92be13814debcf5
using export EGL_LOG_LEVEL="debug"
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI_TexBuffer'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL info: found extension DRI_TexBuffer version 2
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI2_Flush'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL info: found extension DRI2_Flush version 4
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI_IMAGE'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL info: found extension DRI_IMAGE version 17
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI_RENDERER_QUERY'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI_CONFIG_QUERY'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI2_Throttle'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI2_Fence'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI2_Interop'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI_NoError'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI_TexBuffer'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI2_Flush'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI_IMAGE'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL info: found extension DRI_IMAGE version 17
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI_RENDERER_QUERY'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL info: found extension DRI_RENDERER_QUERY version 1
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI_CONFIG_QUERY'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL info: found extension DRI_CONFIG_QUERY version 1
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI2_Throttle'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI2_Fence'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL info: found extension DRI2_Fence version 2
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI2_Interop'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL info: found extension DRI2_Interop version 1
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: found extension `DRI_NoError'
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL info: found extension DRI_NoError version 1
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: did not find optional extension DRI_Robustness version 1
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: did not find optional extension DRI_FlushControl version 1
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: No DRI config supports native format 0x30335258
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: No DRI config supports native format 0x30335241
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: No DRI config supports native format 0x36314752
Apr 20 08:26:03 libretech-cc kodi-standalone[9567]: libEGL debug: the best driver is DRI2
Apr 20 08:26:04 libretech-cc kodi-standalone[9567]: ppir: unsupport nir_op 78
Apr 20 08:26:04 libretech-cc kodi-standalone[9567]: /usr/bin/kodi: line 210: 9615 Segmentation fault (core dumped) ${KODI_BINARY} $SAVED_ARGS
I'm trying to find out what's needed to get kodi running on lima (amlogic am905x, mali450) using the new kodi EGL/GBM backend and after a small tweak (https://gist.github.com/koenkooi/1d8e71969167f7ff68163f15166e797a) I'm now at the point where it crashes due to missing features.
This is using revision 1e3fd4f0e247f6c6955e89bba92be13814debcf5
using
export EGL_LOG_LEVEL="debug"
I tracked it to https://github.com/yuq/mesa-lima/blob/lima-18.0/src/gallium/drivers/lima/ir/pp/nir.c#L134 but I can't figure out what that '78' should map to.
So my question is: how do I find out which opcode '78' is,