mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-05 10:20:36 +02:00
nouveau: nv30 does not support separate blend functions for alpha and rgb
This commit is contained in:
parent
c14aac5530
commit
bcb5ea097c
1 changed files with 3 additions and 2 deletions
|
|
@ -23,9 +23,10 @@ nv30_blend_state_create(struct pipe_context *pipe,
|
|||
nvgl_blend_func(cso->rgb_src_factor));
|
||||
so_data (so, nvgl_blend_func(cso->alpha_dst_factor) << 16 |
|
||||
nvgl_blend_func(cso->rgb_dst_factor));
|
||||
/* FIXME: Gallium assumes GL_EXT_blend_func_separate.
|
||||
It is not the case for NV30 */
|
||||
so_method(so, rankine, NV34TCL_BLEND_EQUATION, 1);
|
||||
so_data (so, nvgl_blend_eqn(cso->alpha_func) << 16 |
|
||||
nvgl_blend_eqn(cso->rgb_func));
|
||||
so_data (so, nvgl_blend_eqn(cso->rgb_func));
|
||||
} else {
|
||||
so_method(so, rankine, NV34TCL_BLEND_FUNC_ENABLE, 1);
|
||||
so_data (so, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue