Module: Mesa Branch: main Commit: 3e0cd6dfb9b5c87ad18c3576017c6cc5c7f240a0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e0cd6dfb9b5c87ad18c3576017c6cc5c7f240a0
Author: Karol Herbst <[email protected]> Date: Thu Aug 17 19:11:52 2023 +0200 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 <[email protected]> Reviewed-by: M Henning <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24758> --- 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);
