Author: gaara

Mali GPU driver

[Copy link]

0

threads

32

posts

372

credits

Intermediate member

Rank: 3Rank: 3

credits
372
Published in 2015-11-9 23:59:34 | Show all floors
fritz replied at 2015-11-9 23:33
@whitewind
Whats your CPU usage when you play this 720p video?

When playing 720p:
kodi.bin: 150%
X: 45%
When playing 1080i:
kodi.bin: 180%
X: 25%

0

threads

32

posts

372

credits

Intermediate member

Rank: 3Rank: 3

credits
372
Published in 2015-11-10 00:04:57 | Show all floors
magicse replied at 2015-11-9 23:35
Could you say what are You patching in libMali.so ?
  1. <__egl_platform_swap_buffers+40>     ldr    r3, [pc, #36] <__egl_platform_swap_buffers+42>     movs   r2, #0
  2. <__egl_platform_swap_buffers+44>     add    r4, sp, #24 ; There was #28
  3. <__egl_platform_swap_buffers+46>     add    r3, pc
  4. <__egl_platform_swap_buffers+48>     ldr    r0, [r3, #4]
  5. <__egl_platform_swap_buffers+50>     movs   r3, #0
  6. <__egl_platform_swap_buffers+52>     str    r4, [sp, #16]
  7. <__egl_platform_swap_buffers+54>     strd   r2, r3, [sp]
  8. <__egl_platform_swap_buffers+58>     strd   r2, r3, [sp, #8]
  9. <__egl_platform_swap_buffers+62>     ldr    r0, [r0, #4]
  10. <__egl_platform_swap_buffers+64>     bl     0xb6f5cf64 <DRI2SwapBuffers>
Copy code
See comment in line <+44>
I think it's a bug in call to DRI2SwapBuffers. I'm not sure, but it seems that last parameter is something like some_struct *s and someone passed wrong pointer, so stack gets corrupted when DRI2SwapBuffers tries to write something to &s

5

threads

354

posts

2724

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2724
Published in 2015-11-10 00:20:48 | Show all floors
whitewind replied at 2015-11-9 16:59
When playing 720p:
kodi.bin: 150%
X: 45%

This is software decoding.

Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

0

threads

32

posts

372

credits

Intermediate member

Rank: 3Rank: 3

credits
372
Published in 2015-11-10 00:37:19 from mobile | Show all floors
fritz replied at 2015-11-10 00:20
This is software decoding.

Yes, but this is hardware rendering. With software rendering it wasn't possible to play HD videos with reasonabe FPS

1

threads

115

posts

709

credits

Senior member

Rank: 4

credits
709
Published in 2015-11-10 00:58:02 | Show all floors
So basicly , GPU is doing some work, but actual h264 is still inactive.

11

threads

286

posts

1933

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
1933
Published in 2015-11-10 09:36:10 | Show all floors
Edited by melanrz at 2015-11-10 09:57
whitewind replied at 2015-11-9 23:03
This is patched library version r4p0-00rel0
Note: install libMali.so to /usr/lib and make following  ...

Thank you,all working now.
https://www.youtube.com/watch?v=Qjg7fDYuABg

0

threads

32

posts

372

credits

Intermediate member

Rank: 3Rank: 3

credits
372
Published in 2015-11-10 09:42:34 | Show all floors
Edited by whitewind at 2015-11-10 11:52

The only thing that bothers me is that Kodi segfaults somewhere in libc from time to time. I'm using kodi-odroid, so I'll try to rebuild from source.

Here is my repository with patched libMali.so, updated headers and pkg-config files from @raoulh:
https://github.com/WhiteWind/sunxi-mali

18

threads

200

posts

888

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
888
Published in 2015-11-10 16:20:52 | Show all floors
Edited by magicse at 2015-11-10 10:47
whitewind replied at 2015-11-10 03:42
The only thing that bothers me is that Kodi segfaults somewhere in libc from time to time. I'm using ...

And what are You thinking about eglSwapBuffers not DRI2SwapBuffers


This thread contains more resources

You need to Log in to download or view,No account?    Register

x
Orange PI 2
www.orangepi.pp.ua
Published in 2015-11-10 16:41:41 | Show all floors
fritz replied at 2015-11-9 13:57
Guys you won't have hardware video acceleration fo kodi working with mali !!!
Mali is for "3D" accel ...

Please enlighten me because I don't understand.
Mali is the Orange PI GPU, right ?
Is any other "Processing Unit" used (and working) for
hardware video acceleration in Kodi for Android ?
Orange PI PC

18

threads

200

posts

888

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
888
Published in 2015-11-10 16:48:05 | Show all floors
darqoq replied at 2015-11-10 10:41
Please enlighten me because I don't understand.
Mali is the Orange PI GPU, right ?
Is any other "P ...

Yes CedarX
Orange PI 2
www.orangepi.pp.ua
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list