Lines Matching refs:semantic
118 * to the semantic name string. Then these strings are dumped into the stream.
409 /* copy the semantic name */
492 struct semantic_info *semantic,
496 elm->stream = semantic->stream;
498 elm->semantic_index = semantic->index + row;
499 elm->system_value = (uint32_t) prog_semantic_from_kind(semantic->kind, semantic->rows, row);
500 elm->comp_type = (uint32_t) semantic->comp_type;
501 elm->reg = semantic->start_row + row;
503 assert(semantic->cols + semantic->start_col <= 4);
504 elm->mask = (uint8_t) (((1 << semantic->cols) - 1) << semantic->start_col);
510 struct semantic_info *semantic, struct dxil_module *mod)
513 psv_elm->rows = semantic->rows;
514 if (semantic->start_row >= 0) {
515 assert(semantic->start_row < 256);
516 psv_elm->start_row = semantic->start_row;
517 psv_elm->cols_and_start = (1u << 6) | (semantic->start_col << 4) | semantic->cols;
526 psv_elm->cols_and_start = (semantic->start_col << 4) | semantic->cols;
528 psv_elm->semantic_kind = (uint8_t)semantic->kind;
529 psv_elm->component_type = semantic->comp_type;
530 psv_elm->interpolation_mode = semantic->interpolation;
531 psv_elm->dynamic_mask_and_stream = (semantic->stream) << 4;
532 if (semantic->kind == DXIL_SEM_ARBITRARY && strlen(semantic->name)) {
534 copy_semantic_name_to_string(mod->sem_string_table, semantic->name);
542 append_semantic_index_to_table(&mod->sem_index_table, semantic->index, semantic->rows);
549 struct semantic_info *semantic,
553 rec->name = ralloc_strdup(mod->ralloc_ctx, semantic->name);
554 rec->num_elements = semantic->rows;
555 rec->sig_comp_type = semantic->sig_comp_type;
557 for (unsigned i = 0; i < semantic->rows; ++i)
558 fill_signature_element(&rec->elements[i], semantic, i);
559 return fill_psv_signature_element(psv_elm, semantic, mod);
573 struct semantic_info semantic = {0};
574 get_semantics(var, &semantic, s->info.stage);
575 mod->inputs[num_inputs].sysvalue = semantic.sysvalue_name;
576 *row_iter = get_additional_semantic_info(s, var, &semantic, *row_iter, input_clip_size);
581 if (!fill_io_signature(mod, num_inputs, &semantic,
586 semantic.start_row + semantic.rows);
637 struct semantic_info semantic = {0};
642 get_semantic_ps_outname(var, &semantic);
648 get_semantic_name(var, &semantic, type);
651 next_row = get_additional_semantic_info(s, var, &semantic, next_row, s->info.clip_distance_array_size);
653 mod->info.has_out_position |= semantic.kind== DXIL_SEM_POSITION;
654 mod->info.has_out_depth |= semantic.kind == DXIL_SEM_DEPTH;
658 if (!fill_io_signature(mod, num_outputs, &semantic,
673 mod->num_psv_outputs[semantic.stream] = MAX2(mod->num_psv_outputs[semantic.stream],
674 semantic.start_row + semantic.rows);
723 struct semantic_info semantic = {0};
728 get_semantic_name(var, &semantic, type);
731 next_row = get_additional_semantic_info(s, var, &semantic, next_row, 0);
735 if (!fill_io_signature(mod, num_consts, &semantic,
753 semantic.start_row + semantic.rows);