diff options
author | Marek Olšák <[email protected]> | 2013-11-03 20:27:28 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-11-04 19:07:57 +0100 |
commit | 6463b94973912c2c7f056132e8744db0dc98c6b8 (patch) | |
tree | 6df1e3400ed2b3cf0e8e26561fa2b564ef1d864b /src/gallium/drivers/r600/r600_pipe.h | |
parent | f0733479f06c0e6d6b36b863982329455aaf39af (diff) |
r600g: properly unbind a DSA state being deleted in r600_delete_dsa_state
Tested-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |