radv: set the chip name to GCN-NOOP when RADV_FORCE_FAMILY is set
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 31 Jan 2020 13:36:37 +0000 (14:36 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 11 Feb 2020 06:56:59 +0000 (07:56 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3654>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3654>

src/amd/vulkan/radv_device.c

index 4fc412dbc9cdc5f53dd937af0ca585fd09cd9283..de98dd867194369b5f8b516d3f4f5b407fa29b41 100644 (file)
@@ -300,6 +300,7 @@ radv_handle_env_var_force_family(struct radv_physical_device *device)
                if (!strcmp(family, ac_get_llvm_processor_name(i))) {
                        /* Override family and chip_class. */
                        device->rad_info.family = i;
+                       device->rad_info.name = "OVERRIDDEN";
 
                        if (i >= CHIP_NAVI10)
                                device->rad_info.chip_class = GFX10;