i965: Simplify l3 way size computations
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 1 Jun 2017 23:36:39 +0000 (16:36 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 2 Jun 2017 23:21:56 +0000 (16:21 -0700)
commit0d576fbfbe912cf3fb9ab594bb31eb58bccf2138
tree95cfbacc3b920c1b01488070155a4d9147510a00
parenteb23be1d97da290073d76c2510b8999b250f0139
i965: Simplify l3 way size computations

By making use of l3_banks field in gen_device_info struct
l3_way_size for gen7+ = 2 * l3_banks.

V2: Keep the get_l3_way_size() function.

Suggested-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/intel/common/gen_l3_config.c