Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling mesa3d for v3d vc5 broadcom gpu #121

Open
DAMAKsabeur opened this issue Mar 18, 2019 · 3 comments
Open

Compiling mesa3d for v3d vc5 broadcom gpu #121

DAMAKsabeur opened this issue Mar 18, 2019 · 3 comments

Comments

@DAMAKsabeur
Copy link

Hello anholt,
I'm trying to use the v3d gallium driver to support egl, gles2 and Wayland-egl implementation for my 7271 based broadcom board
This board contain a vc5 GPU
Could you please tell me how to do it and which dependancies I have to cross compile.
It could be greatful if you could tell me too witch kernel flags I have to activate to get v3d DRM working
Regards

@anholt
Copy link
Owner

anholt commented Mar 18, 2019

You'll need DRM_V3D in the kernel, and a devicetree node for v3d to match to (BOLT doesn't include that by default, so it's up to you to set that up. See Documentation/devicetree/bindings/gpu/brcm,bcm-v3d.txt).

For Mesa, it's just a normal Mesa build for your distribution with v3d in the meson gallium-drivers option. However, this only covers 3D rendering, and using dma-bufs to export the 3D rendering to whatever display stack you have is up to you.

@DAMAKsabeur
Copy link
Author

Thanks a lot Anholt for your quick support.
First step is to compile all of them.
Now Linux kernel 4.19 compile well with drm_v3d support.
But for Mesa 3d libdrm support is required.
In libdrm I don't find v3d options
Only vc4 is supported in the case of bcm.
Is it really needed for mesa3d should I use a specific version of libdrm ?
Thanks

@anholt
Copy link
Owner

anholt commented Mar 19, 2019

There's no v3d component to libdrm, just having the core be the version mesa needs should be sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants