util: Provide DRM_DEVICE_GET_PCI_REVISION definition

This allows src/intel/dev/intel_device_info.c to build with libdrm
stubbed out.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26265>
This commit is contained in:
Matt Turner 2023-11-17 19:58:47 -05:00 committed by Marge Bot
parent 5022a26b50
commit f05688aa32

View file

@ -91,6 +91,7 @@ typedef struct _drmDevice {
/* ... */
} drmDevice, *drmDevicePtr;
#define DRM_DEVICE_GET_PCI_REVISION (1 << 0)
static inline int
drmGetDevice2(int fd, uint32_t flags, drmDevicePtr *device)
{