Ensure domain is stripped from the bus ID.
This commit is contained in:
parent
4054834965
commit
c366b82bd5
|
@ -71,6 +71,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#include "mipointer.h"
|
#include "mipointer.h"
|
||||||
#include "xf86_OSproc.h"
|
#include "xf86_OSproc.h"
|
||||||
|
|
||||||
|
#define PCI_BUS_NO_DOMAIN(bus) ((bus) & 0xffu)
|
||||||
|
|
||||||
#if !defined(PANORAMIX)
|
#if !defined(PANORAMIX)
|
||||||
extern Bool noPanoramiXExtension;
|
extern Bool noPanoramiXExtension;
|
||||||
#endif
|
#endif
|
||||||
|
@ -2202,8 +2204,8 @@ DRICreatePCIBusID(pciVideoPtr PciInfo)
|
||||||
|
|
||||||
tag = pciTag(PciInfo->bus, PciInfo->device, PciInfo->func);
|
tag = pciTag(PciInfo->bus, PciInfo->device, PciInfo->func);
|
||||||
domain = xf86GetPciDomain(tag);
|
domain = xf86GetPciDomain(tag);
|
||||||
snprintf(busID, 20, "pci:%04x:%02x:%02x.%d", domain, PciInfo->bus,
|
snprintf(busID, 20, "pci:%04x:%02x:%02x.%d", domain,
|
||||||
PciInfo->device, PciInfo->func);
|
PCI_BUS_NO_DOMAIN(PciInfo->bus), PciInfo->device, PciInfo->func);
|
||||||
return busID;
|
return busID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue