intel/devinfo: deal with i915 topology query change
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 25 Jun 2021 07:46:30 +0000 (10:46 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 14 Jan 2022 12:01:05 +0000 (12:01 +0000)
commite86ce98c6a08cf6a4129132cc5094370931e0bfa
treea45b983e79f11ebc5b8b57a912437105d2678ccd
parent6d73426d2a41b6de84f1c612867e82f2231206be
intel/devinfo: deal with i915 topology query change

i915 does not report slices accurately anymore on Gfx12.5+. Since this
is information we need to have for performance queries, we need to
rebuild it here.

v2: Remove invalid change to pixel pipes computations (Jordan)

v3: Fix index calculation (Curro)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14297>
src/intel/dev/intel_device_info.c