Module: Mesa Branch: master Commit: 96593847445bd4f80ef65040dda5f74c26c7a80a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=96593847445bd4f80ef65040dda5f74c26c7a80a
Author: Marek Olšák <[email protected]> Date: Fri Nov 13 23:13:45 2020 -0500 ac/nir: fix a typo in ac_are_tessfactors_def_in_all_invocs I think it only made the pass return false if there was a barrier Fixes: 2832bc972bf - ac/nir_to_llvm: add ac_are_tessfactors_def_in_all_invocs() Reviewed-by: Timothy Arceri <[email protected]> Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7623> --- src/amd/llvm/ac_nir_to_llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/llvm/ac_nir_to_llvm.c b/src/amd/llvm/ac_nir_to_llvm.c index 3517eaa950f..4cb1e130fec 100644 --- a/src/amd/llvm/ac_nir_to_llvm.c +++ b/src/amd/llvm/ac_nir_to_llvm.c @@ -4990,7 +4990,7 @@ static void scan_tess_ctrl(nir_cf_node *cf_node, unsigned *upper_block_tf_writem * such segment that writes tess factor channels should write the same * channels in all codepaths within that segment. */ - if (upper_block_tf_writemask || cond_block_tf_writemask) { + if (*upper_block_tf_writemask || *cond_block_tf_writemask) { /* Accumulate the result: */ *tessfactors_are_def_in_all_invocs &= !(*cond_block_tf_writemask & ~(*upper_block_tf_writemask)); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
