nir/alu_to_scalar: Propagate the "exact" bit
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 17 Mar 2016 23:13:40 +0000 (16:13 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Mar 2016 23:28:06 +0000 (16:28 -0700)
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/compiler/nir/nir_lower_alu_to_scalar.c

index 5b3281e0a13d1a26e5a696cef8da457180291685..e8ba640fe0baabc54cbd70d346a1230b8b15a0d4 100644 (file)
@@ -82,6 +82,7 @@ lower_alu_instr_scalar(nir_alu_instr *instr, nir_builder *b)
    assert(instr->dest.write_mask != 0);
 
    b->cursor = nir_before_instr(&instr->instr);
+   b->exact = instr->exact;
 
 #define LOWER_REDUCTION(name, chan, merge) \
    case name##2: \