i965/compaction: Simplify jump target code.
authorMatt Turner <mattst88@gmail.com>
Sat, 27 Sep 2014 16:39:49 +0000 (09:39 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 29 Sep 2014 22:58:57 +0000 (15:58 -0700)
commita36631b74c97cfc1862ed50fbaac174a4aecec31
tree5860e785bcf601390344bdd168f22678d46b53e6
parentdce96f6da2d8ec4c17403db57326731dcf9d6051
i965/compaction: Simplify jump target code.

My attempts to clarify the code with _compacted/_uncompacted prefixed
variables apparently failed. Hopefully this is clearer.

In any case, the previous code wasn't clear enough to gcc to let it
optimize division by a power of two into a shift. No problems now.

Also, the previous code (in the ADD case) didn't work on 32-bit x86, due
to complicated set of interactions best summed up as unsigned division
and compiler optimizations.

Tested-by: Mark Janes <mark.a.janes@intel.com>
src/mesa/drivers/dri/i965/brw_eu_compact.c