Mesa (main): intel/devinfo: fix wrong offset computation

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 5 10:36:24 UTC 2021


Module: Mesa
Branch: main
Commit: 349bfb72752981c9ce276147efaa65ea9d839c57
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=349bfb72752981c9ce276147efaa65ea9d839c57

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Fri Jun 25 11:35:10 2021 +0300

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 at intel.com>
Cc: mesa-stable
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10015>

---

 src/intel/dev/intel_device_info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/dev/intel_device_info.c b/src/intel/dev/intel_device_info.c
index 477d4da666a..06e42bcc8d8 100644
--- a/src/intel/dev/intel_device_info.c
+++ b/src/intel/dev/intel_device_info.c
@@ -1145,7 +1145,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 */



More information about the mesa-commit mailing list