-
Notifications
You must be signed in to change notification settings - Fork 67
VC4 GPU Build
peyo-hd edited this page Dec 16, 2015
·
9 revisions
After 'repo sync' step of https://github.com/peyo-hd/local_manifests/tree/marshmallow, Do 'git checkout vc4' on following sources.
- kernel/rpi
- device/brcm/rpi2
Apply following 2 patches under frameworks/base
(1) For correct mouse pointer rendering
libs/input/SpriteController.cpp
@@ line 139 @@ void SpriteController::doUpdateSprites() {
if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) {
update.state.surfaceWidth = update.state.icon.bitmap.width();
+ if (update.state.surfaceWidth < 64) update.state.surfaceWidth = 64;
update.state.surfaceHeight = update.state.icon.bitmap.height();
update.state.surfaceDrawn = false;
(2) To prevent logcat flood by mouse event
core/java/android/view/GestureDetector.java
@@ line 490 @@ public class GestureDetector {
public boolean onTouchEvent(MotionEvent ev) {
+ switch(ev.getAction() & MotionEvent.ACTION_MASK) {
+ case MotionEvent.ACTION_HOVER_MOVE:
+ case MotionEvent.ACTION_HOVER_ENTER:
+ case MotionEvent.ACTION_HOVER_EXIT:
+ case MotionEvent.ACTION_BUTTON_PRESS:
+ case MotionEvent.ACTION_BUTTON_RELEASE:
+ return false;
+ }
if (mInputEventConsistencyVerifier != null) {
Then follow README of https://github.com/peyo-hd/device_brcm_rpi2/tree/vc4
Currently, VC4 build supports only Full-HD (1920x1080) TV or Monitor
For vc4 original work of Eric Anholt, refer to http://dri.freedesktop.org/wiki/VC4 And his github : https://github.com/anholt