radv: Don't emit a warning on VI-GFX9.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 7 Mar 2018 15:38:32 +0000 (16:38 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 7 Mar 2018 20:18:35 +0000 (21:18 +0100)
We are conformant:

https://www.khronos.org/conformance/adopters/conformant-products#submission_308

v2: Actually not emit it on gfx9.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c

index 5da42a87df8ffc8d951dad79865000694f00ab7b..7a11e08f97c6665f3b87c0b86be7b10e46db34c7 100644 (file)
@@ -280,7 +280,9 @@ radv_physical_device_init(struct radv_physical_device *device,
        disk_cache_format_hex_id(buf, device->cache_uuid, VK_UUID_SIZE * 2);
        device->disk_cache = disk_cache_create(device->name, buf, shader_env_flags);
 
-       fprintf(stderr, "WARNING: radv is not a conformant vulkan implementation, testing use only.\n");
+       if (device->rad_info.chip_class < VI ||
+           device->rad_info.chip_class > GFX9)
+               fprintf(stderr, "WARNING: radv is not a conformant vulkan implementation, testing use only.\n");
 
        radv_get_driver_uuid(&device->device_uuid);
        radv_get_device_uuid(&device->rad_info, &device->device_uuid);