modesetting: pci probing requires interface version 1.4
Set the drm interface version to 1.4 so we get the bus id correctly. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
ec79187d9a
commit
30ab80ef54
|
@ -215,10 +215,21 @@ static Bool probe_hw_pci(char *dev, struct pci_device *pdev)
|
||||||
{
|
{
|
||||||
int fd = open_hw(dev);
|
int fd = open_hw(dev);
|
||||||
char *id, *devid;
|
char *id, *devid;
|
||||||
|
drmSetVersion sv;
|
||||||
|
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
sv.drm_di_major = 1;
|
||||||
|
sv.drm_di_minor = 4;
|
||||||
|
sv.drm_dd_major = -1;
|
||||||
|
sv.drm_dd_minor = -1;
|
||||||
|
if (drmSetInterfaceVersion(fd, &sv)) {
|
||||||
|
close(fd);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
id = drmGetBusid(fd);
|
id = drmGetBusid(fd);
|
||||||
devid = ms_DRICreatePCIBusID(pdev);
|
devid = ms_DRICreatePCIBusID(pdev);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
Loading…
Reference in New Issue