amd: Fix ac_gpu_info.c compilation on windows
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 22 Mar 2022 11:16:17 +0000 (12:16 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 24 Mar 2022 09:11:13 +0000 (09:11 +0000)
Fixes: 75a783ea73e8 ("ac: Query the amdgpu MEC firmware version.")
Acked-by: Daniel Stone <daniels@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15518>

src/amd/common/ac_gpu_info.c

index c4ed6f0..f6eca7f 100644 (file)
@@ -67,6 +67,7 @@
 #define AMDGPU_INFO_MEMORY 0x19
 #define AMDGPU_INFO_VIDEO_CAPS_DECODE 0
 #define AMDGPU_INFO_VIDEO_CAPS_ENCODE 1
+#define AMDGPU_INFO_FW_GFX_MEC 0x08
 struct drm_amdgpu_heap_info {
    uint64_t total_heap_size;
 };