Lines Matching refs:draw_conf
1142 r600_draw_immd(ScrnInfoPtr pScrn, draw_config_t *draw_conf, uint32_t *indices)
1149 if (draw_conf->index_type == DI_INDEX_SIZE_16_BIT)
1150 count += (draw_conf->num_indices + 1) / 2;
1152 count += draw_conf->num_indices;
1155 EREG(VGT_PRIMITIVE_TYPE, draw_conf->prim_type);
1158 E32(IT_INDEX_TYPE_SWAP_MODE(ENDIAN_8IN32) | draw_conf->index_type);
1160 E32(draw_conf->index_type);
1163 E32(draw_conf->num_instances);
1166 E32(draw_conf->num_indices);
1167 E32(draw_conf->vgt_draw_initiator);
1169 if (draw_conf->index_type == DI_INDEX_SIZE_16_BIT) {
1170 for (i = 0; i < draw_conf->num_indices; i += 2) {
1171 if ((i + 1) == draw_conf->num_indices)
1177 for (i = 0; i < draw_conf->num_indices; i++)
1184 r600_draw_auto(ScrnInfoPtr pScrn, draw_config_t *draw_conf)
1189 EREG(VGT_PRIMITIVE_TYPE, draw_conf->prim_type);
1192 E32(IT_INDEX_TYPE_SWAP_MODE(ENDIAN_8IN32) | draw_conf->index_type);
1194 E32(draw_conf->index_type);
1197 E32(draw_conf->num_instances);
1199 E32(draw_conf->num_indices);
1200 E32(draw_conf->vgt_draw_initiator);
1208 draw_config_t draw_conf;
1214 CLEAR (draw_conf);
1236 draw_conf.prim_type = DI_PT_RECTLIST;
1237 draw_conf.vgt_draw_initiator = DI_SRC_SEL_AUTO_INDEX;
1238 draw_conf.num_instances = 1;
1239 draw_conf.num_indices = vtx_res.vtx_num_entries / vtx_res.vtx_size_dw;
1240 draw_conf.index_type = DI_INDEX_SIZE_16_BIT;
1242 r600_draw_auto(pScrn, &draw_conf);