Lines Matching full:reg
45 c->reg.R0 = retype(brw_vec8_grf(i, 0), BRW_REGISTER_TYPE_UD); i++; in brw_clip_line_alloc_regs()
48 c->reg.fixed_planes = brw_vec4_grf(i, 0); in brw_clip_line_alloc_regs()
60 c->reg.vertex[j] = brw_vec4_grf(i, 0); in brw_clip_line_alloc_regs()
64 c->reg.t = brw_vec1_grf(i, 0); in brw_clip_line_alloc_regs()
65 c->reg.t0 = brw_vec1_grf(i, 1); in brw_clip_line_alloc_regs()
66 c->reg.t1 = brw_vec1_grf(i, 2); in brw_clip_line_alloc_regs()
67 c->reg.planemask = retype(brw_vec1_grf(i, 3), BRW_REGISTER_TYPE_UD); in brw_clip_line_alloc_regs()
68 c->reg.plane_equation = brw_vec4_grf(i, 4); in brw_clip_line_alloc_regs()
71 c->reg.dp0 = brw_vec1_grf(i, 0); /* fixme - dp4 will clobber r.1,2,3 */ in brw_clip_line_alloc_regs()
72 c->reg.dp1 = brw_vec1_grf(i, 4); in brw_clip_line_alloc_regs()
76 c->reg.fixed_planes = brw_vec8_grf(i, 0); in brw_clip_line_alloc_regs()
80 c->reg.vertex_src_mask = retype(brw_vec1_grf(i, 0), BRW_REGISTER_TYPE_UD); in brw_clip_line_alloc_regs()
81 c->reg.clipdistance_offset = retype(brw_vec1_grf(i, 1), BRW_REGISTER_TYPE_W); in brw_clip_line_alloc_regs()
85 c->reg.ff_sync = retype(brw_vec1_grf(i, 0), BRW_REGISTER_TYPE_UD); in brw_clip_line_alloc_regs()
135 brw_MOV(p, get_addr_reg(vtx0), brw_address(c->reg.vertex[0])); in clip_and_emit_line()
136 brw_MOV(p, get_addr_reg(vtx1), brw_address(c->reg.vertex[1])); in clip_and_emit_line()
137 brw_MOV(p, get_addr_reg(newvtx0), brw_address(c->reg.vertex[2])); in clip_and_emit_line()
138 brw_MOV(p, get_addr_reg(newvtx1), brw_address(c->reg.vertex[3])); in clip_and_emit_line()
143 brw_MOV(p, vec2(c->reg.t0), brw_imm_f(0)); in clip_and_emit_line()
150 brw_AND(p, brw_null_reg(), get_element_ud(c->reg.R0, 2), in clip_and_emit_line()
153 brw_OR(p, c->reg.planemask, c->reg.planemask, brw_imm_ud(0x3f)); in clip_and_emit_line()
160 brw_MOV(p, c->reg.vertex_src_mask, brw_imm_ud(0x3fc0)); in clip_and_emit_line()
164 brw_MOV(p, c->reg.clipdistance_offset, brw_imm_d(clipdist0_offset - 6*sizeof(float))); in clip_and_emit_line()
170 brw_AND(p, v1_null_ud, c->reg.planemask, brw_imm_ud(1)); in clip_and_emit_line()
175 brw_AND(p, v1_null_ud, c->reg.vertex_src_mask, brw_imm_ud(1)); in clip_and_emit_line()
181 brw_ADD(p, get_addr_reg(temp_ptr), get_addr_reg(vtx0), c->reg.clipdistance_offset); in clip_and_emit_line()
182 brw_MOV(p, c->reg.dp0, deref_1f(temp_ptr, 0)); in clip_and_emit_line()
183 brw_ADD(p, get_addr_reg(temp_ptr), get_addr_reg(vtx1), c->reg.clipdistance_offset); in clip_and_emit_line()
184 brw_MOV(p, c->reg.dp1, deref_1f(temp_ptr, 0)); in clip_and_emit_line()
190 brw_MOV(p, c->reg.plane_equation, deref_4f(plane_ptr, 0)); in clip_and_emit_line()
192 brw_MOV(p, c->reg.plane_equation, deref_4b(plane_ptr, 0)); in clip_and_emit_line()
194 brw_DP4(p, vec4(c->reg.dp0), deref_4f(vtx0, hpos_offset), c->reg.plane_equation); in clip_and_emit_line()
195 brw_DP4(p, vec4(c->reg.dp1), deref_4f(vtx1, hpos_offset), c->reg.plane_equation); in clip_and_emit_line()
199 brw_CMP(p, brw_null_reg(), BRW_CONDITIONAL_L, vec1(c->reg.dp1), brw_imm_f(0.0f)); in clip_and_emit_line()
208 brw_CMP(p, vec1(brw_null_reg()), BRW_CONDITIONAL_LE, c->reg.dp0, brw_imm_f(0.0)); in clip_and_emit_line()
216 brw_ADD(p, c->reg.t, c->reg.dp1, negate(c->reg.dp0)); in clip_and_emit_line()
217 brw_math_invert(p, c->reg.t, c->reg.t); in clip_and_emit_line()
218 brw_MUL(p, c->reg.t, c->reg.t, c->reg.dp1); in clip_and_emit_line()
220 brw_CMP(p, vec1(brw_null_reg()), BRW_CONDITIONAL_G, c->reg.t, c->reg.t1 ); in clip_and_emit_line()
221 brw_MOV(p, c->reg.t1, c->reg.t); in clip_and_emit_line()
234 brw_CMP(p, vec1(brw_null_reg()), BRW_CONDITIONAL_L, c->reg.dp0, brw_imm_f(0.0)); in clip_and_emit_line()
239 brw_ADD(p, c->reg.t, c->reg.dp0, negate(c->reg.dp1)); in clip_and_emit_line()
240 brw_math_invert(p, c->reg.t, c->reg.t); in clip_and_emit_line()
241 brw_MUL(p, c->reg.t, c->reg.t, c->reg.dp0); in clip_and_emit_line()
243 brw_CMP(p, vec1(brw_null_reg()), BRW_CONDITIONAL_G, c->reg.t, c->reg.t0 ); in clip_and_emit_line()
244 brw_MOV(p, c->reg.t0, c->reg.t); in clip_and_emit_line()
263 brw_SHR(p, c->reg.planemask, c->reg.planemask, brw_imm_ud(1)); in clip_and_emit_line()
265 brw_SHR(p, c->reg.vertex_src_mask, c->reg.vertex_src_mask, brw_imm_ud(1)); in clip_and_emit_line()
267 brw_ADD(p, c->reg.clipdistance_offset, c->reg.clipdistance_offset, brw_imm_w(sizeof(float))); in clip_and_emit_line()
273 brw_ADD(p, c->reg.t, c->reg.t0, c->reg.t1); in clip_and_emit_line()
274 brw_CMP(p, vec1(brw_null_reg()), BRW_CONDITIONAL_L, c->reg.t, brw_imm_f(1.0)); in clip_and_emit_line()
277 brw_clip_interp_vertex(c, newvtx0, vtx0, vtx1, c->reg.t0, false); in clip_and_emit_line()
278 brw_clip_interp_vertex(c, newvtx1, vtx1, vtx0, c->reg.t1, false); in clip_and_emit_line()