nv50: fix blend cso
authorBen Skeggs <skeggsb@gmail.com>
Thu, 12 Jun 2008 04:40:20 +0000 (14:40 +1000)
committerBen Skeggs <skeggsb@gmail.com>
Sun, 29 Jun 2008 05:46:18 +0000 (15:46 +1000)
src/gallium/drivers/nv50/nv50_state.c

index ed6cca9a0ddc685e5a29f63ddc81782d0adfcf7c..b56a3992bc4fae9bcd39a9af5dcfd05f2c8b3752 100644 (file)
@@ -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 ) {