diff options
author | Eric Anholt <[email protected]> | 2010-07-26 17:30:35 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-07-26 17:45:37 -0700 |
commit | d64343f1ae84979bd154475badf11af8a9bfc2eb (patch) | |
tree | 8abcc48f0c15ef1795f6e24b12c1fbe56e5fe9c3 /src/mesa | |
parent | 3e882ec84a2493da74c55d105010a37de521e593 (diff) |
ir_to_mesa: Flag when we use the address reg.
Hardware backends will get angry otherwise.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/ir_to_mesa.cpp | 2 |
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++; |