intel/devinfo: fix wrong offset computation

A bit difficult to find what commit introduced the issue because of
all the renaming, but it was my bug :)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10015>
(cherry picked from commit 349bfb7275)
This commit is contained in:
Lionel Landwerlin 2021-06-25 11:35:10 +03:00 committed by Dylan Baker
parent fdc53e0ae6
commit ca5a31432c
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@
"description": "intel/devinfo: fix wrong offset computation",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -1182,7 +1182,7 @@ update_from_masks(struct intel_device_info *devinfo, uint32_t slice_mask,
topology->max_eus_per_subslice = num_eu_per_subslice;
topology->eu_offset = topology->subslice_offset +
DIV_ROUND_UP(topology->max_subslices, 8);
topology->max_slices * DIV_ROUND_UP(topology->max_subslices, 8);
topology->eu_stride = DIV_ROUND_UP(num_eu_per_subslice, 8);
/* Set slice mask in topology */