search for: src_alpha

Displaying 4 results from an estimated 4 matches for "src_alpha".

2010 May 31
1
[PATCH] nv50/exa: use dual-source blending for component-alpha composite
...;src_blend; - unsigned dblend = b->dst_blend; + unsigned dblend = b->dst_blend, dblend_a = b->dst_blend; if (b->dst_alpha) { if (!PICT_FORMAT_A(ppict->format)) { @@ -764,11 +764,18 @@ NV50EXABlend(PixmapPtr ppix, PicturePtr ppict, int op, int component_alpha) } if (b->src_alpha && component_alpha) { - if (dblend == BF(SRC_ALPHA)) - dblend = BF(SRC_COLOR); - else - if (dblend == BF(ONE_MINUS_SRC_ALPHA)) - dblend = BF(ONE_MINUS_SRC_COLOR); + switch (dblend) { + case BF(SRC_ALPHA): + dblend = BF(SRC1_COLOR); + dblend_a = BF(SRC1_ALPHA); + break; + c...
2010 Apr 20
1
[PATCH] nv30/exa : cleanup from nv40 exa
...L; } -#define NV34TCL_BF_ZERO 0x0000 -#define NV34TCL_BF_ONE 0x0001 -#define NV34TCL_BF_SRC_COLOR 0x0300 -#define NV34TCL_BF_ONE_MINUS_SRC_COLOR 0x0301 -#define NV34TCL_BF_SRC_ALPHA 0x0302 -#define NV34TCL_BF_ONE_MINUS_SRC_ALPHA 0x0303 -#define NV34TCL_BF_DST_ALPHA 0x0304 -#define NV34TCL_BF_ONE_MINUS_DST_ALPHA 0x0305 -#define NV34TCL_BF_DST_COLOR...
2014 Aug 10
3
[PATCH 1/4] exa/nv10: use same clip settings as mesa driver
The higher 0x800 was getting overwritten by the 0x7ff anyways, so it wasn't doing any good. The mesa driver just uses 0x800 for the low portion and doesn't set the 8 bit in the higher portion, so do the same thing here. Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu> --- src/nv10_exa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nv10_exa.c
2009 Nov 04
1
[PATCH] nv10/exa: Spring-cleaning
...[] = { + +} nv10_pict_op[] = { { SF(ZERO), DF(ZERO) }, /* Clear */ { SF(ONE), DF(ZERO) }, /* Src */ { SF(ZERO), DF(ONE) }, /* Dst */ @@ -61,131 +121,91 @@ static struct nv10_pictop { { SF(ONE), DF(ONE) }, /* Add */ }; -static inline bool needs_src_alpha(int op) +static inline Bool +needs_src_alpha(int op) { - return NV10PictOp[op].dst == DF(ONE_MINUS_SRC_ALPHA) - || NV10PictOp[op].dst == DF(SRC_ALPHA); + return nv10_pict_op[op].dst == DF(ONE_MINUS_SRC_ALPHA) + || nv10_pict_op[op].dst == DF(SRC_ALPHA); } -static inline bool needs_src(int op)...