radeonsi: don't print AMD twice in the renderer string with the marketing name
authorMarek Olšák <marek.olsak@amd.com>
Mon, 31 Jul 2017 21:22:31 +0000 (23:22 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 1 Aug 2017 15:06:38 +0000 (17:06 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c

index c58048f14e84b83a96608267c4d41af57b12daaf..e9402f89137498bc847c2ce87467a8b827ae3217 100644 (file)
@@ -1345,7 +1345,8 @@ bool r600_common_screen_init(struct r600_common_screen *rscreen,
        rscreen->ws = ws;
 
        if ((chip_name = r600_get_marketing_name(ws)))
-               snprintf(family_name, sizeof(family_name), "%s / ", r600_get_family_name(rscreen));
+               snprintf(family_name, sizeof(family_name), "%s / ",
+                        r600_get_family_name(rscreen) + 4);
        else
                chip_name = r600_get_family_name(rscreen);