[PATCH i-g-t 1/2] lib/gpgpu_shader: Fix iga64 compilation warning
Dominik Grzegorzek
dominik.grzegorzek at intel.com
Wed Aug 21 11:04:15 UTC 2024
Fix src1_null macro definition to match platforms which are mentioned in
the comment above the declaration. (DG2+)
Fixes:
iga64 -Xauto-deps -Wall -p=12p71 lib/iga64_generated_codes.c.d/iga64_assembly_eot.12p71.asm
line 2.37: warning: Src1.Length should suffix src1 register (e.g. r10:4)
(W) send.gtwy (8|M0) null r112 null 0 0x02000000 {EOT}
^
Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda at intel.com>
---
lib/iga64_macros.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/iga64_macros.h b/lib/iga64_macros.h
index f4ef5cb16..03cc726d4 100644
--- a/lib/iga64_macros.h
+++ b/lib/iga64_macros.h
@@ -7,7 +7,7 @@
#define IGA64_MACROS_H
/* send instruction for DG2+ requires 0 length in case src1 is null, BSpec: 47443 */
-#if GEN_VER < 1271
+#if GEN_VER <= 1250
#define src1_null null
#else
#define src1_null null:0
--
2.34.1
More information about the igt-dev
mailing list