aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-07-26 17:30:35 -0700
committerEric Anholt <[email protected]>2010-07-26 17:45:37 -0700
commitd64343f1ae84979bd154475badf11af8a9bfc2eb (patch)
tree8abcc48f0c15ef1795f6e24b12c1fbe56e5fe9c3
parent3e882ec84a2493da74c55d105010a37de521e593 (diff)
ir_to_mesa: Flag when we use the address reg.
Hardware backends will get angry otherwise.
-rw-r--r--src/mesa/shader/ir_to_mesa.cpp2
1 files changed, 2 insertions, 0 deletions
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++;