Mesa (master): swr: allow alphatest without blend or logicop
Tim Rowley
torowley at kemper.freedesktop.org
Tue Nov 8 20:32:11 UTC 2016
Module: Mesa
Branch: master
Commit: 95ed1c19bf379ace583adfe520e1673675d17062
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=95ed1c19bf379ace583adfe520e1673675d17062
Author: Tim Rowley <timothy.o.rowley at intel.com>
Date: Fri Nov 4 13:10:56 2016 -0500
swr: allow alphatest without blend or logicop
We need to compile a blend function when alphatest is enabled.
Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>
---
src/gallium/drivers/swr/swr_state.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp
index 3e02322..424bff2 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;
}
More information about the mesa-commit
mailing list