Module: Mesa Branch: main Commit: 11fea46bdcb23d84dc6773611813571d0a499776 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=11fea46bdcb23d84dc6773611813571d0a499776
Author: Sagar Ghuge <sagar.gh...@intel.com> Date: Mon Oct 2 20:51:55 2023 -0700 intel/fs: Adjust destination size for image size intrinsic Signed-off-by: Sagar Ghuge <sagar.gh...@intel.com> Reviewed-by: Jordan Justen <jordan.l.jus...@intel.com> Reviewed-by: Ian Romanick <ian.d.roman...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26639> --- src/intel/compiler/brw_fs_nir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index 89af17c3ae9..d06d48c8a21 100644 --- a/src/intel/compiler/brw_fs_nir.cpp +++ b/src/intel/compiler/brw_fs_nir.cpp @@ -5834,7 +5834,7 @@ fs_nir_emit_intrinsic(nir_to_brw_state &ntb, fs_reg tmp = ubld.vgrf(BRW_REGISTER_TYPE_UD, 4); fs_inst *inst = ubld.emit(SHADER_OPCODE_IMAGE_SIZE_LOGICAL, tmp, srcs, ARRAY_SIZE(srcs)); - inst->size_written = 4 * REG_SIZE; + inst->size_written = 4 * REG_SIZE * reg_unit(devinfo); for (unsigned c = 0; c < instr->def.num_components; ++c) { bld.MOV(offset(retype(dest, tmp.type), bld, c),