From: Jason Ekstrand Date: Wed, 19 Aug 2020 23:53:32 +0000 (-0500) Subject: intel/fs: Fix an assert in load_scratch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=febe7622468cf71c14a471d2939b9ee80b04466c;p=mesa.git intel/fs: Fix an assert in load_scratch Reviewed-by: Kenneth Graunke Part-of: --- diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index b05421746a5..765f127056a 100644 --- a/src/intel/compiler/brw_fs_nir.cpp +++ b/src/intel/compiler/brw_fs_nir.cpp @@ -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. */