ir_to_mesa: Flag when we use the address reg.

Hardware backends will get angry otherwise.
This commit is contained in:
Eric Anholt
2010-07-26 17:30:35 -07:00
parent 3e882ec84a
commit d64343f1ae
+2
View File
@@ -2146,6 +2146,8 @@ get_mesa_program(GLcontext *ctx, struct gl_shader_program *shader_program,
inst->function->inst = i;
else if (mesa_inst->Opcode == OPCODE_CAL)
mesa_inst->BranchTarget = inst->function->sig_id; /* rewritten later */
else if (mesa_inst->Opcode == OPCODE_ARL)
prog->NumAddressRegs = 1;
mesa_inst++;
i++;