- brw_compute_vue_map(&vue_map, intel, nr_userclip, two_side_color,
- brw->vs.prog_data->outputs_written);
- for (; attr < FRAG_ATTRIB_MAX; attr++) {
- if (!(brw->fragment_program->Base.InputsRead & BITFIELD64_BIT(attr)))
- continue;
-
- if (ctx->Point.PointSprite &&
- attr >= FRAG_ATTRIB_TEX0 && attr <= FRAG_ATTRIB_TEX7 &&
- ctx->Point.CoordReplace[attr - FRAG_ATTRIB_TEX0]) {
- dw10 |= (1 << input_index);
- }
-
- if (attr == FRAG_ATTRIB_PNTC)
- dw10 |= (1 << input_index);
-
- /* The hardware can only do the overrides on 16 overrides at a
- * time, and the other up to 16 have to be lined up so that the
- * input index = the output index. We'll need to do some
- * tweaking to make sure that's the case.
- */
- assert(input_index < 16 || attr == input_index);
-
- attr_overrides[input_index++] =
- get_attr_override(&vue_map, urb_entry_read_offset, attr,
- two_side_color);
+ if ((ctx->Point.SpriteOrigin == GL_LOWER_LEFT) != render_to_fbo) {
+ point_sprite_origin = GEN6_SF_POINT_SPRITE_LOWERLEFT;
+ } else {
+ point_sprite_origin = GEN6_SF_POINT_SPRITE_UPPERLEFT;