Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559144 - media-libs/mesa - Add vc4 to VIDEO_CARDS for Broadcom and Raspberry Pi ARM processors
Summary: media-libs/mesa - Add vc4 to VIDEO_CARDS for Broadcom and Raspberry Pi ARM pr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal enhancement with 1 vote (vote)
Assignee: Gentoo X packagers
URL: http://cgit.freedesktop.org/mesa/mesa...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-30 04:11 UTC by Nathan Shearer
Modified: 2016-04-28 14:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Enable vc4 in all current versions (enable_vc4_on_mesa.patch,7.70 KB, patch)
2016-04-14 07:35 UTC, Sven Eden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Shearer 2015-08-30 04:11:50 UTC
This is the Mesa and DRM driver for Broadcom VC4 hardware. It is notably used in the Raspberry Pi and Raspberry Pi 2 hardware. The addition is very simple and applies to all ebuilds from mesa-10.3.7-r1.ebuild and newer.

Reproducible: Always

Steps to Reproduce:
emerge -1pv =mesa-10.3.7-r1
Actual Results:  
Calculating dependencies... done!
[ebuild   R    ] media-libs/mesa-10.3.7-r1::gentoo  USE="classic dri3 egl gallium gbm gles2 llvm nptl udev -bindist -debug -gles1 (-opencl) (-openmax) -openvg -osmesa -pax_kernel -pic (-selinux) (-vdpau) -wayland -xa -xvmc" VIDEO_CARDS="-freedreno (-i915) (-i965) (-ilo) (-intel) (-nouveau) (-r100) (-r200) (-r300) (-r600) (-radeon) (-radeonsi) (-vmware)" 0 KiB

Expected Results:  
Calculating dependencies... done!
[ebuild   R    ] media-libs/mesa-10.3.7-r1::gentoo  USE="classic dri3 egl gallium gbm gles2 llvm nptl udev -bindist -debug -gles1 (-opencl) (-openmax) -openvg -osmesa -pax_kernel -pic (-selinux) (-vdpau) -wayland -xa -xvmc" VIDEO_CARDS="vc4%* -freedreno (-i915) (-i965) (-ilo) (-intel) (-nouveau) (-r100) (-r200) (-r300) (-r600) (-radeon) (-radeonsi) (-vmware)" 0 KiB

The change is very simple. Just add "gallium_enable video_cards_vc4 vc4" to the section of each ebuild from version 10.3.7-r1 onward in the section near the other gallium_enable calls.
Comment 1 Matt Turner gentoo-dev 2015-09-01 17:06:50 UTC
The vc4 driver requires a kernel driver that is not yet upstream and the developer does not want the vc4 driver shipped in distributions yet because it might mean he's locked into an unfinished kernel ABI. WONTFIX for now.
Comment 2 Sven Eden 2016-04-14 07:35:59 UTC
Created attachment 430360 [details, diff]
Enable vc4 in all current versions

Enable VC4 support in all versions and bump revision
Comment 3 Sven Eden 2016-04-14 07:38:09 UTC
I am reopening this due to the following reasons:

- The VC4 driver is in upstream 4.5 now.

- The Raspberry Pi Foundation's kernel tree now includes the driver in the current rpi-update 4.1 branch, and also the 4.5 branch.

- For 64bit builds both Zeldins and Electron752 forks include the driver.

- VC4 support is included as an option in the 2016-02-09 Rasbpian release.

See: https://dri.freedesktop.org/wiki/VC4/
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-04-28 14:20:48 UTC
commit bac272fa3584c4483a8b42c346011d083c5a2dfe
Author: Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
Date:   Thu Apr 28 16:18:19 2016 +0200

    media-libs/mesa: add flag for vc4 driver
    
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=559144
    
commit df8a7f9bd0d7362c27326a4156e44e51d2f918ef
Author: Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
Date:   Thu Apr 28 15:59:31 2016 +0200

    profiles/desc: add vc4 to VIDEO_CARDS
    
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=559144