radeonsi: fix build with GCC 4.8
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 5 May 2017 12:15:33 +0000 (14:15 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 5 May 2017 16:29:30 +0000 (18:29 +0200)
Fixes: 7088b655e8 ("radeonsi: constify a bunch of the perfcounter structs.")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100937
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_perfcounter.c

index ad7b9b7ae4b11bd2099b5dbd99a07cbe24db04e7..fd28d1176e3cffc0d21a2956bbfdd144dc7324b8 100644 (file)
@@ -302,7 +302,7 @@ static const struct si_pc_block_base cik_TCP = {
        .layout = SI_PC_MULTI_ALTERNATE,
 };
 
-static const struct si_pc_block_base cik_VGT = (const struct si_pc_block_base) {
+static const struct si_pc_block_base cik_VGT = {
        .name = "VGT",
        .num_counters = 4,
        .flags = R600_PC_BLOCK_SE,