From a4367f2e3c03ca02c6ab831bb9917210dc6110c4 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sat, 22 Jul 2023 19:33:45 +0200 Subject: [PATCH] nouveau: fix max_warps_per_mp_for_sm for builds with asserts disabled Fixes: 1b756be2bca ("nvk: properly calculate SLM region by taking per arch limits into account") Part-of: --- src/nouveau/winsys/nouveau_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nouveau/winsys/nouveau_device.c b/src/nouveau/winsys/nouveau_device.c index 49284b6..14f6a5f 100644 --- a/src/nouveau/winsys/nouveau_device.c +++ b/src/nouveau/winsys/nouveau_device.c @@ -109,6 +109,8 @@ max_warps_per_mp_for_sm(uint8_t sm) return 64; default: assert(!"unkown SM version"); + // return the biggest known value + return 64; } } -- 2.7.4