/third_party/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_dataflow_swizzles.c | 49 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) != RC_SWIZZLE_UNUSED) in rewrite_source() 72 phase_refmask |= 1 << GET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan); in rewrite_source() 115 unsigned swz = GET_SWZ(reg->Swizzle, chan); in try_rewrite_constant() 135 unsigned chan_swz = GET_SWZ(reg->Swizzle, chan); in try_rewrite_constant() 152 swz0 = GET_SWZ(new_swizzle, 0); in try_rewrite_constant() 153 swz1 = GET_SWZ(new_swizzle, 1); in try_rewrite_constant() 154 swz2 = GET_SWZ(new_swizzle, 2); in try_rewrite_constant() 327 swz3 = GET_SWZ(reg->Swizzle, 3); in try_rewrite_constant() 332 unsigned old_swz = GET_SWZ(reg->Swizzle, chan); in try_rewrite_constant() 333 unsigned new_swz = GET_SWZ(new_swizzle, chan); in try_rewrite_constant() [all …]
|
D | radeon_compiler_util.c | 44 mask |= 1 << GET_SWZ(swz, i); in rc_swizzle_to_writemask() 55 return GET_SWZ(swz, idx); in get_swz() 93 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_X)); in combine_swizzles() 94 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_Y)) << 3; in combine_swizzles() 95 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_Z)) << 6; in combine_swizzles() 96 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_W)) << 9; in combine_swizzles() 120 unsigned swz = GET_SWZ(swizzle, chan); in swizzle_mask() 159 SET_SWZ(new_swizzle, new_chan, GET_SWZ(old_swizzle, i)); in rc_adjust_channels() 173 || GET_SWZ(conversion_swizzle, i) == RC_SWIZZLE_UNUSED) { in rewrite_writemask() 176 new_mask |= (1 << GET_SWZ(conversion_swizzle, i)); in rewrite_writemask() [all …]
|
D | r300_fragprog_swizzle.c | 79 unsigned int swz = GET_SWZ(swizzle, comp); in lookup_native_swizzle() 82 if (swz != GET_SWZ(sd->hash, comp)) in lookup_native_swizzle() 123 unsigned int swz = GET_SWZ(reg.Swizzle, j); in r300_swizzle_is_native() 136 if (GET_SWZ(reg.Swizzle, j) != RC_SWIZZLE_UNUSED) in r300_swizzle_is_native() 169 swz = GET_SWZ(src.Swizzle, comp); in r300_swizzle_split() 172 if (swz == GET_SWZ(sd->hash, comp)) { in r300_swizzle_split() 231 unsigned int swz = GET_SWZ(swizzle, 0); in r300FPTranslateAlphaSwizzle()
|
D | r3xx_vertprog.c | 150 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src() 151 t_swizzle(GET_SWZ(src->Swizzle, 1)), in t_src() 152 t_swizzle(GET_SWZ(src->Swizzle, 2)), in t_src() 153 t_swizzle(GET_SWZ(src->Swizzle, 3)), in t_src() 254 …inst[1] = PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizz… in ei_lit() 255 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 3)), // W in ei_lit() 257 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 1)), // Y in ei_lit() 261 …inst[2] = PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizz… in ei_lit() 262 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 3)), // W in ei_lit() 264 t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 0)), // X in ei_lit() [all …]
|
D | r500_fragprog_emit.c | 169 t |= fix_hw_swizzle(GET_SWZ(inst->RGB.Arg[arg].Swizzle, comp)) << (3*comp + 2); in translate_arg_rgb() 177 t |= fix_hw_swizzle(GET_SWZ(inst->Alpha.Arg[i].Swizzle, 0)) << 2; in translate_arg_alpha() 366 swiz |= (GET_SWZ(swizzle, i) & 0x3) << i*2; in translate_strq_swizzle() 424 | (GET_SWZ(inst->TexSwizzle, 0) << 24) in emit_tex() 425 | (GET_SWZ(inst->TexSwizzle, 1) << 26) in emit_tex() 426 | (GET_SWZ(inst->TexSwizzle, 2) << 28) in emit_tex() 427 | (GET_SWZ(inst->TexSwizzle, 3) << 30) in emit_tex()
|
D | radeon_program_print.c | 190 rc_swizzle swz = GET_SWZ(swizzle, comp); in rc_print_swizzle() 413 rc_swizzle_char(GET_SWZ(inst->RGB.Arg[arg].Swizzle, 0)), in rc_print_pair_instruction() 414 rc_swizzle_char(GET_SWZ(inst->RGB.Arg[arg].Swizzle, 1)), in rc_print_pair_instruction() 415 rc_swizzle_char(GET_SWZ(inst->RGB.Arg[arg].Swizzle, 2)), in rc_print_pair_instruction() 448 rc_swizzle_char(GET_SWZ(inst->Alpha.Arg[arg].Swizzle, 0)), abs); in rc_print_pair_instruction()
|
D | r500_fragprog.c | 100 if (GET_SWZ(inst_if->U.I.SrcReg[0].Swizzle, 0) == RC_SWIZZLE_X) { in r500_transform_IF() 202 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native() 226 unsigned int swz = GET_SWZ(reg.Swizzle, i); in r500_swizzle_is_native() 250 unsigned int swz = GET_SWZ(src.Swizzle, i); in r500_swizzle_split()
|
D | radeon_pair_translate.c | 139 unsigned int swz = GET_SWZ(src.Swizzle, j); in src_uses() 226 unsigned int swz = GET_SWZ(inst->SrcReg[i].Swizzle, j); in set_pair_instruction() 256 swz = GET_SWZ(inst->SrcReg[i].Swizzle, 3); in set_pair_instruction()
|
D | radeon_program_pair.c | 179 GET_SWZ(pair->Alpha.Arg[i].Swizzle, 0), in rc_pair_foreach_source_that_alpha_reads() 199 swz = GET_SWZ(pair->RGB.Arg[i].Swizzle, chan); in rc_pair_foreach_source_that_rgb_reads()
|
D | radeon_optimize.c | 204 unsigned int swz = GET_SWZ(src.Swizzle, chan); in is_src_uniform_constant() 340 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) <= 3) in constant_folding() 362 unsigned int swz = GET_SWZ(newsrc.Swizzle, chan); in constant_folding() 440 unsigned int swz = GET_SWZ(src.Swizzle, chan); in src_has_const_swz() 659 swz = GET_SWZ(inst_add->U.I.SrcReg[0].Swizzle, i); in peephole_add_presub_inv() 755 GET_SWZ(inst_mul->U.I.SrcReg[i].Swizzle, j); in peephole_mul_omod()
|
D | radeon_inline_literals.c | 125 swz = GET_SWZ(src_reg->Swizzle, chan); in rc_inline_literals()
|
D | radeon_program_constants.h | 120 #define GET_SWZ(swz, idx) (((swz) >> ((idx)*3)) & 0x7) macro
|
/third_party/mesa3d/src/mesa/drivers/dri/r200/ |
D | r200_vertprog.c | 286 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src() 287 t_swizzle(GET_SWZ(src->Swizzle, 1)), in t_src() 288 t_swizzle(GET_SWZ(src->Swizzle, 2)), in t_src() 289 t_swizzle(GET_SWZ(src->Swizzle, 3)), in t_src() 298 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 299 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 300 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 301 t_swizzle(GET_SWZ(src->Swizzle, 0)), in t_src_scalar() 606 if (GET_SWZ(src[i].Swizzle, j) == SWIZZLE_W) { in r200_translate_vertex_program() 615 if (GET_SWZ(src[i].Swizzle, j) == SWIZZLE_W) { in r200_translate_vertex_program() [all …]
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_sampler_view.c | 321 unsigned s = GET_SWZ(swizzle1, i); in swizzle_swizzle() 327 swz[i] = GET_SWZ(swizzle2, s); in swizzle_swizzle() 476 return ((sv->swizzle_r != GET_SWZ(swizzle, 0)) || in check_sampler_swizzle() 477 (sv->swizzle_g != GET_SWZ(swizzle, 1)) || in check_sampler_swizzle() 478 (sv->swizzle_b != GET_SWZ(swizzle, 2)) || in check_sampler_swizzle() 479 (sv->swizzle_a != GET_SWZ(swizzle, 3))); in check_sampler_swizzle() 615 templ.swizzle_r = GET_SWZ(swizzle, 0); in st_create_texture_sampler_view_from_stobj() 616 templ.swizzle_g = GET_SWZ(swizzle, 1); in st_create_texture_sampler_view_from_stobj() 617 templ.swizzle_b = GET_SWZ(swizzle, 2); in st_create_texture_sampler_view_from_stobj() 618 templ.swizzle_a = GET_SWZ(swizzle, 3); in st_create_texture_sampler_view_from_stobj()
|
D | st_glsl_to_tgsi.cpp | 715 int swz = GET_SWZ(initial_src_swz[j], i); in emit_asm() 916 GLuint src0_swiz = GET_SWZ(src0.swizzle, i); in emit_scalar() 917 GLuint src1_swiz = GET_SWZ(src1.swizzle, i); in emit_scalar() 924 GET_SWZ(src0.swizzle, j) == src0_swiz && in emit_scalar() 925 GET_SWZ(src1.swizzle, j) == src1_swiz) { in emit_scalar() 1505 uint16_t swizzle_x = GET_SWZ(swz_op->swizzle, 0); in visit_expression() 1516 uint16_t swizzle_x = GET_SWZ(op[2].swizzle, 0); in visit_expression() 2342 op[0].swizzle = MAKE_SWIZZLE4(GET_SWZ(orig_swz, 0), GET_SWZ(orig_swz, 0), in visit_expression() 2343 GET_SWZ(orig_swz, 1), GET_SWZ(orig_swz, 1)); in visit_expression() 2366 op[0].swizzle = MAKE_SWIZZLE4(GET_SWZ(orig_swz, 2), in visit_expression() [all …]
|
/third_party/mesa3d/src/mesa/program/ |
D | prog_execute.c | 197 assert(GET_SWZ(source->Swizzle, 0) <= 3); in fetch_vector4() 198 assert(GET_SWZ(source->Swizzle, 1) <= 3); in fetch_vector4() 199 assert(GET_SWZ(source->Swizzle, 2) <= 3); in fetch_vector4() 200 assert(GET_SWZ(source->Swizzle, 3) <= 3); in fetch_vector4() 201 result[0] = src[GET_SWZ(source->Swizzle, 0)]; in fetch_vector4() 202 result[1] = src[GET_SWZ(source->Swizzle, 1)]; in fetch_vector4() 203 result[2] = src[GET_SWZ(source->Swizzle, 2)]; in fetch_vector4() 204 result[3] = src[GET_SWZ(source->Swizzle, 3)]; in fetch_vector4() 253 result[0] = deriv[GET_SWZ(source->Swizzle, 0)]; in fetch_vector4_deriv() 254 result[1] = deriv[GET_SWZ(source->Swizzle, 1)]; in fetch_vector4_deriv() [all …]
|
D | prog_opt_constant_fold.c | 97 data[0] = value[GET_SWZ(r->Swizzle, 0)].f; in get_value() 98 data[1] = value[GET_SWZ(r->Swizzle, 1)].f; in get_value() 99 data[2] = value[GET_SWZ(r->Swizzle, 2)].f; in get_value() 100 data[3] = value[GET_SWZ(r->Swizzle, 3)].f; in get_value()
|
D | prog_optimize.c | 107 const GLuint coord = GET_SWZ(inst->SrcReg[arg].Swizzle, comp); in get_src_arg_mask() 133 src_comp = GET_SWZ(mov->SrcReg[0].Swizzle, comp); in get_dst_mask_for_mov() 150 return GET_SWZ(swz,0) <= SWIZZLE_W && in is_swizzle_regular() 151 GET_SWZ(swz,1) <= SWIZZLE_W && in is_swizzle_regular() 152 GET_SWZ(swz,2) <= SWIZZLE_W && in is_swizzle_regular() 153 GET_SWZ(swz,3) <= SWIZZLE_W; in is_swizzle_regular() 277 const GLuint swz = GET_SWZ(inst->SrcReg[j].Swizzle, comp); in _mesa_remove_dead_code_global() 525 GET_SWZ(inst2->SrcReg[arg].Swizzle, comp); in _mesa_remove_extra_move_use() 526 const GLuint s = GET_SWZ(mov->SrcReg[0].Swizzle, inst2_swz); in _mesa_remove_extra_move_use() 652 const GLuint src_comp = GET_SWZ(mov->SrcReg[0].Swizzle, dst_comp); in _mesa_merge_mov_into_inst() [all …]
|
D | ir_to_mesa.cpp | 456 GLuint src0_swiz = GET_SWZ(src0.swizzle, i); in emit_scalar() 457 GLuint src1_swiz = GET_SWZ(src1.swizzle, i); in emit_scalar() 464 GET_SWZ(src0.swizzle, j) == src0_swiz && in emit_scalar() 465 GET_SWZ(src1.swizzle, j) == src1_swiz) { in emit_scalar() 1387 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.x); in visit() 1390 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.y); in visit() 1393 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.z); in visit() 1396 swizzle[i] = GET_SWZ(src.swizzle, ir->mask.w); in visit() 1757 first_enabled_chan = GET_SWZ(r.swizzle, i); in visit() 1770 swizzles[i] = GET_SWZ(r.swizzle, rhs_chan++); in visit() [all …]
|
D | prog_print.c | 461 s[i++] = swz[GET_SWZ(swizzle, 0)]; in _mesa_swizzle_string() 469 s[i++] = swz[GET_SWZ(swizzle, 1)]; in _mesa_swizzle_string() 477 s[i++] = swz[GET_SWZ(swizzle, 2)]; in _mesa_swizzle_string() 485 s[i++] = swz[GET_SWZ(swizzle, 3)]; in _mesa_swizzle_string()
|
D | prog_parameter_layout.c | 45 const unsigned s = GET_SWZ(applied, i); in _mesa_combine_swizzles() 47 swiz |= ((s <= SWIZZLE_W) ? GET_SWZ(base, s) : s) << (i * 3); in _mesa_combine_swizzles()
|
/third_party/mesa3d/src/mesa/swrast/ |
D | s_fragprog.c | 67 colorOut[0] = vector[GET_SWZ(swizzle, 0)]; in swizzle_texel() 68 colorOut[1] = vector[GET_SWZ(swizzle, 1)]; in swizzle_texel() 69 colorOut[2] = vector[GET_SWZ(swizzle, 2)]; in swizzle_texel() 70 colorOut[3] = vector[GET_SWZ(swizzle, 3)]; in swizzle_texel()
|
/third_party/mesa3d/src/compiler/glsl/ |
D | ir_builder.cpp | 92 GET_SWZ(swizzle, 0), in swizzle() 93 GET_SWZ(swizzle, 1), in swizzle() 94 GET_SWZ(swizzle, 2), in swizzle() 95 GET_SWZ(swizzle, 3), in swizzle()
|
/third_party/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
D | radeon_compiler_regalloc_tests.c | 72 if (GET_SWZ(inst->U.I.SrcReg[0].Swizzle, 0) in test_runner_rc_regalloc()
|
/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_wm_surface_state.c | 437 return MAKE_SWIZZLE4(swizzles[GET_SWZ(t->Attrib._Swizzle, 0)], in brw_get_texture_swizzle() 438 swizzles[GET_SWZ(t->Attrib._Swizzle, 1)], in brw_get_texture_swizzle() 439 swizzles[GET_SWZ(t->Attrib._Swizzle, 2)], in brw_get_texture_swizzle() 440 swizzles[GET_SWZ(t->Attrib._Swizzle, 3)]); in brw_get_texture_swizzle() 595 .r = swizzle_to_scs(GET_SWZ(swizzle, 0), need_green_to_blue), in brw_update_texture_surface() 596 .g = swizzle_to_scs(GET_SWZ(swizzle, 1), need_green_to_blue), in brw_update_texture_surface() 597 .b = swizzle_to_scs(GET_SWZ(swizzle, 2), need_green_to_blue), in brw_update_texture_surface() 598 .a = swizzle_to_scs(GET_SWZ(swizzle, 3), need_green_to_blue), in brw_update_texture_surface()
|