From 71003e3c84dd30461e9576140ec64283c8936de5 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sun, 11 Jul 2021 12:40:05 -0700 Subject: [PATCH] turnip: avoid some UB Reduce a bit of extra noise that makes diffing cmdstream traces more annoying. Signed-off-by: Rob Clark Part-of: --- src/freedreno/vulkan/tu_pipeline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c index 7089d8fc6d5..f1135506b2c 100644 --- a/src/freedreno/vulkan/tu_pipeline.c +++ b/src/freedreno/vulkan/tu_pipeline.c @@ -980,8 +980,8 @@ tu6_emit_vpc(struct tu_cs *cs, assert(linkage.cnt <= 32); const uint32_t sp_out_count = DIV_ROUND_UP(linkage.cnt, 2); const uint32_t sp_vpc_dst_count = DIV_ROUND_UP(linkage.cnt, 4); - uint32_t sp_out[16]; - uint32_t sp_vpc_dst[8]; + uint32_t sp_out[16] = {0}; + uint32_t sp_vpc_dst[8] = {0}; for (uint32_t i = 0; i < linkage.cnt; i++) { ((uint16_t *) sp_out)[i] = A6XX_SP_VS_OUT_REG_A_REGID(linkage.var[i].regid) |