summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/swapchain9.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2014-05-31 23:13:24 +0200
committerAxel Davy <[email protected]>2015-08-21 22:21:45 +0200
commit23da32a9234065e0a16e91ef2f54f1e1d9bf52e5 (patch)
tree99489fa029f47f302f0cf6ef2d7baa32cd57c822 /src/gallium/state_trackers/nine/swapchain9.c
parenta30684712ee9a3ef6738de8c357134a01a24924c (diff)
gallium: Add blending to pipe blit
This type of blending is used for gallium nine software cursor Signed-off-by: David Heidelberg <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/swapchain9.c')
-rw-r--r--src/gallium/state_trackers/nine/swapchain9.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/swapchain9.c b/src/gallium/state_trackers/nine/swapchain9.c
index eb84d08eab0..b8ad403456c 100644
--- a/src/gallium/state_trackers/nine/swapchain9.c
+++ b/src/gallium/state_trackers/nine/swapchain9.c
@@ -588,6 +588,7 @@ handle_draw_cursor_and_hud( struct NineSwapChain9 *This, struct pipe_resource *r
blit.src.box.width, blit.src.box.height,
blit.dst.box.x, blit.dst.box.y);
+ blit.alpha_blend = TRUE;
This->pipe->blit(This->pipe, &blit);
}
@@ -705,6 +706,7 @@ present( struct NineSwapChain9 *This,
blit.mask = PIPE_MASK_RGBA;
blit.filter = PIPE_TEX_FILTER_NEAREST;
blit.scissor_enable = FALSE;
+ blit.alpha_blend = FALSE;
This->pipe->blit(This->pipe, &blit);
}