xf86-video-fbturbo icon indicating copy to clipboard operation
xf86-video-fbturbo copied to clipboard

DRI does not work with screen1/fb1

Open mittorn opened this issue 10 years ago • 4 comments

Mali EGL does not work when using /dev/fb1 because fbturbo is trying to use /dev/dri/card0 instead of /dev/dri/card1. After replacing /dev/dri/card0 by /dev/dri/card1 and restarting X-server dri works. Are there any way to specify correct dri device?

mittorn avatar Mar 11 '14 11:03 mittorn

According commit 9808a58d33192032d63ddc0cc730c2e14272481c, libdrm automatically provides the correct device node path.

reinforce avatar Mar 11 '14 12:03 reinforce

It does not work because drmOpen opens wrong device.

mittorn avatar Mar 11 '14 14:03 mittorn

Patch that adds DRIDevicePath option to specify correct dri device. http://pastebin.com/Bu2cGGqZ

mittorn avatar Mar 11 '14 18:03 mittorn

@mittorn Thanks for investigating the problem and providing a fix!

Just to make it complete and ready to be applied, please also add a description for this new option to the man page and a commit message to the patch itself with a signed-off-by notice. And if by chance any other drivers happen to have the same option, it would be a good idea to use the same name for it in order to keep things consistent.

ssvb avatar Mar 11 '14 19:03 ssvb