radeonsi: add support for Raven2 (v2)
[mesa.git] / src / amd / common / ac_gpu_info.c
index 2c70fb2c721891a8c3d03d63cc17764c8f676b1b..689f544c18bfbf23177ef127cf0ab448c406d9c5 100644 (file)
@@ -314,6 +314,12 @@ bool ac_query_gpu_info(int fd, amdgpu_device_handle dev,
                return false;
        }
 
+       /* Raven2 uses the same PCI IDs as Raven1, but different revision IDs. */
+       if (info->family == CHIP_RAVEN && amdinfo->chip_rev >= 0x8) {
+               info->family = CHIP_RAVEN2;
+               info->name = "RAVEN2";
+       }
+
        if (info->family >= CHIP_VEGA10)
                info->chip_class = GFX9;
        else if (info->family >= CHIP_TONGA)