i965/fs: Walk instructions in reverse in saturate propagation.
authorMatt Turner <mattst88@gmail.com>
Mon, 8 Sep 2014 19:05:25 +0000 (12:05 -0700)
committerMatt Turner <mattst88@gmail.com>
Sat, 27 Sep 2014 19:18:37 +0000 (12:18 -0700)
commit82bdb559a160129774d2e2f235cb2b18c907d713
tree567882fd66efa3a1c18116fcfa256d6dc9c9802f
parented48f91275f52f26b513fc2970233063bfa023af
i965/fs: Walk instructions in reverse in saturate propagation.

When we find a mov.sat, we search backwards. We might as well search
everything else backwards as well and potentially look at fewer
instructions.

This change enables the next patch.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp