swr: allow alphatest without blend or logicop
We need to compile a blend function when alphatest is enabled. Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user