freedreno/ir3: fix constlen with relative addressing
authorRob Clark <robclark@freedesktop.org>
Thu, 4 Sep 2014 17:48:05 +0000 (13:48 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 5 Sep 2014 02:28:50 +0000 (22:28 -0400)
commit5d8f40a53a58c984906bc6509f01e31cc41ed1da
tree6e61ba34dca399808d28d6113aad7dcfd6bdc7d3
parent73ff4c5f70286ffe72ce6a60b68a8274d7425478
freedreno/ir3: fix constlen with relative addressing

We can't rely on the value from the assembler if relative addressing is
used.  So instead use the max of declared-consts (which does not include
compiler immediates) and what we get from the assembler (which does).

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_program.c
src/gallium/drivers/freedreno/ir3/ir3_compiler.c
src/gallium/drivers/freedreno/ir3/ir3_shader.c