Module: Mesa
Branch: master
Commit: 03c370d2f164847abad88c1af7c159db23014947
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=03c370d2f164847abad88c1af7c159db23014947

Author: Timothy Arceri <[email protected]>
Date:   Thu Jun  7 11:03:10 2018 +1000

radeonsi: fix possible truncation on renderer string

Fixes truncation warning in gcc 8.1

Fixes: 8539c9bf3158 ("gallium/radeon: add the kernel version into the renderer 
string")
Reviewed-by: Michel Dänzer <[email protected]>

---

 src/gallium/drivers/radeonsi/si_pipe.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_pipe.h 
b/src/gallium/drivers/radeonsi/si_pipe.h
index 5d1671fb87..cf9b124fe5 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.h
+++ b/src/gallium/drivers/radeonsi/si_pipe.h
@@ -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;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to