lp://staging/~thopiekar/arm-mali/xf86-video-mali-sunxi
- Get this branch:
- bzr branch lp://staging/~thopiekar/arm-mali/xf86-video-mali-sunxi
Branch merges
Branch information
Import details
This branch is an import of the HEAD branch of the Git repository at https://github.com/linux-sunxi/xf86-video-mali.git.
Last successful import was .
Recent revisions
- 7. By Hans de Goede <email address hidden>
-
No need to link against -lMali
The driver does not use any symbols from libMali, so it should have never
been linked in before. Not linking against it allows building a fully FOSS
stack for having a (somewhat) accelerated Xorg.Note that this patch instead links directly against pixman-1, which was being
picked up indirectly through Mali before.Signed-off-by: Hans de Goede <email address hidden>
- 6. By Hans de Goede <email address hidden>
-
Fix function prototype mismatches and X-server crash on vt switch
When building against Xorg-1.13 I get the following compiler warnings:
mali_fbdev.c: In function 'MaliHWEnterVT':
mali_fbdev.c:662:5: warning: passing argument 1 of 'MaliHWAdjustFrame' from incompatible pointer type [enabled by default]
mali_fbdev.c:615:6: note: expected 'ScreenPtr' but argument is of type 'ScrnInfoPtr'
mali_fbdev.c: In function 'MaliHWSwitchModeWeak' :
mali_fbdev.c:722:55: warning: return from incompatible pointer type [enabled by default]
mali_fbdev.c: In function 'MaliHWAdjustFrameWeak' :
mali_fbdev.c:723:55: warning: return from incompatible pointer type [enabled by default]
mali_fbdev.c: In function 'MaliHWEnterVTWeak':
mali_fbdev.c:724:55: warning: return from incompatible pointer type [enabled by default]
mali_fbdev.c: In function 'MaliHWLeaveVTWeak':
mali_fbdev.c:725:55: warning: return from incompatible pointer type [enabled by default]
mali_fbdev.c: In function 'MaliHWValidModeWeak':
mali_fbdev.c:726:55: warning: return from incompatible pointer type [enabled by default]
mali_fbdev.c: In function 'MaliProbe':
mali_fbdev.c:746:15: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] And worse, when I try to switch to another virtual console, Xorg crashes.
This patches:
-Introduces compat-api.h, used by most other Xorg drivers to deal with
Xorg-1.13 API changes
-Uses this to fix the warnings, also removing a ton of #ifdefs
-As a bonus also fixes the VT switch crash, which was likely caused by
some function parameters being wrongSigned-off-by: Hans de Goede <email address hidden>
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)