[Nouveau] [PATCH] nv50: fix crash in NV50SyncToVBlank
Marcin Slusarz
marcin.slusarz at gmail.com
Sun Apr 15 04:46:42 PDT 2012
Regression from "WIP: port to new libdrm".
---
src/nv50_accel.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/nv50_accel.c b/src/nv50_accel.c
index 66d6cb8..7c640f2 100644
--- a/src/nv50_accel.c
+++ b/src/nv50_accel.c
@@ -44,6 +44,9 @@ NV50SyncToVBlank(PixmapPtr ppix, BoxPtr box)
if (!crtcs)
return;
+ if (!PUSH_SPACE(push, 10))
+ return;
+
BEGIN_NV04(push, SUBC_NVSW(0x0060), 2);
PUSH_DATA (push, pNv->vblank_sem->handle);
PUSH_DATA (push, 0);
--
1.7.8.5
More information about the Nouveau
mailing list