intel/fs: Fix an assert in load_scratch
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 19 Aug 2020 23:53:32 +0000 (18:53 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 21 Aug 2020 22:49:54 +0000 (22:49 +0000)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6405>

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. */