| Summary: | Raspberry pi 4 won't recognize the second display (kmsdrm video driver) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | svenvd.github |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | WAITING --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | danintheshed |
| Version: | 2.0.12 | ||
| Hardware: | ARM | ||
| OS: | Linux | ||
|
Description
svenvd.github
2020-11-24 13:13:44 UTC
You can see that the kmsdrm driver is just assuming a single display here, in multiple lines like this one:
dispdata = (SDL_DisplayData *)SDL_GetDisplayDriverData(0); //viddata->devindex);
meanwhile other video drivers that do have multi_display support do things like:
SDL_DisplayData *pData =(SDL_DisplayData*)SDL_GetDisplayDriverData(displayIndex);
Looking back on this thread when the driver was first created:
https://discourse.libsdl.org/t/kms-drm-context-for-the-gl-gles-renderer/21813/11
it seems it was discussed and multiple displays being 'out of scope' was mentioned.
Multiple displays are no longer out of scope. I don't have a test setup for this, does anyone have a patch they'd like considered for inclusion that supports this? |