i965/fs: Add a helper function for add_dep(before, after, before->latency).
authorEric Anholt <eric@anholt.net>
Fri, 20 May 2011 21:13:59 +0000 (14:13 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 27 May 2011 15:08:23 +0000 (08:08 -0700)
commit40540cc517480720e509a63f213ab33d66409bf8
treec24d1eca4d7f4da44c0d7e6b9f5907137bc14b34
parent828b26b7ebe7e4c756a6cfde04646e8a112166ac
i965/fs: Add a helper function for add_dep(before, after, before->latency).

This lets us avoid a bunch of before==NULL checks in the callers.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_schedule_instructions.cpp