.emit = upload_polygon_stipple_offset
};
-/**
- * AA Line parameters
- */
-static void
-upload_aa_line_parameters(struct brw_context *brw)
-{
- struct gl_context *ctx = &brw->ctx;
-
- if (!ctx->Line.SmoothFlag)
- return;
-
- /* Original Gen4 doesn't have 3DSTATE_AA_LINE_PARAMETERS. */
- if (brw->gen == 4 && !brw->is_g4x)
- return;
-
- BEGIN_BATCH(3);
- OUT_BATCH(_3DSTATE_AA_LINE_PARAMETERS << 16 | (3 - 2));
- /* use legacy aa line coverage computation */
- OUT_BATCH(0);
- OUT_BATCH(0);
- ADVANCE_BATCH();
-}
-
-const struct brw_tracked_state brw_aa_line_parameters = {
- .dirty = {
- .mesa = _NEW_LINE,
- .brw = BRW_NEW_CONTEXT,
- },
- .emit = upload_aa_line_parameters
-};
-
/**
* Line stipple packet
*/
ADVANCE_BATCH();
}
+ /* Original Gen4 doesn't have 3DSTATE_AA_LINE_PARAMETERS. */
+ if (!is_965) {
+ BEGIN_BATCH(3);
+ OUT_BATCH(_3DSTATE_AA_LINE_PARAMETERS << 16 | (3 - 2));
+ /* use legacy aa line coverage computation */
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ ADVANCE_BATCH();
+ }
+
const uint32_t _3DSTATE_VF_STATISTICS =
is_965 ? GEN4_3DSTATE_VF_STATISTICS : GM45_3DSTATE_VF_STATISTICS;
BEGIN_BATCH(1);
extern const struct brw_tracked_state brw_fs_samplers;
extern const struct brw_tracked_state brw_gs_unit;
extern const struct brw_tracked_state brw_line_stipple;
-extern const struct brw_tracked_state brw_aa_line_parameters;
extern const struct brw_tracked_state brw_binding_table_pointers;
extern const struct brw_tracked_state brw_depthbuffer;
extern const struct brw_tracked_state brw_polygon_stipple_offset;
&brw_polygon_stipple_offset,
&brw_line_stipple,
- &brw_aa_line_parameters,
&brw_psp_urb_cbs,
&brw_polygon_stipple_offset,
&brw_line_stipple,
- &brw_aa_line_parameters,
&brw_drawing_rect,
&brw_polygon_stipple_offset,
&brw_line_stipple,
- &brw_aa_line_parameters,
&brw_drawing_rect,
&brw_polygon_stipple_offset,
&brw_line_stipple,
- &brw_aa_line_parameters,
&brw_drawing_rect,