From 863727c4a373ef3f652b6b8249ed05c54408fbb0 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 25 Jun 2019 12:09:41 +0200 Subject: [PATCH] radv/gfx10: set RADV_FORCE_FAMILY Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index d22d3d7a627..0ee2fa704dd 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -215,7 +215,9 @@ radv_handle_env_var_force_family(struct radv_physical_device *device) /* Override family and chip_class. */ device->rad_info.family = i; - if (i >= CHIP_VEGA10) + if (i >= CHIP_NAVI10) + device->rad_info.chip_class = GFX10; + else if (i >= CHIP_VEGA10) device->rad_info.chip_class = GFX9; else if (i >= CHIP_TONGA) device->rad_info.chip_class = GFX8; -- 2.30.2