Lines Matching refs:cb
419 struct pipe_constant_buffer cb[PIPE_MAX_CONSTANT_BUFFERS]; member
437 struct r600_command_buffer *cb; member
620 struct r600_command_buffer *cb) in r600_emit_command_buffer() argument
622 assert(cs->current.cdw + cb->num_dw <= cs->current.max_dw); in r600_emit_command_buffer()
623 memcpy(cs->current.buf + cs->current.cdw, cb->buf, 4 * cb->num_dw); in r600_emit_command_buffer()
624 cs->current.cdw += cb->num_dw; in r600_emit_command_buffer()
663 struct r600_command_buffer *cb) in r600_set_cso_state_with_cb() argument
665 state->cb = cb; in r600_set_cso_state_with_cb()
666 state->atom.num_dw = cb ? cb->num_dw : 0; in r600_set_cso_state_with_cb()
684 struct r600_command_buffer *cb,
688 void cayman_init_common_regs(struct r600_command_buffer *cb,
888 static inline void r600_store_value(struct r600_command_buffer *cb, unsigned value) in r600_store_value() argument
890 cb->buf[cb->num_dw++] = value; in r600_store_value()
893 static inline void r600_store_array(struct r600_command_buffer *cb, unsigned num, unsigned *ptr) in r600_store_array() argument
895 assert(cb->num_dw+num <= cb->max_num_dw); in r600_store_array()
896 memcpy(&cb->buf[cb->num_dw], ptr, num * sizeof(ptr[0])); in r600_store_array()
897 cb->num_dw += num; in r600_store_array()
900 static inline void r600_store_config_reg_seq(struct r600_command_buffer *cb, unsigned reg, unsigned… in r600_store_config_reg_seq() argument
903 assert(cb->num_dw+2+num <= cb->max_num_dw); in r600_store_config_reg_seq()
904 cb->buf[cb->num_dw++] = PKT3(PKT3_SET_CONFIG_REG, num, 0); in r600_store_config_reg_seq()
905 cb->buf[cb->num_dw++] = (reg - R600_CONFIG_REG_OFFSET) >> 2; in r600_store_config_reg_seq()
912 static inline void r600_store_context_reg_seq(struct r600_command_buffer *cb, unsigned reg, unsigne… in r600_store_context_reg_seq() argument
915 assert(cb->num_dw+2+num <= cb->max_num_dw); in r600_store_context_reg_seq()
916 cb->buf[cb->num_dw++] = PKT3(PKT3_SET_CONTEXT_REG, num, 0) | cb->pkt_flags; in r600_store_context_reg_seq()
917 cb->buf[cb->num_dw++] = (reg - R600_CONTEXT_REG_OFFSET) >> 2; in r600_store_context_reg_seq()
924 static inline void r600_store_ctl_const_seq(struct r600_command_buffer *cb, unsigned reg, unsigned … in r600_store_ctl_const_seq() argument
927 assert(cb->num_dw+2+num <= cb->max_num_dw); in r600_store_ctl_const_seq()
928 cb->buf[cb->num_dw++] = PKT3(PKT3_SET_CTL_CONST, num, 0) | cb->pkt_flags; in r600_store_ctl_const_seq()
929 cb->buf[cb->num_dw++] = (reg - R600_CTL_CONST_OFFSET) >> 2; in r600_store_ctl_const_seq()
932 static inline void r600_store_loop_const_seq(struct r600_command_buffer *cb, unsigned reg, unsigned… in r600_store_loop_const_seq() argument
935 assert(cb->num_dw+2+num <= cb->max_num_dw); in r600_store_loop_const_seq()
936 cb->buf[cb->num_dw++] = PKT3(PKT3_SET_LOOP_CONST, num, 0); in r600_store_loop_const_seq()
937 cb->buf[cb->num_dw++] = (reg - R600_LOOP_CONST_OFFSET) >> 2; in r600_store_loop_const_seq()
944 static inline void eg_store_loop_const_seq(struct r600_command_buffer *cb, unsigned reg, unsigned n… in eg_store_loop_const_seq() argument
947 assert(cb->num_dw+2+num <= cb->max_num_dw); in eg_store_loop_const_seq()
948 cb->buf[cb->num_dw++] = PKT3(PKT3_SET_LOOP_CONST, num, 0) | cb->pkt_flags; in eg_store_loop_const_seq()
949 cb->buf[cb->num_dw++] = (reg - EG_LOOP_CONST_OFFSET) >> 2; in eg_store_loop_const_seq()
952 static inline void r600_store_config_reg(struct r600_command_buffer *cb, unsigned reg, unsigned val… in r600_store_config_reg() argument
954 r600_store_config_reg_seq(cb, reg, 1); in r600_store_config_reg()
955 r600_store_value(cb, value); in r600_store_config_reg()
958 static inline void r600_store_context_reg(struct r600_command_buffer *cb, unsigned reg, unsigned va… in r600_store_context_reg() argument
960 r600_store_context_reg_seq(cb, reg, 1); in r600_store_context_reg()
961 r600_store_value(cb, value); in r600_store_context_reg()
964 static inline void r600_store_ctl_const(struct r600_command_buffer *cb, unsigned reg, unsigned valu… in r600_store_ctl_const() argument
966 r600_store_ctl_const_seq(cb, reg, 1); in r600_store_ctl_const()
967 r600_store_value(cb, value); in r600_store_ctl_const()
970 static inline void r600_store_loop_const(struct r600_command_buffer *cb, unsigned reg, unsigned val… in r600_store_loop_const() argument
972 r600_store_loop_const_seq(cb, reg, 1); in r600_store_loop_const()
973 r600_store_value(cb, value); in r600_store_loop_const()
976 static inline void eg_store_loop_const(struct r600_command_buffer *cb, unsigned reg, unsigned value) in eg_store_loop_const() argument
978 eg_store_loop_const_seq(cb, reg, 1); in eg_store_loop_const()
979 r600_store_value(cb, value); in eg_store_loop_const()
982 void r600_init_command_buffer(struct r600_command_buffer *cb, unsigned num_dw);
983 void r600_release_command_buffer(struct r600_command_buffer *cb);