From db6e054eb03421c401f5cff592c25c810e11d1f3 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 25 Dec 2014 12:14:54 -1000 Subject: vc4: Don't bother zero-initializing the shader reloc indices. They should all be set to real values by the time they're read, and ideally if you used valgrind you'd see uninitialized value uses. --- src/gallium/drivers/vc4/vc4_cl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/vc4') diff --git a/src/gallium/drivers/vc4/vc4_cl.h b/src/gallium/drivers/vc4/vc4_cl.h index 36df11b5aed..5c67f225749 100644 --- a/src/gallium/drivers/vc4/vc4_cl.h +++ b/src/gallium/drivers/vc4/vc4_cl.h @@ -107,8 +107,8 @@ cl_start_shader_reloc(struct vc4_cl *cl, uint32_t n) cl->reloc_count = n; cl->reloc_next = cl->next - cl->base; - for (int i = 0; i < n; i++) - cl_u32(cl, 0); /* Space where hindex will be written. */ + /* Space where hindex will be written. */ + cl->next += n * 4; } static inline void -- cgit v1.2.3