From 14386eb7e5757b317a478f7c12301d0ff47f760f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Mon, 21 Jul 2025 10:37:24 -0700 Subject: [PATCH] intel/brw: Add comment to reg_unit() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Lionel Landwerlin Signed-off-by: José Roberto de Souza Part-of: --- src/intel/compiler/brw_eu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h index df21a66157e..bf5ff3b0021 100644 --- a/src/intel/compiler/brw_eu.h +++ b/src/intel/compiler/brw_eu.h @@ -247,13 +247,15 @@ ALU2(SUBB) #undef ALU2 #undef ALU3 +/* In Xe2+ each register is 64bytes/512bits long while older platforms it is + * 32bytes/256bits long. + */ static inline unsigned reg_unit(const struct intel_device_info *devinfo) { return devinfo->ver >= 20 ? 2 : 1; } - /* Helpers for SEND instruction: */