iris: use gen_device_info helper to get subslice total

gen_device_info will try to use the most recent uAPI to get this
number and will fallback to this get_param. So just use what was
queries by gen_device_info_from_fd().

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9052>
This commit is contained in:
Lionel Landwerlin 2021-02-03 11:43:11 +02:00 committed by Marge Bot
parent fa17bbe00c
commit f08f8eaa48
1 changed files with 1 additions and 2 deletions

View File

@ -839,8 +839,7 @@ iris_screen_create(int fd, const struct pipe_screen_config *config)
slab_create_parent(&screen->transfer_pool,
sizeof(struct iris_transfer), 64);
screen->subslice_total =
iris_getparam_integer(screen->fd, I915_PARAM_SUBSLICE_TOTAL);
screen->subslice_total = gen_device_info_subslice_total(&screen->devinfo);
assert(screen->subslice_total >= 1);
iris_detect_kernel_features(screen);