Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib:hf:x11: fix eglGetDisplay() high bit bug
For some unknown reason the eglGetDisplay() function fails if the high bit of the X Display pointer is set. The problem has been at http://irclog.whitequark.org/linux-sunxi/2016-01-11#15154314; We just apply the fix, which has been proposed in the official mali support forums: https://community.arm.com/thread/5484 Which basically does the following: 5eb38: 2800 cmp r0, #0 5eb3a: d002 beq.n 5eb42 <__egl_platform_display_valid+0xa> 5eb3c: bfd4 ite le - 5eb3e: 2000 movle r0, #0 + 5eb3e: 2001 movle r0, #1 5eb40: 2001 movgt r0, #1 5eb42: 4770 bx lr Signed-off-by: Siarhei Siamashka <[email protected]>
- Loading branch information