i965/fs: Delete is_last_send(); just check inst->eot.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 5 Feb 2015 05:17:55 +0000 (21:17 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 6 Feb 2015 04:00:42 +0000 (20:00 -0800)
commit10d8a1a88ef2bf80d43e0d876873cf18603798c0
tree7fdf295694d351e5cb679a59ea7640eaec9a44df
parenta338dc01866ce50bf7555ee8dc08491c7f63b585
i965/fs: Delete is_last_send(); just check inst->eot.

This helper function basically just checks inst->eot, but also asserts
that only opcodes we expect to terminate threads have EOT set.  As far
as I'm aware, we've never had such a bug.

Removing it means that we don't have to extend the list for new opcodes.
Cherryview and Skylake introduce an optimization where sampler messages
can have EOT set; scalar GS/HS/DS will likely introduce new opcodes as
well.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp