i965: Simplify num_sources_from_inst().
authorMatt Turner <mattst88@gmail.com>
Tue, 22 Nov 2016 05:19:50 +0000 (21:19 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 20 Jan 2017 19:40:52 +0000 (11:40 -0800)
commitc9724682b52ba453817c3430af1332f28f5ac50c
tree8f25cbca7c31b9aba3f0cba485482f4cd7f9f6e9
parent9fd12666d0102c367e354187a899269e254b756b
i965: Simplify num_sources_from_inst().

desc will always be non-NULL, because brw_validate_instructions() does
not attempt to validate any instructions that fail the
is_unsupported_inst() check.

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