From 07518a8d9ff119f1f93113235c4391051af14f7c Mon Sep 17 00:00:00 2001 From: Jerome Glisse Date: Wed, 11 Aug 2010 16:26:47 -0400 Subject: radeondb: don't try to set unexistant cb0 state Signed-off-by: Jerome Glisse --- src/r600_ctx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/r600_ctx.c b/src/r600_ctx.c index 226ac48..12a1b31 100644 --- a/src/r600_ctx.c +++ b/src/r600_ctx.c @@ -69,7 +69,8 @@ static int r600_bof_ctx_new_draw(struct cs_parse *cs) if (draw->state[R600_DB] == NULL) return -ENOMEM; } - draw->state[R600_CB0]->nbo = 3; + if (draw->state[R600_CB0]) + draw->state[R600_CB0]->nbo = 3; if (draw->state[R600_CB1]) draw->state[R600_CB1]->nbo = 3; if (draw->state[R600_CB2]) -- cgit v1.2.3