From: Andrzej Hajda <andrzej.hajda@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: "Dominik Grzegorzek" <dominik.grzegorzek@intel.com>,
"Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>,
"Gwan-gyeong Mun" <gwan-gyeong.mun@intel.com>,
"Kamil Konieczny" <kamil.konieczny@linux.intel.com>,
"Andrzej Hajda" <andrzej.hajda@intel.com>
Subject: [PATCH 1/2] scripts/generate_iga64_codes: add iga64_macros.h to checksum calculation
Date: Thu, 14 Nov 2024 11:31:38 +0100 [thread overview]
Message-ID: <20241114-gpgpu_send_rework-v1-1-e0914e09e7b2@intel.com> (raw)
In-Reply-To: <20241114-gpgpu_send_rework-v1-0-e0914e09e7b2@intel.com>
Since generated code depends on iga64_macros.h assemblies should be
recompiled on it's change as well.
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
---
lib/iga64_generated_codes.c | 2 +-
lib/meson.build | 1 +
scripts/generate_iga64_codes | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/iga64_generated_codes.c b/lib/iga64_generated_codes.c
index 6638be07b356..0bd92b8c4dc9 100644
--- a/lib/iga64_generated_codes.c
+++ b/lib/iga64_generated_codes.c
@@ -3,7 +3,7 @@
#include "gpgpu_shader.h"
-#define MD5_SUM_IGA64_ASMS ec9d477415eebb7d6983395f1bcde78f
+#define MD5_SUM_IGA64_ASMS e2d97ef45d5f322200793a0aa76872d7
struct iga64_template const iga64_code_gpgpu_fill[] = {
{ .gen_ver = 2000, .size = 44, .code = (const uint32_t []) {
diff --git a/lib/meson.build b/lib/meson.build
index c3556a921adf..cec148388b77 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -248,6 +248,7 @@ iga64_generated_codes = custom_target(
'iga64_generated_codes.c',
input : [ 'iga64_generated_codes.c' ] + iga64_assembly_libs,
output : 'iga64_generated_codes.c',
+ depend_files : 'iga64_macros.h',
command : [ generate_iga64_codes, '-o', '@OUTPUT@', '-i', '@INPUT@' ]
)
diff --git a/scripts/generate_iga64_codes b/scripts/generate_iga64_codes
index bbf1f7008242..652bf01a080c 100755
--- a/scripts/generate_iga64_codes
+++ b/scripts/generate_iga64_codes
@@ -40,7 +40,7 @@ while read -d $'\0' asm; do
done < <(for f in $LIBS; do objcopy --dump-section .iga64_assembly=/dev/stdout $f.p/*.o /dev/null; done)
# check if we need to recompile - checksum difference and compiler present
-MD5_ASMS="$(md5sum <<< "${ASMS[@]}" | cut -b1-32)"
+MD5_ASMS="$(md5sum <<< "$(< ../lib/iga64_macros.h) ${ASMS[@]}" | cut -b1-32)"
MD5_PRE="$(grep -Po '(?<=^#define MD5_SUM_IGA64_ASMS )\S{32,32}' $INPUT 2>/dev/null)"
if [ "$MD5_ASMS" = "$MD5_PRE" ]; then
--
2.34.1
next prev parent reply other threads:[~2024-11-14 10:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 10:31 [PATCH 0/2] lib/gpgpu_shader: simplify load/store shaders Andrzej Hajda
2024-11-14 10:31 ` Andrzej Hajda [this message]
2024-11-14 10:59 ` [PATCH 1/2] scripts/generate_iga64_codes: add iga64_macros.h to checksum calculation Zbigniew Kempczyński
2024-11-14 10:31 ` [PATCH 2/2] lib/gpgpu_shader: simplify load/store shaders Andrzej Hajda
2024-11-14 11:28 ` Zbigniew Kempczyński
2024-11-14 16:11 ` Hajda, Andrzej
2024-11-14 14:05 ` Grzegorzek, Dominik
2024-11-14 16:24 ` Hajda, Andrzej
2024-11-15 9:05 ` Grzegorzek, Dominik
2024-11-14 12:18 ` ✗ GitLab.Pipeline: warning for " Patchwork
2024-11-14 12:40 ` ✓ Fi.CI.BAT: success " Patchwork
2024-11-14 12:48 ` ✓ CI.xeBAT: " Patchwork
2024-11-14 17:45 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-11-14 23:31 ` ✗ CI.xeFULL: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241114-gpgpu_send_rework-v1-1-e0914e09e7b2@intel.com \
--to=andrzej.hajda@intel.com \
--cc=dominik.grzegorzek@intel.com \
--cc=gwan-gyeong.mun@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=zbigniew.kempczynski@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox