summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/codegen
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2013-02-25 12:52:43 +0100
committerChristoph Bumiller <[email protected]>2013-03-12 12:55:34 +0100
commit3741b7d844f7357fac984e8c565dedb248947487 (patch)
tree0f8bb2594a44df90190bd914c1de64f67c038148 /src/gallium/drivers/nv50/codegen
parentb0fc2f13eceb525056597c6a9191d2ad81773a4c (diff)
nv50/ir: initialize CodeEmitters' specialized target fields
Diffstat (limited to 'src/gallium/drivers/nv50/codegen')
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir_emit_nv50.cpp7
1 files changed, 4 insertions, 3 deletions
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;