v3d: emit correct lowering for logic operations with MSAA render targets
[mesa.git] / src / broadcom / compiler / v3d_nir_lower_image_load_store.c
index e74206b394912542a2e7ebc7517860dc3c8ba479..2aa3cbad4956ada5a0b620c9cbddd27c2683dcae 100644 (file)
@@ -156,7 +156,7 @@ pack_sint(nir_builder *b, nir_ssa_def *color, const unsigned *bits,
           int num_components)
 {
         color = nir_channels(b, color, (1 << num_components) - 1);
-        color = nir_format_clamp_uint(b, color, bits);
+        color = nir_format_clamp_sint(b, color, bits);
         return pack_bits(b, color, bits, num_components, true);
 }