summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_state.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-06-12 14:40:20 +1000
committerBen Skeggs <[email protected]>2008-06-29 15:46:18 +1000
commit4bde3a72ab0b4246cd779a6d1e2a72943f25c0f6 (patch)
tree39a0743c39ee9a3469531b1795f50289a616c91a /src/gallium/drivers/nv50/nv50_state.c
parent619549a6377a58d54c9cf55f8863beed56b09566 (diff)
nv50: fix blend cso
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_state.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_state.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/nv50/nv50_state.c b/src/gallium/drivers/nv50/nv50_state.c
index ed6cca9a0dd..b56a3992bc4 100644
--- a/src/gallium/drivers/nv50/nv50_state.c
+++ b/src/gallium/drivers/nv50/nv50_state.c
@@ -29,12 +29,12 @@ nv50_blend_state_create(struct pipe_context *pipe,
so_data(so, 1);
so_method(so, tesla, NV50TCL_BLEND_EQUATION_RGB, 5);
so_data (so, nvgl_blend_eqn(cso->rgb_func));
- so_data (so, nvgl_blend_func(cso->rgb_src_factor));
- so_data (so, nvgl_blend_func(cso->rgb_dst_factor));
+ so_data (so, 0x4000 | nvgl_blend_func(cso->rgb_src_factor));
+ so_data (so, 0x4000 | nvgl_blend_func(cso->rgb_dst_factor));
so_data (so, nvgl_blend_eqn(cso->alpha_func));
- so_data (so, nvgl_blend_func(cso->alpha_src_factor));
+ so_data (so, 0x4000 | nvgl_blend_func(cso->alpha_src_factor));
so_method(so, tesla, NV50TCL_BLEND_FUNC_DST_ALPHA, 1);
- so_data (so, nvgl_blend_func(cso->alpha_dst_factor));
+ so_data (so, 0x4000 | nvgl_blend_func(cso->alpha_dst_factor));
}
if (cso->logicop_enable == 0 ) {