summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_pipe_misc.c
blob: a7ccde591702842df8856ab73787d284d7f10867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

#include "brw_context.h"
#include "brw_structs.h"
#include "brw_defines.h"

static void brw_set_polygon_stipple( struct pipe_context *pipe,
				     const struct pipe_poly_stipple *stip )
{
   struct brw_context *brw = brw_context(pipe);
   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] = stip->stipple[i]; /* don't invert */
}



void brw_pipe_misc_init( struct brw_context *brw )
{
   brw->base.set_polygon_stipple = brw_set_polygon_stipple;
}


void brw_pipe_misc_cleanup( struct brw_context *brw )
{
}