[Mesa-dev] [PATCH 2/3] swr: disable logic op when the rt format is float
Ilia Mirkin
imirkin at alum.mit.edu
Tue Nov 8 00:18:50 UTC 2016
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/swr/swr_state.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp
index d8a8ee1..acb0452 100644
--- a/src/gallium/drivers/swr/swr_state.cpp
+++ b/src/gallium/drivers/swr/swr_state.cpp
@@ -1305,6 +1305,11 @@ swr_update_derived(struct pipe_context *pipe,
&ctx->blend->compileState[target],
sizeof(compileState.blendState));
+ if (compileState.blendState.logicOpEnable &&
+ GetFormatInfo(compileState.format).type[0] == SWR_TYPE_FLOAT) {
+ compileState.blendState.logicOpEnable = false;
+ }
+
if (compileState.blendState.blendEnable == false &&
compileState.blendState.logicOpEnable == false) {
SwrSetBlendFunc(ctx->swrContext, target, NULL);
--
2.7.3
More information about the mesa-dev
mailing list