Lines Matching refs:native
101 struct etna_native_reg native; /* native register to map to */ member
303 temps[idx].native = alloc_new_native_reg(c); in assign_temporaries_to_native()
328 if (!inout->active || inout->native.valid) { /* Skip if already a native register assigned */ in assign_inouts_to_temporaries()
338 inout->native = temp->native; in assign_inouts_to_temporaries()
349 if (inout->active && !inout->native.valid) in assign_inouts_to_temporaries()
350 inout->native = alloc_new_native_reg(c); in assign_inouts_to_temporaries()
628 reg->native = etna_native_temp(0); in assign_special_inputs()
696 !c->file[TGSI_FILE_OUTPUT].reg[out_idx].native.valid && in etna_compile_pass_optimize_outputs()
698 c->file[TGSI_FILE_OUTPUT].reg[out_idx].native = in etna_compile_pass_optimize_outputs()
699 c->file[TGSI_FILE_TEMPORARY].reg[in_idx].native; in etna_compile_pass_optimize_outputs()
714 !c->file[TGSI_FILE_INPUT].reg[in_idx].native.valid && in etna_compile_pass_optimize_outputs()
715 !c->file[TGSI_FILE_OUTPUT].reg[out_idx].native.valid && in etna_compile_pass_optimize_outputs()
718 c->file[TGSI_FILE_OUTPUT].reg[out_idx].native = in etna_compile_pass_optimize_outputs()
719 c->file[TGSI_FILE_INPUT].reg[in_idx].native = in etna_compile_pass_optimize_outputs()
759 etna_native_to_dst(struct etna_native_reg native, unsigned comps) in etna_native_to_dst() argument
762 assert(native.valid && !native.is_tex && native.rgroup == INST_RGROUP_TEMP); in etna_native_to_dst()
767 .reg = native.id, in etna_native_to_dst()
774 etna_native_to_src(struct etna_native_reg native, uint32_t swizzle) in etna_native_to_src() argument
776 assert(native.valid && !native.is_tex); in etna_native_to_src()
781 .rgroup = native.rgroup, in etna_native_to_src()
782 .reg = native.id, in etna_native_to_src()
900 rv = etna_native_to_dst(etna_get_dst_reg(c, in->Register)->native, in convert_dst()
915 struct etna_native_reg native_reg = etna_get_src_reg(c, in->Register)->native; in convert_tex()
930 const struct etna_native_reg *native) in etna_create_src() argument
938 .rgroup = native->rgroup, in etna_create_src()
939 .reg = native->id, in etna_create_src()
943 assert(native->valid && !native->is_tex); in etna_create_src()
1835 const struct etna_native_reg *n = &etna_get_src_reg(c, reg->Register)->native; in etna_compile_pass_generate_code()
1893 .dst = etna_native_to_dst(pos_reg->native, INST_COMPS_Z), in etna_compile_add_z_div_if_needed()
1894 .src[0] = etna_native_to_src(pos_reg->native, SWIZZLE(Z, Z, Z, Z)), in etna_compile_add_z_div_if_needed()
1895 .src[2] = etna_native_to_src(pos_reg->native, SWIZZLE(W, W, W, W)), in etna_compile_add_z_div_if_needed()
1899 .dst = etna_native_to_dst(pos_reg->native, INST_COMPS_Z), in etna_compile_add_z_div_if_needed()
1900 .src[0] = etna_native_to_src(pos_reg->native, SWIZZLE(Z, Z, Z, Z)), in etna_compile_add_z_div_if_needed()
1931 file->reg[idx].native.valid = 1; in assign_uniforms()
1932 file->reg[idx].native.rgroup = INST_RGROUP_UNIFORM_0; in assign_uniforms()
1933 file->reg[idx].native.id = base + idx; in assign_uniforms()
1965 c->file[TGSI_FILE_SAMPLER].reg[idx].native.valid = 1; in assign_texture_units()
1966 c->file[TGSI_FILE_SAMPLER].reg[idx].native.is_tex = 1; // overrides rgroup in assign_texture_units()
1967 c->file[TGSI_FILE_SAMPLER].reg[idx].native.id = tex_base + idx; in assign_texture_units()
2002 if (cmp_etna_native_reg(c->decl[idx].native, from)) { in swap_native_registers()
2003 c->decl[idx].native = to; in swap_native_registers()
2004 } else if (cmp_etna_native_reg(c->decl[idx].native, to)) { in swap_native_registers()
2005 c->decl[idx].native = from; in swap_native_registers()
2032 c->file[TGSI_FILE_INPUT].reg[idx].native); in permute_ps_inputs()
2052 if (reg->native.id > 0) { in fill_in_ps_inputs()
2054 sf->reg[sf->num_reg].reg = reg->native.id; in fill_in_ps_inputs()
2082 sobj->ps_color_out_reg = reg->native.id; in fill_in_ps_outputs()
2085 …sobj->ps_depth_out_reg = reg->native.id; /* =always native reg 0, only z component should be assig… in fill_in_ps_outputs()
2104 sf->reg[sf->num_reg].reg = reg->native.id; in fill_in_vs_inputs()
2150 sobj->vs_pos_out_reg = reg->native.id; in fill_in_vs_outputs()
2153 sobj->vs_pointsize_out_reg = reg->native.id; in fill_in_vs_outputs()
2156 sf->reg[sf->num_reg].reg = reg->native.id; in fill_in_vs_outputs()
2372 c->decl[x].native.valid ? c->decl[x].native.id : -1, in etna_compile_shader()
2396 c->decl[x].native.valid ? c->decl[x].native.id : -1, in etna_compile_shader()