1 #include "nvfx_context.h"
4 nvfx_state_stipple_validate(struct nvfx_context
*nvfx
)
6 struct nouveau_channel
*chan
= nvfx
->screen
->base
.channel
;
7 struct pipe_rasterizer_state
*rast
= &nvfx
->rasterizer
->pipe
;
9 if ((rast
->poly_stipple_enable
== 0 && nvfx
->state
.stipple_enabled
== 0))
12 if (rast
->poly_stipple_enable
) {
16 OUT_RING(chan
, RING_3D(NV34TCL_POLYGON_STIPPLE_ENABLE
, 1));
18 OUT_RING(chan
, RING_3D(NV34TCL_POLYGON_STIPPLE_PATTERN(0), 32));
19 for (i
= 0; i
< 32; i
++)
20 OUT_RING(chan
, nvfx
->stipple
[i
]);
23 OUT_RING(chan
, RING_3D(NV34TCL_POLYGON_STIPPLE_ENABLE
, 1));