From 974102c7c27e45b0fb661e9374b2c51c9108922a Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Thu, 6 Oct 2011 20:45:08 +0200 Subject: nv50/ir: initialize RelocInfo to 0 --- src/gallium/drivers/nv50/codegen/nv50_ir_target.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/nv50') diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_target.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_target.cpp index 46662b7db3d..b1c696899c7 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_target.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_target.cpp @@ -258,6 +258,8 @@ CodeEmitter::addReloc(RelocEntry::Type ty, int w, uint32_t data, uint32_t m, size + RELOC_ALLOC_INCREMENT * sizeof(RelocEntry))); if (!relocInfo) return false; + if (n == 0) + memset(relocInfo, 0, sizeof(RelocInfo)); } ++relocInfo->count; -- cgit v1.2.3