From 3741b7d844f7357fac984e8c565dedb248947487 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Mon, 25 Feb 2013 12:52:43 +0100 Subject: nv50/ir: initialize CodeEmitters' specialized target fields --- src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/nv50/codegen') diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp index 2ba87f30971..90f861590e1 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp @@ -46,7 +46,7 @@ public: private: Program::Type progType; - const TargetNV50 *targ; + const TargetNV50 *targNV50; private: inline void defId(const ValueDef&, const int pos); @@ -1512,7 +1512,7 @@ CodeEmitterNV50::emitFlow(const Instruction *i, uint8_t flowOp) if (f->op == OP_CALL) { if (f->builtin) { - pos = targ->getBuiltinOffset(f->target.builtin); + pos = targNV50->getBuiltinOffset(f->target.builtin); } else { pos = f->target.fn->binPos; } @@ -1884,7 +1884,8 @@ CodeEmitterNV50::prepareEmission(Function *func) replaceExitWithModifier(func); } -CodeEmitterNV50::CodeEmitterNV50(const TargetNV50 *target) : CodeEmitter(target) +CodeEmitterNV50::CodeEmitterNV50(const TargetNV50 *target) : + CodeEmitter(target), targNV50(target) { targ = target; // specialized code = NULL; -- cgit v1.2.3