From f08f8eaa48eec2c0d6af579f02013f3df5cda8c8 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 3 Feb 2021 11:43:11 +0200 Subject: [PATCH] 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 Reviewed-by: Jordan Justen Part-of: --- src/gallium/drivers/iris/iris_screen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index 128254c8218..a98ccf29465 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -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);