yuq / mesa-lima

Deprecated, new place: https://gitlab.freedesktop.org/lima
https://github.com/yuq/mesa-lima/wiki
165 stars 18 forks source link

ppir: unsupport nir_op 78 #44

Closed koenkooi closed 6 years ago

koenkooi commented 6 years ago

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 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,

yuq commented 6 years ago

You can find a file in the build output generated at src/compiler/nir/nir_opcodes.h 78 is nir_op_fmov

koenkooi commented 6 years ago

Thanks!