Lines Matching refs:cb
998 /* Returns the size in bits of the widest component of a CB format */
1445 const struct pipe_framebuffer_state *state, int cb)
1449 unsigned level = state->cbufs[cb]->u.tex.level;
1460 surf = (struct r600_surface *)state->cbufs[cb];
1461 rtex = (struct r600_resource_texture*)state->cbufs[cb]->texture;
1468 r600_texture_depth_flush(&rctx->context, state->cbufs[cb]->texture, TRUE);
1475 state->cbufs[cb]->u.tex.first_layer;
1581 offset += r600_resource_va(rctx->context.screen, state->cbufs[cb]->texture);
1584 /* FIXME handle enabling of CB beyond BASE8 which has different offset */
1586 si_pm4_set_reg(pm4, R_028C60_CB_COLOR0_BASE + cb * 0x3C, offset);
1587 si_pm4_set_reg(pm4, R_028C64_CB_COLOR0_PITCH + cb * 0x3C, S_028C64_TILE_MAX(pitch));
1588 si_pm4_set_reg(pm4, R_028C68_CB_COLOR0_SLICE + cb * 0x3C, S_028C68_TILE_MAX(slice));
1591 si_pm4_set_reg(pm4, R_028C6C_CB_COLOR0_VIEW + cb * 0x3C, 0x00000000);
1593 si_pm4_set_reg(pm4, R_028C6C_CB_COLOR0_VIEW + cb * 0x3C,
1594 S_028C6C_SLICE_START(state->cbufs[cb]->u.tex.first_layer) |
1595 S_028C6C_SLICE_MAX(state->cbufs[cb]->u.tex.last_layer));
1597 si_pm4_set_reg(pm4, R_028C70_CB_COLOR0_INFO + cb * 0x3C, color_info);
1598 si_pm4_set_reg(pm4, R_028C74_CB_COLOR0_ATTRIB + cb * 0x3C, color_attrib);
1606 rctx->export_16bpc |= 1 << cb;
1607 rctx->spi_shader_col_format |= V_028714_SPI_SHADER_FP16_ABGR << (4 * cb);
1609 rctx->spi_shader_col_format |= V_028714_SPI_SHADER_32_ABGR << (4 * cb);
2280 struct pipe_constant_buffer *cb)
2283 struct si_resource *rbuffer = cb ? si_resource(cb->buffer) : NULL;
2291 if (cb == NULL)
2297 if (cb->user_buffer)
2298 r600_upload_const_buffer(rctx, &rbuffer, cb->user_buffer, cb->buffer_size, &offset);
2323 if (cb->buffer != &rbuffer->b.b)