blob: fb8d7ecc59afa900b6c813cd760989e3b9dc93be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
static void brw_set_polygon_stipple( struct pipe_context *pipe,
const unsigned *stipple )
{
struct brw_polygon_stipple *bps = &brw->curr.bps;
GLuint i;
memset(bps, 0, sizeof *bps);
bps->header.opcode = CMD_POLY_STIPPLE_PATTERN;
bps->header.length = sizeof *bps/4-2;
for (i = 0; i < 32; i++)
bps->stipple[i] = brw->curr.poly_stipple[i]; /* don't invert */
}
|