From: Eric Anholt Date: Tue, 27 Jul 2010 00:30:35 +0000 (-0700) Subject: ir_to_mesa: Flag when we use the address reg. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d64343f1ae84979bd154475badf11af8a9bfc2eb;p=mesa.git ir_to_mesa: Flag when we use the address reg. Hardware backends will get angry otherwise. --- diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp index c397838e259..89cad8a8b0f 100644 --- a/src/mesa/shader/ir_to_mesa.cpp +++ b/src/mesa/shader/ir_to_mesa.cpp @@ -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++;