Skip to content

nir/lower_blend: Fix 32-bit logicops

Alyssa Rosenzweig requested to merge alyssa/mesa:nir/logicop-fix into main

What does this MR do and why?

nir/lower_blend: Fix 32-bit logicops

nir_const_value_for_int asserts signed bounds on the input, but we pass in an unsigned value that would be out-of-bounds for 32-bit channels, causing the assert to fail for 32-bit channel formats.

Fixes dEQP-VK.pipeline.monolithic.logic_op.r32_uint.* on AGXV (and probably PanVK).

Fixes: dbd0615e ("nir/lower_blend: Avoid useless iand with logic ops") Signed-off-by: Alyssa Rosenzweig alyssa@rosenzweig.io

Merge request reports