From: Christoph Bumiller Date: Thu, 6 Oct 2011 18:45:08 +0000 (+0200) Subject: nv50/ir: initialize RelocInfo to 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=974102c7c27e45b0fb661e9374b2c51c9108922a;p=mesa.git nv50/ir: initialize RelocInfo to 0 --- 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;