From 3e0cd6dfb9b5c87ad18c3576017c6cc5c7f240a0 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 17 Aug 2023 19:11:52 +0200 Subject: [PATCH] nv50: limit max code uploads to 0x8000 I have no idea why a bigger size doesn't work, the hardware doesn't complain, but it turns out that uploading big shaders still causes issues with the old limit. *shrug* Fixes: 7f63d2ebdbc ("nv50: fix code uploads bigger than 0x10000 bytes") Signed-off-by: Karol Herbst Reviewed-by: M Henning Part-of: --- src/gallium/drivers/nouveau/nv50/nv50_transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/nv50/nv50_transfer.c b/src/gallium/drivers/nouveau/nv50/nv50_transfer.c index 5a9a5bacaae..a1e30820607 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_transfer.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_transfer.c @@ -280,7 +280,7 @@ nv50_sifc_linear_u8(struct nouveau_context *nv, struct nouveau_pushbuf *push = nv50->base.pushbuf; uint32_t *src = (uint32_t *)data; unsigned count = DIV_ROUND_UP(size, 4); - unsigned max_size = 0x10000; + unsigned max_size = 0x8000; nouveau_bufctx_refn(nv50->bufctx, 0, dst, domain | NOUVEAU_BO_WR); nouveau_pushbuf_bufctx(push, nv50->bufctx);