summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-11-04 13:10:56 -0500
committerTim Rowley <[email protected]>2016-11-08 14:18:47 -0600
commit95ed1c19bf379ace583adfe520e1673675d17062 (patch)
treea8a70fa53c4b26ad59cc26561b9e1a6460c5b939 /src
parentbafc75b4370bfbec0c91ff6bb4d4972fb37bb22a (diff)
swr: allow alphatest without blend or logicop
We need to compile a blend function when alphatest is enabled. Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/swr/swr_state.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp
index 3e023225433..424bff2284f 100644
--- a/src/gallium/drivers/swr/swr_state.cpp
+++ b/src/gallium/drivers/swr/swr_state.cpp
@@ -1300,7 +1300,8 @@ swr_update_derived(struct pipe_context *pipe,
sizeof(compileState.blendState));
if (compileState.blendState.blendEnable == false &&
- compileState.blendState.logicOpEnable == false) {
+ compileState.blendState.logicOpEnable == false &&
+ ctx->depth_stencil->alpha.enabled == 0) {
SwrSetBlendFunc(ctx->swrContext, target, NULL);
continue;
}