cso->line_stipple_enable = state->line_stipple_enable;
cso->poly_stipple_enable = state->poly_stipple_enable;
+ if (state->clip_plane_enable != 0)
+ cso->num_clip_plane_consts = util_logbase2(state->clip_plane_enable) + 1;
+ else
+ cso->num_clip_plane_consts = 0;
+
float line_width = get_line_width(state);
iris_pack_command(GENX(3DSTATE_SF), cso->sf, sf) {
line.LineStippleRepeatCount = line_stipple_factor;
}
- if (state->clip_plane_enable != 0)
- cso->num_clip_plane_consts = util_logbase2(state->clip_plane_enable) + 1;
-
return cso;
}