| /xsrc/external/mit/MesaLib/dist/src/freedreno/ir3/ |
| H A D | ir3_nir_lower_load_barycentric_at_offset.c | 48 #define chan(var, c) nir_channel(b, var, c) macro 58 nir_vec3(b, nir_fmul(b, chan(ij, 0), s), nir_fmul(b, chan(ij, 1), s), s); 68 x = nir_ffma(b, chan(off, 0), chan(foo, 0), chan(sij, 0)); 69 y = nir_ffma(b, chan(off, 0), chan(foo, 1), chan(sij, 1)); 70 z = nir_ffma(b, chan(of [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a2xx/ |
| H A D | ir2_nir_lower_scalar.c | 52 nir_alu_instr *chan = local in function:lower_reduction 54 nir_alu_ssa_dest_init(chan, 1, instr->dest.dest.ssa.bit_size); 55 nir_alu_src_copy(&chan->src[0], &instr->src[0], chan); 56 chan->src[0].swizzle[0] = chan->src[0].swizzle[i]; 59 nir_alu_src_copy(&chan->src[1], &instr->src[1], chan); 60 chan->src[1].swizzle[0] = chan 115 unsigned chan; local in function:lower_scalar [all...] |
| /xsrc/external/mit/MesaLib/dist/src/amd/llvm/ |
| H A D | ac_llvm_cull.c | 138 for (unsigned chan = 0; chan < (options->cull_view_near_z || local in function:cull_bbox 139 options->cull_view_far_z ? 3 : 2); chan++) { 141 bbox_min[chan] = ac_build_fmin(ctx, pos[0][chan], pos[1][chan]); 142 bbox_max[chan] = ac_build_fmax(ctx, pos[0][chan], pos[1][chan]); 145 bbox_min[chan] 152 for (unsigned chan = 0; chan < 3; chan++) { local in function:cull_bbox 181 for (unsigned chan = 0; chan < 2; chan++) { local in function:cull_bbox [all...] |
| H A D | ac_nir_to_llvm.h | 45 static inline unsigned ac_llvm_reg_index_soa(unsigned index, unsigned chan) argument 47 return (index * 4) + chan;
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/ |
| H A D | radeon_dataflow_swizzles.c | 48 for(unsigned int chan = 0; chan < 4; ++chan) { local in function:rewrite_source 49 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) != RC_SWIZZLE_UNUSED) 50 usemask |= 1 << chan; 68 for(unsigned int chan = 0; chan < 4; ++chan) { local in function:rewrite_source 69 if (!GET_BIT(split.Phase[phase], chan)) 70 SET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan, RC_SWIZZLE_UNUSE 90 for(unsigned int chan = 0; chan < 4; ++chan) { local in function:rewrite_source 104 unsigned new_swizzle, chan, swz0, swz1, swz2, swz3, found_swizzle, swz; local in function:try_rewrite_constant [all...] |
| H A D | radeon_inline_literals.c | 110 unsigned swz, chan; local in function:rc_inline_literals 123 for (chan = 0; chan < 4; chan++) { 125 swz = GET_SWZ(src_reg->Swizzle, chan); 150 SET_SWZ(new_swizzle, chan, RC_SWIZZLE_W); 152 negate_mask |= (1 << chan);
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/ |
| H A D | radeon_dataflow_swizzles.c | 48 for(unsigned int chan = 0; chan < 4; ++chan) { local in function:rewrite_source 49 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) != RC_SWIZZLE_UNUSED) 50 usemask |= 1 << chan; 68 for(unsigned int chan = 0; chan < 4; ++chan) { local in function:rewrite_source 69 if (!GET_BIT(split.Phase[phase], chan)) 70 SET_SWZ(mov->U.I.SrcReg[0].Swizzle, chan, RC_SWIZZLE_UNUSE 90 for(unsigned int chan = 0; chan < 4; ++chan) { local in function:rewrite_source 104 unsigned new_swizzle, chan, swz0, swz1, swz2, swz3, found_swizzle, swz; local in function:try_rewrite_constant [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/gallivm/ |
| H A D | lp_bld_tgsi_info.c | 64 unsigned chan) 68 unsigned swizzle = tgsi_util_get_src_register_swizzle(src, chan); 111 unsigned chan; local in function:analyse_tex 172 for (chan = 0; chan < 4; ++chan) { 173 struct lp_tgsi_channel_info *chan_info = &tex_info->coord[chan]; 174 if (readmask & (1 << chan)) { 175 analyse_src(ctx, chan_info, &inst->Src[0].Register, chan); 207 unsigned chan; local in function:analyse_sample 61 analyse_src(struct analysis_context * ctx,struct lp_tgsi_channel_info * chan_info,const struct tgsi_src_register * src,unsigned chan) argument 292 unsigned chan; local in function:analyse_instruction 466 unsigned chan; local in function:dump_info 534 unsigned chan; local in function:lp_build_tgsi_info [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/ |
| H A D | lp_bld_tgsi_info.c | 65 unsigned chan) 69 unsigned swizzle = tgsi_util_get_src_register_swizzle(src, chan); 112 unsigned chan; local in function:analyse_tex 173 for (chan = 0; chan < 4; ++chan) { 174 struct lp_tgsi_channel_info *chan_info = &tex_info->coord[chan]; 175 if (readmask & (1 << chan)) { 176 analyse_src(ctx, chan_info, &inst->Src[0].Register, chan); 208 unsigned chan; local in function:analyse_sample 62 analyse_src(struct analysis_context * ctx,struct lp_tgsi_channel_info * chan_info,const struct tgsi_src_register * src,unsigned chan) argument 293 unsigned chan; local in function:analyse_instruction 474 unsigned chan; local in function:dump_info 542 unsigned chan; local in function:lp_build_tgsi_info [all...] |
| H A D | lp_bld_format_soa.c | 110 unsigned chan; local in function:lp_build_format_swizzle_soa 111 for (chan = 0; chan < 4; ++chan) { 112 enum pipe_swizzle swizzle = format_desc->swizzle[chan]; 113 swizzled_out[chan] = lp_build_swizzle_soa_channel(bld, unswizzled, swizzle); 311 unsigned chan; local in function:lp_build_unpack_rgba_soa 323 for (chan = 0; chan < format_desc->nr_channels; ++chan) { 362 unsigned chan; local in function:lp_build_rgba8_to_fi32_soa 760 unsigned chan; local in function:lp_build_fetch_rgba_soa 894 LLVMValueRef chan = NULL; local in function:lp_build_insert_soa_chan 988 unsigned chan; local in function:lp_build_pack_rgba_soa [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/freedreno/ir3/ |
| H A D | ir3_nir_lower_load_barycentric_at_offset.c | 46 #define chan(var, c) nir_channel(b, var, c) macro 56 nir_fmul(b, chan(ij, 0), s), 57 nir_fmul(b, chan(ij, 1), s), 65 x = nir_ffma(b, chan(off, 0), chan(foo, 0), chan(sij, 0)); 66 y = nir_ffma(b, chan(off, 0), chan(foo, 1), chan(sij, 1)); 67 z = nir_ffma(b, chan(of [all...] |
| /xsrc/external/mit/MesaLib/dist/src/amd/common/ |
| H A D | ac_nir_cull.c | 98 for (unsigned chan = 0; chan < 2; ++chan) { local in function:cull_bbox 99 bbox_min[chan] = nir_fmin(b, pos[0][chan], nir_fmin(b, pos[1][chan], pos[2][chan])); 100 bbox_max[chan] = nir_fmax(b, pos[0][chan], nir_fmax(b, pos[1][chan], po 108 for (unsigned chan = 0; chan < 2; ++chan) { local in function:cull_bbox 122 for (unsigned chan = 0; chan < 2; ++chan) { local in function:cull_bbox [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sfn/ |
| H A D | sfn_value.cpp | 47 Value::Value(Type type, uint32_t chan): argument 49 m_chan(chan) 66 void Value::set_chan(uint32_t chan) argument 68 m_chan = chan; 93 (sel() == lhs.sel() && chan() < lhs.chan()); 97 LiteralValue::LiteralValue(float value, uint32_t chan): argument 98 Value(Value::literal, chan) 104 LiteralValue::LiteralValue(uint32_t value, uint32_t chan): argument 105 Value(Value::literal, chan) 110 LiteralValue(int value,uint32_t chan) argument 156 InlineConstValue(int value,int chan) argument 197 UniformValue(uint32_t sel,uint32_t chan,uint32_t kcache_bank) argument 204 UniformValue(uint32_t sel,uint32_t chan,PValue addr) argument [all...] |
| H A D | sfn_value_gpr.cpp | 37 GPRValue::GPRValue(uint32_t sel, uint32_t chan, int base_offset): argument 38 Value(Value::gpr, chan), 47 GPRValue::GPRValue(uint32_t sel, uint32_t chan): argument 48 Value(Value::gpr, chan), 66 os << '.' << component_names[chan()]; 74 chan() == rhs.chan()); 81 os << '.' << component_names[chan()]; 171 os << (m_elms[i] ? component_names[m_elms[i]->chan() < 8 ? m_elms[i]->chan() 244 unsigned chan = m_value->chan(); local in function:r600::GPRArrayValue::record_read 255 unsigned chan = m_value->chan(); local in function:r600::GPRArrayValue::record_write [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/panfrost/ |
| H A D | pan_format.c | 143 struct util_format_channel_description chan = desc->channel[0]; local in function:panfrost_find_format 149 chan = desc->channel[c]; 215 switch (chan.type) { 220 format |= panfrost_translate_channel_width(chan.size); 223 format |= panfrost_translate_channel_type(chan.type, chan.size, chan.normalized); 231 format |= panfrost_translate_channel_type(chan.type, chan.size, chan [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/main/ |
| H A D | format_info.py | 76 for chan in fmat.channels: 77 if chan.type == 'x' and len(fmat.channels) > 1: 79 elif chan.name == 's' and fmat.has_channel('z'): 82 channel = chan 135 for chan in fmat.channels: 136 if chan.name == chan_name: 137 return chan.size 200 chan = fmat.array_element() variable 201 norm = chan.norm or chan [all...] |
| /xsrc/external/mit/MesaLib/dist/src/mesa/main/ |
| H A D | format_info.py | 74 for chan in fmat.channels: 75 if chan.type == 'x' and len(fmat.channels) > 1: 77 elif chan.name == 's' and fmat.has_channel('z'): 80 channel = chan 135 for chan in fmat.channels: 136 if chan.name == chan_name: 137 return chan.size 204 chan = fmat.array_element() variable 205 norm = chan.norm or chan [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/vc4/ |
| H A D | vc4_nir_lower_io.c | 56 vc4_nir_unpack_8i(nir_builder *b, nir_ssa_def *src, unsigned chan) argument 60 nir_imm_int(b, 8 * chan), 66 vc4_nir_unpack_16i(nir_builder *b, nir_ssa_def *src, unsigned chan) argument 70 nir_imm_int(b, 16 * chan), 76 vc4_nir_unpack_16u(nir_builder *b, nir_ssa_def *src, unsigned chan) argument 78 if (chan == 0) { 86 vc4_nir_unpack_8f(nir_builder *b, nir_ssa_def *src, unsigned chan) argument 88 return nir_channel(b, nir_unpack_unorm_4x8(b, src), chan); 98 const struct util_format_channel_description *chan = local in function:vc4_nir_get_vattr_channel_vpm 104 } else if (chan [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/vc4/ |
| H A D | vc4_nir_lower_io.c | 57 vc4_nir_unpack_8i(nir_builder *b, nir_ssa_def *src, unsigned chan) argument 61 nir_imm_int(b, 8 * chan), 67 vc4_nir_unpack_16i(nir_builder *b, nir_ssa_def *src, unsigned chan) argument 71 nir_imm_int(b, 16 * chan), 77 vc4_nir_unpack_16u(nir_builder *b, nir_ssa_def *src, unsigned chan) argument 79 if (chan == 0) { 87 vc4_nir_unpack_8f(nir_builder *b, nir_ssa_def *src, unsigned chan) argument 89 return nir_channel(b, nir_unpack_unorm_4x8(b, src), chan); 99 const struct util_format_channel_description *chan = local in function:vc4_nir_get_vattr_channel_vpm 105 } else if (chan [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r600/sb/ |
| H A D | sb_bc_finalize.cpp | 321 assert(fdst.chan() == slot || slot == SLOT_TRANS); 326 n->bc.dst_chan = d ? fdst.chan() : slot < SLOT_TRANS ? slot : 0; 387 src.chan = sc.chan(); 407 src.chan = gpr.chan(); 412 src.chan = v->gpr.chan(); 418 src.chan = 0; 432 src.chan 492 for (unsigned chan = 0; chan < 4; ++chan) { local in function:r600_sb::bc_finalizer::copy_fetch_src 598 for (unsigned chan = 0; chan < src_count; ++chan) { local in function:r600_sb::bc_finalizer::finalize_fetch 658 for (unsigned chan = 0; chan < 4; ++chan) { local in function:r600_sb::bc_finalizer::finalize_fetch 722 for (unsigned chan = 0; chan < 4; ++chan) { local in function:r600_sb::bc_finalizer::finalize_cf 782 for (unsigned chan = 0; chan < 4; ++chan) { local in function:r600_sb::bc_finalizer::finalize_cf 822 for (unsigned chan = 0; chan < 4; ++chan) { local in function:r600_sb::bc_finalizer::finalize_cf 859 unsigned chan = v->select.chan(); local in function:r600_sb::bc_finalizer::translate_kcache [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/ |
| H A D | sb_bc_finalize.cpp | 321 assert(fdst.chan() == slot || slot == SLOT_TRANS); 326 n->bc.dst_chan = d ? fdst.chan() : slot < SLOT_TRANS ? slot : 0; 387 src.chan = sc.chan(); 407 src.chan = gpr.chan(); 412 src.chan = v->gpr.chan(); 418 src.chan = 0; 432 src.chan 492 for (unsigned chan = 0; chan < 4; ++chan) { local in function:r600_sb::bc_finalizer::copy_fetch_src 598 for (unsigned chan = 0; chan < src_count; ++chan) { local in function:r600_sb::bc_finalizer::finalize_fetch 658 for (unsigned chan = 0; chan < 4; ++chan) { local in function:r600_sb::bc_finalizer::finalize_fetch 722 for (unsigned chan = 0; chan < 4; ++chan) { local in function:r600_sb::bc_finalizer::finalize_cf 782 for (unsigned chan = 0; chan < 4; ++chan) { local in function:r600_sb::bc_finalizer::finalize_cf 822 for (unsigned chan = 0; chan < 4; ++chan) { local in function:r600_sb::bc_finalizer::finalize_cf 859 unsigned chan = v->select.chan(); local in function:r600_sb::bc_finalizer::translate_kcache [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/amd/common/ |
| H A D | ac_nir_to_llvm.h | 43 static inline unsigned ac_llvm_reg_index_soa(unsigned index, unsigned chan) argument 45 return (index * 4) + chan;
|
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/ |
| H A D | nir_lower_alu_to_scalar.c | 50 nir_alu_instr *chan = nir_alu_instr_create(builder->shader, chan_op); local in function:lower_reduction 51 nir_alu_ssa_dest_init(chan, 1, instr->dest.dest.ssa.bit_size); 52 nir_alu_src_copy(&chan->src[0], &instr->src[0], chan); 53 chan->src[0].swizzle[0] = chan->src[0].swizzle[i]; 56 nir_alu_src_copy(&chan->src[1], &instr->src[1], chan); 57 chan->src[1].swizzle[0] = chan 80 unsigned i, chan; local in function:lower_alu_instr_scalar [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/softpipe/ |
| H A D | sp_fs_exec.c | 81 uint chan; local in function:setup_pos_vector 95 for (chan = 2; chan < 4; chan++) { 96 const float dadx = coef->dadx[chan]; 97 const float dady = coef->dady[chan]; 98 const float a0 = coef->a0[chan] + dadx * x + dady * y; 99 quadpos->xyzw[chan].f[0] = a0; 100 quadpos->xyzw[chan].f[1] = a0 + dadx; 101 quadpos->xyzw[chan] [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/softpipe/ |
| H A D | sp_fs_exec.c | 81 uint chan; local in function:setup_pos_vector 95 for (chan = 2; chan < 4; chan++) { 96 const float dadx = coef->dadx[chan]; 97 const float dady = coef->dady[chan]; 98 const float a0 = coef->a0[chan] + dadx * x + dady * y; 99 quadpos->xyzw[chan].f[0] = a0; 100 quadpos->xyzw[chan].f[1] = a0 + dadx; 101 quadpos->xyzw[chan] [all...] |