mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 22:00:11 +01:00
v3dv/device: handle primary nodes for newer kernels
For kernels rpi-5.X.y it changed from brcm,bcm2835-vc4 to brcm,bcm2711-vc5, so let's just check for both strings. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
parent
3bd02a729a
commit
aebfdfa04c
1 changed files with 2 additions and 1 deletions
|
|
@ -503,7 +503,8 @@ enumerate_devices(struct v3dv_instance *instance)
|
|||
} else if (devices[i]->available_nodes & 1 << DRM_NODE_PRIMARY) {
|
||||
char **compat = devices[i]->deviceinfo.platform->compatible;
|
||||
while (*compat) {
|
||||
if (strncmp(*compat, "brcm,bcm2835-vc4", 16) == 0) {
|
||||
if (strncmp(*compat, "brcm,bcm2711-vc5", 16) == 0 ||
|
||||
strncmp(*compat, "brcm,bcm2835-vc4", 16) == 0 ) {
|
||||
vc4_idx = i;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue