mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
i965: Add a variable for way size per bank in get_l3_way_size()
Adding this variable better explains the computation of L3 way size in the function. V2: Use const variable for way_size_per_bank. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
8521559e08
commit
1024dad4d9
1 changed files with 4 additions and 5 deletions
|
|
@ -271,12 +271,11 @@ gen_get_l3_config(const struct gen_device_info *devinfo,
|
|||
static unsigned
|
||||
get_l3_way_size(const struct gen_device_info *devinfo)
|
||||
{
|
||||
const unsigned way_size_per_bank =
|
||||
devinfo->gen >= 9 && devinfo->l3_banks == 1 ? 4 : 2;
|
||||
|
||||
assert(devinfo->l3_banks);
|
||||
|
||||
if (devinfo->is_broxton)
|
||||
return 4;
|
||||
|
||||
return 2 * devinfo->l3_banks;
|
||||
return way_size_per_bank * devinfo->l3_banks;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue