Skip to content

nir/algebraic: Require operands to iand be 32-bit

Ian Romanick requested to merge idr/mesa:review/issue-2834 into master

With the mask value 0x80000000, the other operand must be 32-bit. This fixes failures in dEQP-VK.subgroups.ballot_mask.ext_shader_subgroup_ballot..gl_subgroupgemaskarb_ tests from Vulkan 1.2.2 CTS.

Checking one of the tests, it appears that the tests are doing 64-bit iand with 0x0000000080000000, then comparing the result with zero.

Closes: #2834 (closed)
Fixes: 88eb8f19 ("nir/algebraic: Simplify logic to detect sign of an integer")

Merge request reports