intel/fs: Fix an assert in load_scratch
[mesa.git] / src / intel / compiler / brw_fs_nir.cpp
index b05421746a5e3895d3f0611f8bd4462ebcf5b136..765f127056a1e9ba9c76a009b51a14dedd1e0a21 100644 (file)
@@ -4818,7 +4818,7 @@ fs_visitor::nir_emit_intrinsic(const fs_builder &bld, nir_intrinsic_instr *instr
       /* Read the vector */
       assert(nir_dest_num_components(instr->dest) == 1);
       assert(nir_dest_bit_size(instr->dest) <= 32);
-      assert(nir_intrinsic_align(instr) > 1);
+      assert(nir_intrinsic_align(instr) > 0);
       if (nir_dest_bit_size(instr->dest) >= 4 &&
           nir_intrinsic_align(instr) >= 4) {
          /* The offset for a DWORD scattered message is in dwords. */