summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2019-10-04 19:37:14 +0300
committerJuan A. Suarez Romero <jasuarez@igalia.com>2019-10-07 16:27:07 +0200
commit3d763e801cd9297512547e8958c03f668513ea7e (patch)
tree0a339be9aa31813680d418644d0400272d0c1d6f
parent9b75c1eaef3d8350571468bb53c845bd781429ec (diff)
downloadmesa-3d763e801cd9297512547e8958c03f668513ea7e.tar.gz
intel: fix subslice computation from topology data
We're missing the offset of the slice in the subslice mask... This worked for most platforms that don't have first slice fused off because we would reread the same mask from slice0 again and again... Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes: c1900f5b0f ("intel: devinfo: add helper functions to fill fusing masks values") Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/1869 Reviewed-by: Mark Janes <mark.a.janes@intel.com> (cherry picked from commit d36763b2a45105b2bd4ca714ceb05b488c2d97ce)
-rw-r--r--src/intel/dev/gen_device_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/dev/gen_device_info.c b/src/intel/dev/gen_device_info.c
index 04747593291..7b0f5119331 100644
--- a/src/intel/dev/gen_device_info.c
+++ b/src/intel/dev/gen_device_info.c
@@ -1156,7 +1156,7 @@ gen_device_info_update_from_topology(struct gen_device_info *devinfo,
for (int b = 0; b < devinfo->subslice_slice_stride; b++) {
devinfo->num_subslices[s] +=
- __builtin_popcount(devinfo->subslice_masks[b]);
+ __builtin_popcount(devinfo->subslice_masks[s * devinfo->subslice_slice_stride + b]);
}
n_subslices += devinfo->num_subslices[s];
}