aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-10-06 20:45:08 +0200
committerChristoph Bumiller <[email protected]>2011-10-21 23:00:38 +0200
commit974102c7c27e45b0fb661e9374b2c51c9108922a (patch)
tree71d748105c01758315097e6173682036c2cc3c14
parent7920c3c192bbccdc48823b02f00d2e1b39f1a9bf (diff)
nv50/ir: initialize RelocInfo to 0
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir_target.cpp2
1 files changed, 2 insertions, 0 deletions
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;