From eac61faf84011f1d0c8561d46b3228bae2b2e11e Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 1 Aug 2024 00:03:39 +0200 Subject: [PATCH] nouveau: remove nouveau_check_for_uma Part-of: --- src/gallium/drivers/nouveau/nouveau_screen.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c index bd074950289..d178fbdc3c3 100644 --- a/src/gallium/drivers/nouveau/nouveau_screen.c +++ b/src/gallium/drivers/nouveau/nouveau_screen.c @@ -263,18 +263,6 @@ nouveau_pushbuf_destroy(struct nouveau_pushbuf **push) nouveau_pushbuf_del(push); } -static bool -nouveau_check_for_uma(int chipset, struct nouveau_device *dev) -{ - struct nv_device_info_v0 info = { - .version = 0, - }; - - nouveau_device_info(dev, &info); - - return (info.platform == NV_DEVICE_INFO_V0_IGP) || (info.platform == NV_DEVICE_INFO_V0_SOC); -} - static int nouveau_screen_get_fd(struct pipe_screen *pscreen) { @@ -462,7 +450,7 @@ nouveau_screen_init(struct nouveau_screen *screen, struct nouveau_device *dev) PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_STREAM_OUTPUT | PIPE_BIND_COMMAND_ARGS_BUFFER; - screen->is_uma = nouveau_check_for_uma(dev->chipset, dev); + screen->is_uma = dev->info.type != NV_DEVICE_TYPE_DIS; memset(&mm_config, 0, sizeof(mm_config)); nouveau_fence_list_init(&screen->fence);