mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
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 commitd36763b2a4)
This commit is contained in:
parent
c289ac9a22
commit
34d738ff2e
1 changed files with 1 additions and 1 deletions
|
|
@ -1104,7 +1104,7 @@ 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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue