/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
D | prog_opt_constant_fold.c | 57 src.Swizzle = swiz; in src_reg_for_float() 72 src.Swizzle = swiz; in src_reg_for_vec4() 82 && (a->Swizzle == b->Swizzle) in src_regs_are_same() 95 data[0] = value[GET_SWZ(r->Swizzle, 0)].f; in get_value() 96 data[1] = value[GET_SWZ(r->Swizzle, 1)].f; in get_value() 97 data[2] = value[GET_SWZ(r->Swizzle, 2)].f; in get_value() 98 data[3] = value[GET_SWZ(r->Swizzle, 3)].f; in get_value() 158 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_constant_fold() 188 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_constant_fold() 190 inst->SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_constant_fold() [all …]
|
D | programopt.c | 96 newInst[i].SrcReg[0].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_dp4_code() 99 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_dp4_code() 168 newInst[0].SrcReg[0].Swizzle = SWIZZLE_XXXX; in _mesa_insert_mvp_mad_code() 171 newInst[0].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code() 180 newInst[i].SrcReg[0].Swizzle = MAKE_SWIZZLE4(i,i,i,i); in _mesa_insert_mvp_mad_code() 183 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code() 186 newInst[1].SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code() 195 newInst[3].SrcReg[0].Swizzle = SWIZZLE_WWWW; in _mesa_insert_mvp_mad_code() 198 newInst[3].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code() 201 newInst[3].SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code() [all …]
|
/external/mesa3d/src/mesa/program/ |
D | prog_opt_constant_fold.c | 57 src.Swizzle = swiz; in src_reg_for_float() 72 src.Swizzle = swiz; in src_reg_for_vec4() 82 && (a->Swizzle == b->Swizzle) in src_regs_are_same() 95 data[0] = value[GET_SWZ(r->Swizzle, 0)].f; in get_value() 96 data[1] = value[GET_SWZ(r->Swizzle, 1)].f; in get_value() 97 data[2] = value[GET_SWZ(r->Swizzle, 2)].f; in get_value() 98 data[3] = value[GET_SWZ(r->Swizzle, 3)].f; in get_value() 158 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_constant_fold() 188 inst->SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_constant_fold() 190 inst->SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_constant_fold() [all …]
|
D | programopt.c | 96 newInst[i].SrcReg[0].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_dp4_code() 99 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_dp4_code() 168 newInst[0].SrcReg[0].Swizzle = SWIZZLE_XXXX; in _mesa_insert_mvp_mad_code() 171 newInst[0].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code() 180 newInst[i].SrcReg[0].Swizzle = MAKE_SWIZZLE4(i,i,i,i); in _mesa_insert_mvp_mad_code() 183 newInst[i].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code() 186 newInst[1].SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code() 195 newInst[3].SrcReg[0].Swizzle = SWIZZLE_WWWW; in _mesa_insert_mvp_mad_code() 198 newInst[3].SrcReg[1].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code() 201 newInst[3].SrcReg[2].Swizzle = SWIZZLE_NOOP; in _mesa_insert_mvp_mad_code() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/tests/ |
D | rc_test_helpers.c | 74 struct match_info Swizzle; member 114 tokens.Swizzle.String = src_str + matches[5].rm_so; in init_rc_normal_src() 115 tokens.Swizzle.Length = match_length(matches, 5); in init_rc_normal_src() 147 if (tokens.Swizzle.Length == 0) { in init_rc_normal_src() 148 src_reg->Swizzle = RC_SWIZZLE_XYZW; in init_rc_normal_src() 151 src_reg->Swizzle = RC_MAKE_SWIZZLE_SMEAR(RC_SWIZZLE_UNUSED); in init_rc_normal_src() 152 if (tokens.Swizzle.String[0] != '.') { in init_rc_normal_src() 157 if (tokens.Swizzle.String[str_index] == '-') { in init_rc_normal_src() 161 switch(tokens.Swizzle.String[str_index]) { in init_rc_normal_src() 163 SET_SWZ(src_reg->Swizzle, i, RC_SWIZZLE_X); in init_rc_normal_src() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
D | rc_test_helpers.c | 74 struct match_info Swizzle; member 114 tokens.Swizzle.String = src_str + matches[5].rm_so; in init_rc_normal_src() 115 tokens.Swizzle.Length = match_length(matches, 5); in init_rc_normal_src() 147 if (tokens.Swizzle.Length == 0) { in init_rc_normal_src() 148 src_reg->Swizzle = RC_SWIZZLE_XYZW; in init_rc_normal_src() 151 src_reg->Swizzle = RC_MAKE_SWIZZLE_SMEAR(RC_SWIZZLE_UNUSED); in init_rc_normal_src() 152 if (tokens.Swizzle.String[0] != '.') { in init_rc_normal_src() 157 if (tokens.Swizzle.String[str_index] == '-') { in init_rc_normal_src() 161 switch(tokens.Swizzle.String[str_index]) { in init_rc_normal_src() 163 SET_SWZ(src_reg->Swizzle, i, RC_SWIZZLE_X); in init_rc_normal_src() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/r200/ |
D | r200_vertprog.c | 288 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src() 289 t_swizzle(GET_SWZ(src->Swizzle, 1)), in t_src() 290 t_swizzle(GET_SWZ(src->Swizzle, 2)), in t_src() 291 t_swizzle(GET_SWZ(src->Swizzle, 3)), in t_src() 300 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 301 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 302 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 303 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 617 if (GET_SWZ(src[i].Swizzle, j) == SWIZZLE_W) { in r200_translate_vertex_program() 618 src[i].Swizzle &= ~(SWIZZLE_W << (j*3)); in r200_translate_vertex_program() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | r200_vertprog.c | 288 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src() 289 t_swizzle(GET_SWZ(src->Swizzle, 1)), in t_src() 290 t_swizzle(GET_SWZ(src->Swizzle, 2)), in t_src() 291 t_swizzle(GET_SWZ(src->Swizzle, 3)), in t_src() 300 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 301 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 302 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 303 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 617 if (GET_SWZ(src[i].Swizzle, j) == SWIZZLE_W) { in r200_translate_vertex_program() 618 src[i].Swizzle &= ~(SWIZZLE_W << (j*3)); in r200_translate_vertex_program() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_pair_translate.c | 46 inst->SrcReg[1].Swizzle = RC_SWIZZLE_1111; in final_rewrite() 67 inst->SrcReg[1].Swizzle = RC_SWIZZLE_1111; in final_rewrite() 69 inst->SrcReg[2].Swizzle = RC_SWIZZLE_0000; in final_rewrite() 74 inst->SrcReg[2].Swizzle = RC_SWIZZLE_0000; in final_rewrite() 137 unsigned int swz = GET_SWZ(src.Swizzle, j); in src_uses() 224 unsigned int swz = GET_SWZ(inst->SrcReg[i].Swizzle, j); in set_pair_instruction() 242 pair->RGB.Arg[i].Swizzle = in set_pair_instruction() 243 rc_init_swizzle(inst->SrcReg[i].Swizzle, 3); in set_pair_instruction() 252 swz = rc_get_scalar_src_swz(inst->SrcReg[i].Swizzle); in set_pair_instruction() 254 swz = GET_SWZ(inst->SrcReg[i].Swizzle, 3); in set_pair_instruction() [all …]
|
D | radeon_program_tex.c | 41 reg.Swizzle = combine_swizzles(RC_SWIZZLE_0000, in shadow_fail_value() 52 reg.Swizzle = combine_swizzles(RC_SWIZZLE_1111, in shadow_pass_value() 96 inst_rcp->U.I.SrcReg[0].Swizzle = in projective_divide() 97 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 3)); in projective_divide() 106 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; in projective_divide() 185 inst_rcp->U.I.SrcReg[0].Swizzle = in radeonTransformTEX() 186 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 3)); in radeonTransformTEX() 197 inst_mul->U.I.SrcReg[0].Swizzle = in radeonTransformTEX() 198 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 2)); in radeonTransformTEX() 202 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; in radeonTransformTEX() [all …]
|
D | radeon_compiler_util.c | 203 sub->Arg[i].Swizzle = in rc_pair_rewrite_writemask() 204 rc_adjust_channels(sub->Arg[i].Swizzle, in rc_pair_rewrite_writemask() 215 src->Swizzle = rc_adjust_channels(src->Swizzle, *conversion_swizzle); in normal_rewrite_writemask_cb() 292 tmp.Swizzle = 0; in lmul_swizzle() 297 tmp.Swizzle |= GET_SWZ(srcreg.Swizzle, swz) << (i*3); in lmul_swizzle() 300 tmp.Swizzle |= swz << (i*3); in lmul_swizzle() 309 reg->Swizzle = RC_SWIZZLE_XYZW; in reset_srcreg() 408 rc_source_type_swz(src->Swizzle)); in can_use_presub_read_cb() 451 src_type0 = rc_source_type_swz(presub_src0->Swizzle); in rc_inst_can_use_presub() 458 src_type1 = rc_source_type_swz(presub_src1->Swizzle); in rc_inst_can_use_presub() [all …]
|
D | radeon_dataflow_swizzles.c | 43 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) != RC_SWIZZLE_UNUSED) in rewrite_source() 64 SET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan, RC_SWIZZLE_UNUSED); in rewrite_source() 66 phase_refmask |= 1 << GET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan); in rewrite_source() 81 inst->U.I.SrcReg[src].Swizzle = 0; in rewrite_source() 85 SET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan, in rewrite_source()
|
D | r500_fragprog.c | 99 if (GET_SWZ(inst_if->U.I.SrcReg[0].Swizzle, 0) == RC_SWIZZLE_X) { in r500_transform_IF() 115 inst_mov->U.I.SrcReg[0].Swizzle = combine_swizzles4( in r500_transform_IF() 116 inst_mov->U.I.SrcReg[0].Swizzle, in r500_transform_IF() 120 inst_mov->U.I.SrcReg[0].Swizzle = combine_swizzles4( in r500_transform_IF() 121 inst_mov->U.I.SrcReg[0].Swizzle, in r500_transform_IF() 175 inst_if->U.I.SrcReg[0].Swizzle = RC_MAKE_SWIZZLE( in r500_transform_IF() 197 if (opcode == RC_OPCODE_KIL && (reg.Swizzle != RC_SWIZZLE_XYZW || reg.Negate != RC_MASK_NONE)) in r500_swizzle_is_native() 201 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native() 217 if (reg.Swizzle == RC_SWIZZLE_XYZW && !reg.Abs && !reg.Negate) in r500_swizzle_is_native() 227 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native() [all …]
|
D | radeon_optimize.c | 59 combine.Negate = swizzle_mask(outer.Swizzle, inner.Negate); in chain_srcregs() 62 combine.Swizzle = combine_swizzles(inner.Swizzle, outer.Swizzle); in chain_srcregs() 74 rc_swizzle_to_writemask(src->Swizzle), in copy_propagate_scan_read() 113 && (rc_swizzle_to_writemask(src->Swizzle) & sc_data->Mask)) { in src_clobbered_reads_cb() 187 unsigned int swz = GET_SWZ(src.Swizzle, chan); in is_src_uniform_constant() 265 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in constant_folding_mul() 278 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in constant_folding_mul() 323 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) <= 3) in constant_folding() 345 unsigned int swz = GET_SWZ(newsrc.Swizzle, chan); in constant_folding() 369 SET_SWZ(newsrc.Swizzle, chan, newswz); in constant_folding() [all …]
|
D | radeon_compiler.c | 152 inst->U.I.SrcReg[i].Swizzle = combine_swizzles(new_input.Swizzle, inst->U.I.SrcReg[i].Swizzle); in rc_move_input() 217 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZW; in rc_copy_output() 226 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZW; in rc_copy_output() 257 inst_rcp->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_WWWW; in rc_transform_fragment_wpos() 271 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; in rc_transform_fragment_wpos() 283 inst_mad->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZ0; in rc_transform_fragment_wpos() 286 inst_mad->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_XYZ0; in rc_transform_fragment_wpos() 289 inst_mad->U.I.SrcReg[2].Swizzle = RC_SWIZZLE_XYZ0; in rc_transform_fragment_wpos() 336 inst_add->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_1111; in rc_transform_fragment_face() 340 inst_add->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_XXXX; in rc_transform_fragment_face()
|
D | radeon_vert_fc.c | 22 src->Swizzle = RC_MAKE_SWIZZLE(RC_SWIZZLE_UNUSED, RC_SWIZZLE_UNUSED, in build_pred_src() 109 new_inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in lower_bgnloop() 129 new_inst->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_0000; in lower_bgnloop() 143 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in lower_brk() 198 swz = rc_get_scalar_src_swz(inst->U.I.SrcReg[1].Swizzle); in lower_if() 201 inst->U.I.SrcReg[1].Swizzle = RC_MAKE_SWIZZLE(RC_SWIZZLE_UNUSED, in lower_if()
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/ |
D | radeon_pair_translate.c | 46 inst->SrcReg[1].Swizzle = RC_SWIZZLE_1111; in final_rewrite() 67 inst->SrcReg[1].Swizzle = RC_SWIZZLE_1111; in final_rewrite() 69 inst->SrcReg[2].Swizzle = RC_SWIZZLE_0000; in final_rewrite() 74 inst->SrcReg[2].Swizzle = RC_SWIZZLE_0000; in final_rewrite() 137 unsigned int swz = GET_SWZ(src.Swizzle, j); in src_uses() 224 unsigned int swz = GET_SWZ(inst->SrcReg[i].Swizzle, j); in set_pair_instruction() 242 pair->RGB.Arg[i].Swizzle = in set_pair_instruction() 243 rc_init_swizzle(inst->SrcReg[i].Swizzle, 3); in set_pair_instruction() 252 swz = rc_get_scalar_src_swz(inst->SrcReg[i].Swizzle); in set_pair_instruction() 254 swz = GET_SWZ(inst->SrcReg[i].Swizzle, 3); in set_pair_instruction() [all …]
|
D | radeon_program_tex.c | 41 reg.Swizzle = combine_swizzles(RC_SWIZZLE_0000, in shadow_fail_value() 52 reg.Swizzle = combine_swizzles(RC_SWIZZLE_1111, in shadow_pass_value() 96 inst_rcp->U.I.SrcReg[0].Swizzle = in projective_divide() 97 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 3)); in projective_divide() 106 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; in projective_divide() 185 inst_rcp->U.I.SrcReg[0].Swizzle = in radeonTransformTEX() 186 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 3)); in radeonTransformTEX() 197 inst_mul->U.I.SrcReg[0].Swizzle = in radeonTransformTEX() 198 RC_MAKE_SWIZZLE_SMEAR(GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 2)); in radeonTransformTEX() 202 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; in radeonTransformTEX() [all …]
|
D | radeon_compiler_util.c | 203 sub->Arg[i].Swizzle = in rc_pair_rewrite_writemask() 204 rc_adjust_channels(sub->Arg[i].Swizzle, in rc_pair_rewrite_writemask() 215 src->Swizzle = rc_adjust_channels(src->Swizzle, *conversion_swizzle); in normal_rewrite_writemask_cb() 292 tmp.Swizzle = 0; in lmul_swizzle() 297 tmp.Swizzle |= GET_SWZ(srcreg.Swizzle, swz) << (i*3); in lmul_swizzle() 300 tmp.Swizzle |= swz << (i*3); in lmul_swizzle() 309 reg->Swizzle = RC_SWIZZLE_XYZW; in reset_srcreg() 408 rc_source_type_swz(src->Swizzle)); in can_use_presub_read_cb() 451 src_type0 = rc_source_type_swz(presub_src0->Swizzle); in rc_inst_can_use_presub() 458 src_type1 = rc_source_type_swz(presub_src1->Swizzle); in rc_inst_can_use_presub() [all …]
|
D | radeon_dataflow_swizzles.c | 43 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) != RC_SWIZZLE_UNUSED) in rewrite_source() 64 SET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan, RC_SWIZZLE_UNUSED); in rewrite_source() 66 phase_refmask |= 1 << GET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan); in rewrite_source() 81 inst->U.I.SrcReg[src].Swizzle = 0; in rewrite_source() 85 SET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan, in rewrite_source()
|
D | r500_fragprog.c | 99 if (GET_SWZ(inst_if->U.I.SrcReg[0].Swizzle, 0) == RC_SWIZZLE_X) { in r500_transform_IF() 115 inst_mov->U.I.SrcReg[0].Swizzle = combine_swizzles4( in r500_transform_IF() 116 inst_mov->U.I.SrcReg[0].Swizzle, in r500_transform_IF() 120 inst_mov->U.I.SrcReg[0].Swizzle = combine_swizzles4( in r500_transform_IF() 121 inst_mov->U.I.SrcReg[0].Swizzle, in r500_transform_IF() 175 inst_if->U.I.SrcReg[0].Swizzle = RC_MAKE_SWIZZLE( in r500_transform_IF() 197 if (opcode == RC_OPCODE_KIL && (reg.Swizzle != RC_SWIZZLE_XYZW || reg.Negate != RC_MASK_NONE)) in r500_swizzle_is_native() 201 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native() 217 if (reg.Swizzle == RC_SWIZZLE_XYZW && !reg.Abs && !reg.Negate) in r500_swizzle_is_native() 227 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native() [all …]
|
D | radeon_optimize.c | 59 combine.Negate = swizzle_mask(outer.Swizzle, inner.Negate); in chain_srcregs() 62 combine.Swizzle = combine_swizzles(inner.Swizzle, outer.Swizzle); in chain_srcregs() 74 rc_swizzle_to_writemask(src->Swizzle), in copy_propagate_scan_read() 113 && (rc_swizzle_to_writemask(src->Swizzle) & sc_data->Mask)) { in src_clobbered_reads_cb() 187 unsigned int swz = GET_SWZ(src.Swizzle, chan); in is_src_uniform_constant() 265 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in constant_folding_mul() 278 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in constant_folding_mul() 323 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) <= 3) in constant_folding() 345 unsigned int swz = GET_SWZ(newsrc.Swizzle, chan); in constant_folding() 369 SET_SWZ(newsrc.Swizzle, chan, newswz); in constant_folding() [all …]
|
D | radeon_compiler.c | 152 inst->U.I.SrcReg[i].Swizzle = combine_swizzles(new_input.Swizzle, inst->U.I.SrcReg[i].Swizzle); in rc_move_input() 217 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZW; in rc_copy_output() 226 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZW; in rc_copy_output() 257 inst_rcp->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_WWWW; in rc_transform_fragment_wpos() 271 inst_mul->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_WWWW; in rc_transform_fragment_wpos() 283 inst_mad->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZ0; in rc_transform_fragment_wpos() 286 inst_mad->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_XYZ0; in rc_transform_fragment_wpos() 289 inst_mad->U.I.SrcReg[2].Swizzle = RC_SWIZZLE_XYZ0; in rc_transform_fragment_wpos() 336 inst_add->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_1111; in rc_transform_fragment_face() 340 inst_add->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_XXXX; in rc_transform_fragment_face()
|
D | radeon_vert_fc.c | 22 src->Swizzle = RC_MAKE_SWIZZLE(RC_SWIZZLE_UNUSED, RC_SWIZZLE_UNUSED, in build_pred_src() 109 new_inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in lower_bgnloop() 129 new_inst->U.I.SrcReg[1].Swizzle = RC_SWIZZLE_0000; in lower_bgnloop() 143 inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_0000; in lower_brk() 198 swz = rc_get_scalar_src_swz(inst->U.I.SrcReg[1].Swizzle); in lower_if() 201 inst->U.I.SrcReg[1].Swizzle = RC_MAKE_SWIZZLE(RC_SWIZZLE_UNUSED, in lower_if()
|
D | r3xx_vertprog.c | 147 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src() 148 t_swizzle(GET_SWZ(src->Swizzle, 1)), in t_src() 149 t_swizzle(GET_SWZ(src->Swizzle, 2)), in t_src() 150 t_swizzle(GET_SWZ(src->Swizzle, 3)), in t_src() 162 unsigned int swz = rc_get_scalar_src_swz(src->Swizzle); in t_src_scalar() 247 …S_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 0)), // X in ei_lit() 248 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 3)), // W in ei_lit() 250 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 1)), // Y in ei_lit() 254 …S_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 1)), // Y in ei_lit() 255 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 3)), // W in ei_lit() [all …]
|