Lines Matching defs:col_format
537 unsigned col_format = 0, is_int8 = 0, is_int10 = 0, is_float32 = 0;
560 col_format |= cf << (4 * i);
563 if (!(col_format & 0xf) && blend->need_src_alpha & (1 << 0)) {
568 col_format |= V_028714_SPI_SHADER_32_AR;
574 num_targets = (util_last_bit(col_format) + 3) / 4;
576 if (!(col_format & (0xfu << (i * 4)))) {
577 col_format |= V_028714_SPI_SHADER_32_R << (i * 4);
585 assert(!(col_format >> 4));
586 col_format |= (col_format & 0xf) << 4;
589 blend->cb_shader_mask = ac_get_cb_shader_mask(col_format);
590 blend->spi_shader_col_format = col_format;
618 unsigned col_format = radv_choose_spi_color_format(device, format, false, false);
619 assert(col_format != V_028714_SPI_SHADER_32_AR);
624 if (col_format == V_028714_SPI_SHADER_UINT16_ABGR && is_int8)
626 else if (col_format == V_028714_SPI_SHADER_SINT16_ABGR && is_int8)
628 else if (col_format == V_028714_SPI_SHADER_UINT16_ABGR && is_int10)
630 else if (col_format == V_028714_SPI_SHADER_SINT16_ABGR && is_int10)
633 if (col_format >= V_028714_SPI_SHADER_32_AR)
634 --col_format; /* Skip V_028714_SPI_SHADER_32_AR since there is no such VkFormat */
636 --col_format; /* Skip V_028714_SPI_SHADER_ZERO */
637 return col_format;
3067 unsigned col_format = (pipeline_key->ps.col_format >> (4 * idx)) & 0xf;
3070 if (col_format == V_028714_SPI_SHADER_ZERO ||
3071 (col_format == V_028714_SPI_SHADER_32_R && !cb_target_mask &&
3342 key.ps.col_format = blend->spi_shader_col_format;
4296 unsigned col_format = (pipeline_key->ps.col_format >> (4 * slot)) & 0xf;
4302 if (col_format == V_028714_SPI_SHADER_ZERO)
4330 if (col_format == V_028714_SPI_SHADER_FP16_ABGR ||
4331 col_format == V_028714_SPI_SHADER_UNORM16_ABGR ||
4332 col_format == V_028714_SPI_SHADER_SNORM16_ABGR ||
4333 col_format == V_028714_SPI_SHADER_UINT16_ABGR ||
4334 col_format == V_028714_SPI_SHADER_SINT16_ABGR) {
4336 switch (col_format) {
4377 bool input_16_bit = col_format == V_028714_SPI_SHADER_FP16_ABGR && is_16bit;
4397 if (col_format == V_028714_SPI_SHADER_FP16_ABGR) {
4403 } else if (col_format == V_028714_SPI_SHADER_UNORM16_ABGR) {
4405 } else if (col_format == V_028714_SPI_SHADER_SNORM16_ABGR) {
4407 } else if (col_format == V_028714_SPI_SHADER_UINT16_ABGR) {
4409 } else if (col_format == V_028714_SPI_SHADER_SINT16_ABGR) {
6998 pipeline->col_format = blend.spi_shader_col_format;