radeonsi: fix possible truncation on renderer string
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 7 Jun 2018 01:03:10 +0000 (11:03 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 8 Jun 2018 00:07:55 +0000 (10:07 +1000)
Fixes truncation warning in gcc 8.1

Fixes: 8539c9bf3158 ("gallium/radeon: add the kernel version into the renderer string")
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_pipe.h

index 5d1671fb87f355521661c97d8cd178c628703419..cf9b124fe5a370f558808433a1678ac9016522ec 100644 (file)
@@ -409,7 +409,7 @@ struct si_screen {
 
        struct radeon_info              info;
        uint64_t                        debug_flags;
-       char                            renderer_string[100];
+       char                            renderer_string[183];
 
        unsigned                        gs_table_depth;
        unsigned                        tess_offchip_block_dw_size;