summaryrefslogtreecommitdiff
path: root/user/mesa/nouveau-flush-fix.patch
blob: 97512d01a5e2cc5ab71c1ee64b48d5afef2b7430 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- mesa-21.3.8/src/mesa/drivers/dri/nouveau/nouveau_driver.c.old	2022-03-18 19:26:47.000000000 +0000
+++ mesa-21.3.8/src/mesa/drivers/dri/nouveau/nouveau_driver.c	2023-10-23 06:05:10.177357372 +0000
@@ -69,7 +69,7 @@
 	struct nouveau_context *nctx = to_nouveau_context(ctx);
 	struct nouveau_pushbuf *push = context_push(ctx);
 
-	PUSH_KICK(push);
+	if (push) PUSH_KICK(push);
 
 	if (ctx->DrawBuffer && _mesa_is_winsys_fbo(ctx->DrawBuffer) &&
 	    ctx->DrawBuffer->_ColorDrawBufferIndexes[0] == BUFFER_FRONT_LEFT) {