xorg: revert bad merge
[mesa.git] / src / gallium / state_trackers / xorg / xorg_composite.c
1 #include "xorg_composite.h"
2
3 struct xorg_composite_blend {
4 int op:8;
5
6 unsigned rgb_src_factor:5; /**< PIPE_BLENDFACTOR_x */
7 unsigned rgb_dst_factor:5; /**< PIPE_BLENDFACTOR_x */
8
9 unsigned alpha_src_factor:5; /**< PIPE_BLENDFACTOR_x */
10 unsigned alpha_dst_factor:5; /**< PIPE_BLENDFACTOR_x */
11 };
12
13 static const struct xorg_composite_blend xorg_blends[] = {
14 { PictOpClear,
15 PIPE_BLENDFACTOR_CONST_COLOR, PIPE_BLENDFACTOR_CONST_ALPHA,
16 PIPE_BLENDFACTOR_ZERO, PIPE_BLENDFACTOR_ZERO },
17
18 { PictOpSrc,
19 PIPE_BLENDFACTOR_ONE, PIPE_BLENDFACTOR_ONE,
20 PIPE_BLENDFACTOR_ZERO, PIPE_BLENDFACTOR_ZERO },
21
22 { PictOpDst,
23 PIPE_BLENDFACTOR_ZERO, PIPE_BLENDFACTOR_ZERO,
24 PIPE_BLENDFACTOR_ONE, PIPE_BLENDFACTOR_ONE },
25
26 { PictOpOver,
27 PIPE_BLENDFACTOR_SRC_ALPHA, PIPE_BLENDFACTOR_ONE,
28 PIPE_BLENDFACTOR_INV_SRC_ALPHA, PIPE_BLENDFACTOR_INV_SRC_ALPHA },
29
30 { PictOpOverReverse,
31 PIPE_BLENDFACTOR_SRC_ALPHA, PIPE_BLENDFACTOR_ONE,
32 PIPE_BLENDFACTOR_INV_SRC_ALPHA, PIPE_BLENDFACTOR_INV_SRC_ALPHA },
33 };
34
35 boolean xorg_composite_accelerated(int op,
36 PicturePtr pSrcPicture,
37 PicturePtr pMaskPicture,
38 PicturePtr pDstPicture)
39 {
40 return FALSE;
41 }
42
43 boolean xorg_composite_bind_state(struct exa_context *exa,
44 int op,
45 PicturePtr pSrcPicture,
46 PicturePtr pMaskPicture,
47 PicturePtr pDstPicture)
48 {
49 return FALSE;
50 }
51
52 void xorg_composite(struct exa_context *exa,
53 struct exa_pixmap_priv *dst,
54 int srcX, int srcY, int maskX, int maskY,
55 int dstX, int dstY, int width, int height)
56 {
57 }
58