diff options
author | Matt Turner <[email protected]> | 2016-11-21 21:19:50 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2017-01-20 11:40:52 -0800 |
commit | c9724682b52ba453817c3430af1332f28f5ac50c (patch) | |
tree | 8f25cbca7c31b9aba3f0cba485482f4cd7f9f6e9 /src | |
parent | 9fd12666d0102c367e354187a899269e254b756b (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu_validate.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu_validate.c b/src/mesa/drivers/dri/i965/brw_eu_validate.c index 86f0ec89012..8c2eb99f8e5 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_validate.c +++ b/src/mesa/drivers/dri/i965/brw_eu_validate.c @@ -103,10 +103,8 @@ num_sources_from_inst(const struct gen_device_info *devinfo, */ return 0; } - } else if (desc) { - return desc->nsrc; } else { - return 0; + return desc->nsrc; } switch (math_function) { |