Module: Mesa
Branch: main
Commit: f05688aa3299a27430119b27e45181a6f415bff8
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f05688aa3299a27430119b27e45181a6f415bff8

Author: Matt Turner <[email protected]>
Date:   Fri Nov 17 19:58:47 2023 -0500

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>

---

 src/util/libdrm.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/libdrm.h b/src/util/libdrm.h
index 045d7243078..3ba9c396300 100644
--- a/src/util/libdrm.h
+++ b/src/util/libdrm.h
@@ -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)
 {

Reply via email to