From: Timur Kristóf Date: Tue, 16 Mar 2021 20:06:14 +0000 (+0100) Subject: intel/compiler: Make room for maximum dest size in nir_emit_texture. X-Git-Tag: upstream/21.2.3~6409 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17bc587f889a3cfceec83cfa9c8da4d32b787096;p=platform%2Fupstream%2Fmesa.git intel/compiler: Make room for maximum dest size in nir_emit_texture. The maximum dest_size is 5, not 4. Signed-off-by: Timur Kristóf Reviewed-by: Jason Ekstrand Part-of: --- diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index 05ab5a6..8123c89 100644 --- a/src/intel/compiler/brw_fs_nir.cpp +++ b/src/intel/compiler/brw_fs_nir.cpp @@ -5962,7 +5962,7 @@ fs_visitor::nir_emit_texture(const fs_builder &bld, nir_tex_instr *instr) if (instr->op == nir_texop_tg4 && devinfo->gen == 6) emit_gen6_gather_wa(key_tex->gen6_gather_wa[texture], dst); - fs_reg nir_dest[4]; + fs_reg nir_dest[5]; for (unsigned i = 0; i < dest_size; i++) nir_dest[i] = offset(dst, bld, i);