mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 13:20:10 +01:00
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>
This commit is contained in:
parent
eb23be1d97
commit
0d576fbfbe
1 changed files with 2 additions and 10 deletions
|
|
@ -254,16 +254,8 @@ gen_get_l3_config(const struct gen_device_info *devinfo,
|
|||
static unsigned
|
||||
get_l3_way_size(const struct gen_device_info *devinfo)
|
||||
{
|
||||
if (devinfo->is_baytrail)
|
||||
return 2;
|
||||
|
||||
else if (devinfo->gt == 1 ||
|
||||
devinfo->is_cherryview ||
|
||||
devinfo->is_broxton)
|
||||
return 4;
|
||||
|
||||
else
|
||||
return 8 * devinfo->num_slices;
|
||||
assert(devinfo->l3_banks);
|
||||
return 2 * devinfo->l3_banks;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue