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: 2832bc972b
- ac/nir_to_llvm: add ac_are_tessfactors_def_in_all_invocs()
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7623>
This commit is contained in:
parent
bb6bdeb230
commit
9659384744
|
@ -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
|
* such segment that writes tess factor channels should write the same
|
||||||
* channels in all codepaths within that segment.
|
* 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: */
|
/* Accumulate the result: */
|
||||||
*tessfactors_are_def_in_all_invocs &=
|
*tessfactors_are_def_in_all_invocs &=
|
||||||
!(*cond_block_tf_writemask & ~(*upper_block_tf_writemask));
|
!(*cond_block_tf_writemask & ~(*upper_block_tf_writemask));
|
||||||
|
|
Loading…
Reference in New Issue