Skip to content

Commit

Permalink
lib:hf:x11: fix eglGetDisplay() high bit bug
Browse files Browse the repository at this point in the history
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
ssvb committed Jan 11, 2016
1 parent 1c5063f commit 5a5c7e2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 0 deletions.
Binary file modified r3p0/armhf/x11/libMali.so
Binary file not shown.
Binary file modified r3p1/armhf/x11/libMali.so
Binary file not shown.
Binary file modified r3p2-01rel1/armhf/x11/libEGL.so.1.4
Binary file not shown.

0 comments on commit 5a5c7e2

Please sign in to comment.