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);