intel: fix subslice computation from topology data
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 4 Oct 2019 16:37:14 +0000 (19:37 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 5 Oct 2019 20:05:03 +0000 (23:05 +0300)
commitd36763b2a45105b2bd4ca714ceb05b488c2d97ce
treec4cb6bba67a001950f38a3c94e27235dd715f1ae
parent396b41095944ea3675d30c0d47ca8c01db2b4c8f
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>
src/intel/dev/gen_device_info.c