Lines Matching refs:coordinate
750 fs_visitor::emit_texture_gen4(ir_texture *ir, fs_reg dst, fs_reg coordinate,
762 for (int i = 0; i < ir->coordinate->type->vector_elements; i++) {
763 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen + i), coordinate);
764 coordinate.reg_offset++;
785 for (int i = 0; i < ir->coordinate->type->vector_elements; i++) {
786 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen + i), coordinate);
787 coordinate.reg_offset++;
794 for (int i = 0; i < ir->coordinate->type->vector_elements; i++) {
795 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen + i), coordinate);
796 coordinate.reg_offset++;
799 mlen += MAX2(ir->coordinate->type->vector_elements, 2);
838 for (int i = 0; i < ir->coordinate->type->vector_elements; i++) {
839 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen + i * 2, coordinate.type),
840 coordinate);
841 coordinate.reg_offset++;
847 for (int i = ir->coordinate->type->vector_elements; i < 3; i++) {
919 fs_visitor::emit_texture_gen5(ir_texture *ir, fs_reg dst, fs_reg coordinate,
927 ir->coordinate ? ir->coordinate->type->vector_elements : 0;
933 * coordinate, and don't put the offset in the header.
938 fs_reg(MRF, base_mrf + mlen + i * reg_width, coordinate.type),
939 coordinate,
941 coordinate.reg_offset++;
955 fs_reg(MRF, base_mrf + mlen + i * reg_width, coordinate.type),
956 coordinate);
957 coordinate.reg_offset++;
1039 fs_visitor::emit_texture_gen7(ir_texture *ir, fs_reg dst, fs_reg coordinate,
1078 /* Load dPdx and the coordinate together:
1081 for (int i = 0; i < ir->coordinate->type->vector_elements; i++) {
1082 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen), coordinate);
1083 coordinate.reg_offset++;
1104 * coordinate, and don't put the offset in the header.
1117 fs_reg(MRF, base_mrf + mlen, BRW_REGISTER_TYPE_D), coordinate, offsets[0]);
1118 coordinate.reg_offset++;
1124 for (int i = 1; i < ir->coordinate->type->vector_elements; i++) {
1126 fs_reg(MRF, base_mrf + mlen, BRW_REGISTER_TYPE_D), coordinate, offsets[i]);
1127 coordinate.reg_offset++;
1133 /* Set up the coordinate (except for cases where it was done above) */
1135 for (int i = 0; i < ir->coordinate->type->vector_elements; i++) {
1136 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen), coordinate);
1137 coordinate.reg_offset++;
1166 * Returns the fs_reg containing the texture coordinate (as opposed to
1174 if (!ir->coordinate)
1177 ir->coordinate->accept(this);
1178 fs_reg coordinate = this->result;
1226 fs_reg dst = fs_reg(this, ir->coordinate->type);
1227 fs_reg src = coordinate;
1228 coordinate = dst;
1244 fs_reg chan = coordinate;
1266 if (ir->coordinate && needs_gl_clamp) {
1268 i < MIN2(ir->coordinate->type->vector_elements, 3); i++) {
1270 fs_reg chan = coordinate;
1278 return coordinate;
1296 fs_reg coordinate = emit_texcoord(ir, sampler, texunit);
1333 inst = emit_texture_gen7(ir, dst, coordinate, shadow_comparitor,
1336 inst = emit_texture_gen5(ir, dst, coordinate, shadow_comparitor,
1339 inst = emit_texture_gen4(ir, dst, coordinate, shadow_comparitor,