summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_pipe.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-11-03 20:27:28 +0100
committerMarek Olšák <[email protected]>2013-11-04 19:07:57 +0100
commit6463b94973912c2c7f056132e8744db0dc98c6b8 (patch)
tree6df1e3400ed2b3cf0e8e26561fa2b564ef1d864b /src/gallium/drivers/r600/r600_pipe.h
parentf0733479f06c0e6d6b36b863982329455aaf39af (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.h2
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);
}