From 6463b94973912c2c7f056132e8744db0dc98c6b8 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 3 Nov 2013 20:27:28 +0100 Subject: r600g: properly unbind a DSA state being deleted in r600_delete_dsa_state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tested-by: Christian König --- src/gallium/drivers/r600/r600_pipe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/r600/r600_pipe.h') diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 6aa944c54a0..d7af6180641 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -538,7 +538,7 @@ static INLINE void r600_set_cso_state_with_cb(struct r600_cso_state *state, void struct r600_command_buffer *cb) { state->cb = cb; - state->atom.num_dw = cb->num_dw; + state->atom.num_dw = cb ? cb->num_dw : 0; r600_set_cso_state(state, cso); } -- cgit v1.2.3