diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-10-25 01:20:56 +0100 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-10-25 01:20:56 +0100 |
commit | 562ca4eae257dd3b268e7f13487c8cd91f618eae (patch) | |
tree | b3184b94b2f320f8e05e38b5e82d53d72f35b5d1 /src/gallium/drivers/i965/brw_pipe_blend.c | |
parent | 4dd2f6640b70e2313f8771f7588aa49a861153aa (diff) |
i965g: more compiling wip
Diffstat (limited to 'src/gallium/drivers/i965/brw_pipe_blend.c')
-rw-r--r-- | src/gallium/drivers/i965/brw_pipe_blend.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_pipe_blend.c b/src/gallium/drivers/i965/brw_pipe_blend.c index 17895d2782e..54d09d9e450 100644 --- a/src/gallium/drivers/i965/brw_pipe_blend.c +++ b/src/gallium/drivers/i965/brw_pipe_blend.c @@ -43,3 +43,22 @@ if (INTEL_DEBUG & DEBUG_STATS) cc.cc5.statistics_enable = 1; } + + + +static void brw_set_blend_color(struct pipe_context *pipe, + const float *blend_color) +{ + struct brw_context *brw = brw_context(pipe); + struct brw_blend_constant_color *bcc = &brw->curr.blend_color.bcc; + + memset(bcc, 0, sizeof(*bcc)); + bcc->header.opcode = CMD_BLEND_CONSTANT_COLOR; + bcc->header.length = sizeof(*bcc)/4-2; + bcc->blend_constant_color[0] = blend_color[0]; + bcc->blend_constant_color[1] = blend_color[1]; + bcc->blend_constant_color[2] = blend_color[2]; + bcc->blend_constant_color[3] = blend_color[3]; + + brw->state.dirty.pipe |= PIPE_NEW_BLEND_COLOR; +} |