diff options
author | Jerome Glisse <jglisse@redhat.com> | 2010-08-11 16:26:47 -0400 |
---|---|---|
committer | Jerome Glisse <jglisse@redhat.com> | 2010-08-11 16:26:47 -0400 |
commit | 07518a8d9ff119f1f93113235c4391051af14f7c (patch) | |
tree | c82e8a2ae5b1bfe65b6605b3f89fa518fb523b57 | |
parent | 707c56a217cef606e045707439661d44c8a5844f (diff) |
radeondb: don't try to set unexistant cb0 state
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
-rw-r--r-- | src/r600_ctx.c | 3 |
1 files changed, 2 insertions, 1 deletions
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]) |