Lines Matching defs:sources
51 const fs_reg *src, unsigned sources)
55 this->src = new fs_reg[MAX2(sources, 3)];
56 for (unsigned i = 0; i < sources; i++)
61 this->sources = sources;
128 const fs_reg src[], unsigned sources)
130 init(opcode, exec_width, dst, src, sources);
137 this->src = new fs_reg[MAX2(that.sources, 3)];
139 for (unsigned i = 0; i < that.sources; i++)
151 if (this->sources != num_sources) {
154 for (unsigned i = 0; i < MIN2(this->sources, num_sources); ++i)
159 this->sources = num_sources;
291 * Returns true if this instruction's sources and destinations cannot
296 * sources are dereferenced before writing of the destination starts
309 * GRF sources and the destination.
375 for (int i = 0; i < sources; i++) {
402 for (int i = 0; i < this->sources; i++) {
443 for (unsigned i = 0; i < sources; i++) {
1008 unreachable("MRF registers are not allowed as sources");
1059 for (int i = 0; i < sources; i++) {
1271 * sources without negation.
1462 /* gl_SampleMaskIn[] comes from two sources: the input coverage mask,
1555 fs_reg *sources = ralloc_array(mem_ctx, fs_reg, 2);
1556 sources[0] = fs_reg(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD));
1557 sources[1] = this->final_gs_vertex_count;
1558 abld.LOAD_PAYLOAD(payload, sources, 2, 2);
1582 for (unsigned int i = 0; i < inst->sources; i++) {
1721 for (int i = 0; i < inst->sources; i++) {
1751 for (int i = 0; i < inst->sources; i++) {
1904 for (int i = 0; i < inst->sources; i++) {
1919 for (int i = 0; i < inst->sources; i++) {
1974 for (int i = 0; i < inst->sources; i++) {
2012 for (int i = 0; i < inst->sources; i++) {
2041 for (int i = 0; i < inst->sources; i++) {
2205 for (int i = 0 ; i < inst->sources; i++) {
2434 for (int i = 0; i < inst->sources; i++) {
2702 inst->sources = 1;
2718 inst->sources = 1;
2727 inst->sources = 1;
2733 inst->sources = 1;
2868 /* Check that the FB write sources are fully initialized by the single
2918 /* Rewrite instruction sources. */
2919 for (int i = 0; i < inst->sources; i++) {
3212 for (int i = 0; i < scan_inst->sources; i++) {
3339 inst->sources = 1;
3475 /* Clear out any MRF move records whose sources got overwritten. */
3539 for (int i = 0; i < inst->sources; i++) {
3798 * non-header sources are unpacked as:
3812 assert(inst->header_size + 4 <= inst->sources);
3838 /* The COMPR4 code took care of the first 4 sources. We'll let
3839 * the regular path handle any remaining sources. Yes, we are
3846 for (uint8_t i = inst->header_size; i < inst->sources; i++) {
4192 fs_reg sources[15];
4281 sources[0] = header;
4282 sources[1] = horiz_offset(header, 8);
4290 sources[length] = fs_reg(VGRF, bld.shader->alloc.allocate(1));
4292 .MOV(sources[length],
4303 setup_color_payload(ubld, key, &sources[length], tmp, 1);
4315 sources[length] = fs_reg(VGRF, bld.shader->alloc.allocate(1),
4329 .MOV(horiz_offset(retype(sources[length], BRW_REGISTER_TYPE_UW),
4337 setup_color_payload(bld, key, &sources[length], color0, components);
4341 setup_color_payload(bld, key, &sources[length], color1, components);
4346 sources[length] = src_depth;
4351 sources[length] = dst_depth;
4365 sources[length] = bld.vgrf(BRW_REGISTER_TYPE_UD);
4367 .MOV(retype(sources[length], BRW_REGISTER_TYPE_UB),
4376 load = bld.LOAD_PAYLOAD(payload, sources, length, payload_header_size);
4385 sources, length, payload_header_size);
4726 fs_reg sources[MAX_SAMPLER_MESSAGE_SIZE];
4727 for (unsigned i = 0; i < ARRAY_SIZE(sources); i++)
4728 sources[i] = bld.vgrf(BRW_REGISTER_TYPE_F);
4747 fs_reg header = retype(sources[0], BRW_REGISTER_TYPE_UD);
4811 bld.MOV(sources[length], shadow_c);
4825 bld.MOV(sources[length], lod);
4836 bld.MOV(sources[length++], offset(coordinate, bld, i));
4842 bld.MOV(sources[length++], offset(lod, bld, i));
4843 bld.MOV(sources[length++], offset(lod2, bld, i));
4850 bld.MOV(retype(sources[length], BRW_REGISTER_TYPE_UD), lod);
4855 bld.MOV(retype(sources[length], BRW_REGISTER_TYPE_UD), brw_imm_ud(0));
4862 bld.MOV(retype(sources[length++], BRW_REGISTER_TYPE_D), coordinate);
4866 bld.MOV(retype(sources[length], BRW_REGISTER_TYPE_D),
4869 sources[length] = brw_imm_d(0);
4877 bld.MOV(retype(sources[length], BRW_REGISTER_TYPE_D), lod);
4882 bld.MOV(retype(sources[length++], BRW_REGISTER_TYPE_D),
4895 bld.MOV(retype(sources[length], BRW_REGISTER_TYPE_UD), sample_index);
4901 bld.MOV(retype(sources[length], BRW_REGISTER_TYPE_UD), mcs);
4908 bld.MOV(retype(sources[length], BRW_REGISTER_TYPE_UD),
4920 bld.MOV(retype(sources[length++], BRW_REGISTER_TYPE_D),
4928 bld.MOV(sources[length++], offset(coordinate, bld, i));
4931 bld.MOV(retype(sources[length++], BRW_REGISTER_TYPE_D),
4935 bld.MOV(sources[length++], offset(coordinate, bld, 2));
4946 bld.MOV(sources[length++], offset(coordinate, bld, i));
4950 /* Account for all of the missing coordinate sources */
4955 bld.MOV(sources[length++], min_lod);
4966 bld.LOAD_PAYLOAD(src_payload, sources, length, header_size);
5409 fs_reg sources[5];
5411 sources[0] = addr;
5414 sources[1 + i] = offset(src, bld, i);
5417 bld.LOAD_PAYLOAD(payload, sources, 1 + src_comps, 0);
5544 inst->mlen = inst->sources * inst->exec_size / 8;
5546 if (inst->sources > 1) {
5726 for (int i = 0; i < inst->sources; i++) {
5749 for (int i = 0; i < inst->sources; i++) {
5789 for (unsigned i = 0; i < inst->sources; i++)
5813 for (unsigned i = 0; i < inst->sources; i++) {
5847 for (unsigned i = 0; i < inst->sources; i++) {
6280 * "2.When the destination requires two registers and the sources are
6281 * indirect, the sources must use 1x1 regioning mode.
6304 for (unsigned i = 0; i < inst->sources; i++)
6397 for (unsigned i = 0; i < inst->sources; i++) {
6564 * transform the sources and destination and emit the lowered
6569 for (unsigned j = 0; j < inst->sources; j++)
6730 for (int i = 0; i < inst->sources; i++) {
6839 if (i < inst->sources - 1 && inst->src[i + 1].file != BAD_FILE)
7187 * having, for instance, both sources be the constant 0. This little pass