mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
i965: Set Line Stipple enable bit in 3DSTATE_SF for Haswell.
Apparently this needs to be the same as in 3DSTATE_WM. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
1b3a199097
commit
b4410ac394
2 changed files with 5 additions and 0 deletions
|
|
@ -1210,6 +1210,8 @@ enum brw_message_target {
|
|||
*/
|
||||
/* GEN7/DW1: */
|
||||
# define GEN7_SF_DEPTH_BUFFER_SURFACE_FORMAT_SHIFT 12
|
||||
/* GEN7/DW2: */
|
||||
# define HSW_SF_LINE_STIPPLE_ENABLE 14
|
||||
|
||||
#define _3DSTATE_SBE 0x781F /* GEN7+ */
|
||||
/* DW1 */
|
||||
|
|
|
|||
|
|
@ -249,6 +249,9 @@ upload_sf_state(struct brw_context *brw)
|
|||
dw2 |= GEN6_SF_LINE_AA_MODE_TRUE;
|
||||
dw2 |= GEN6_SF_LINE_END_CAP_WIDTH_1_0;
|
||||
}
|
||||
if (ctx->Line.StippleFlag && intel->is_haswell) {
|
||||
dw2 |= HSW_SF_LINE_STIPPLE_ENABLE;
|
||||
}
|
||||
|
||||
/* FINISHME: Last Pixel Enable? Vertex Sub Pixel Precision Select?
|
||||
* FINISHME: AA Line Distance Mode?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue