freedreno/ir3: workaround bug/feature
authorRob Clark <robclark@freedesktop.org>
Fri, 15 Jan 2016 22:07:02 +0000 (17:07 -0500)
committerRob Clark <robclark@freedesktop.org>
Sat, 16 Jan 2016 19:22:43 +0000 (14:22 -0500)
commitddede497b831fb98e3540247b570968532cdacc9
treefb8a6e63ab36285a42f07a63de8b9ab63ec8eb22
parentebd3a1fc17977a487b0ed86294e9b8312a1bf335
freedreno/ir3: workaround bug/feature

Seems like in certain cases, we cannot use c<a0.x+0> as the third src to
cat3 instructions.  This may be slightly conservative, we may only have
this restriction when the first src is also const.

This fixes, for example, +24/-0 of the variable-indexing piglit tests.

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