Skip to content

Commit 7b22434

Browse files
committed
GPU (Windows): fix build
1 parent 960a817 commit 7b22434

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/detection/gpu/gpu.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ const char* ffDetectGPUImpl(const FFGPUOptions* options, FFlist* gpus);
4949

5050
const char* ffGPUGetVendorString(unsigned vendorId);
5151

52+
typedef struct FFGpuDriverPciBusId
53+
{
54+
uint32_t domain;
55+
uint32_t bus;
56+
uint32_t device;
57+
uint32_t func;
58+
} FFGpuDriverPciBusId;
59+
5260
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__HAIKU__)
5361
void ffGPUFillVendorAndName(uint8_t subclass, uint16_t vendor, uint16_t device, FFGPUResult* gpu);
5462
void ffGPUQueryAmdGpuName(uint16_t deviceId, uint8_t revisionId, FFGPUResult* gpu);
@@ -61,13 +69,5 @@ const char* ffDrmDetectXe(FFGPUResult* gpu, int fd);
6169
const char* ffDrmDetectAsahi(FFGPUResult* gpu, int fd);
6270
#endif // FF_HAVE_DRM
6371

64-
typedef struct FFGpuDriverPciBusId
65-
{
66-
uint32_t domain;
67-
uint32_t bus;
68-
uint32_t device;
69-
uint32_t func;
70-
} FFGpuDriverPciBusId;
7172
const char* ffGPUDetectDriverSpecific(const FFGPUOptions* options, FFGPUResult* gpu, FFGpuDriverPciBusId pciBusId);
72-
7373
#endif // defined(XXX)

0 commit comments

Comments
 (0)