dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Almeida <daniel.almeida@collabora.com>
To: adrinael@adrinael.net, arek@hiler.eu,
	kamil.konieczny@linux.intel.com, juhapekka.heikkila@gmail.com,
	bhanuprakash.modem@gmail.com, ashutosh.dixit@intel.com,
	karthik.b.s@intel.com, boris.brezillon@collabora.com,
	liviu.dudau@arm.com, steven.price@arm.com
Cc: Daniel Almeida <daniel.almeida@collabora.com>,
	intel-gfx@lists.freedesktop.org, igt-dev@lists.freedesktop.org,
	dri-devel@lists.freedesktop.org
Subject: [PATCH i-g-t 2/4] tests: panthor: add initial infrastructure
Date: Thu, 28 Aug 2025 10:03:58 -0300	[thread overview]
Message-ID: <20250828130402.2549948-3-daniel.almeida@collabora.com> (raw)
In-Reply-To: <20250828130402.2549948-1-daniel.almeida@collabora.com>

Add the necessary code needed to compile panthor tests. The tests
themselves will be added in a subsequent patch.

Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
---
 meson.build               |  8 ++++++++
 tests/meson.build         |  2 ++
 tests/panthor/meson.build | 11 +++++++++++
 3 files changed, 21 insertions(+)
 create mode 100644 tests/panthor/meson.build

diff --git a/meson.build b/meson.build
index aeed3b1d2..53098894e 100644
--- a/meson.build
+++ b/meson.build
@@ -288,6 +288,7 @@ libexecdir = join_paths(get_option('libexecdir'), 'igt-gpu-tools')
 amdgpudir = join_paths(libexecdir, 'amdgpu')
 msmdir = join_paths(libexecdir, 'msm')
 panfrostdir = join_paths(libexecdir, 'panfrost')
+panthordir = join_paths(libexecdir, 'panthor')
 v3ddir = join_paths(libexecdir, 'v3d')
 vc4dir = join_paths(libexecdir, 'vc4')
 vmwgfxdir = join_paths(libexecdir, 'vmwgfx')
@@ -340,6 +341,12 @@ if get_option('use_rpath')
 	endforeach
 	panfrost_rpathdir = join_paths(panfrost_rpathdir, libdir)
 
+	panthor_rpathdir = '$ORIGIN'
+	foreach p : panthordir.split('/')
+		panthor_rpathdir = join_paths(panthor_rpathdir, '..')
+	endforeach
+	panthor_rpathdir = join_paths(panthor_rpathdir, libdir)
+
 	v3d_rpathdir = '$ORIGIN'
 	foreach p : v3ddir.split('/')
 		v3d_rpathdir = join_paths(v3d_rpathdir, '..')
@@ -363,6 +370,7 @@ else
 	amdgpudir_rpathdir = ''
 	msm_rpathdir = ''
 	panfrost_rpathdir = ''
+	panthor_rpathdir = ''
 	v3d_rpathdir = ''
 	vc4_rpathdir = ''
 	vmwgfx_rpathdir = ''
diff --git a/tests/meson.build b/tests/meson.build
index 5c01c64e9..38bedebd9 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -486,6 +486,8 @@ subdir('msm')
 
 subdir('panfrost')
 
+subdir('panthor')
+
 subdir('v3d')
 
 subdir('vc4')
diff --git a/tests/panthor/meson.build b/tests/panthor/meson.build
new file mode 100644
index 000000000..979ae91e0
--- /dev/null
+++ b/tests/panthor/meson.build
@@ -0,0 +1,11 @@
+panthor_progs = [
+]
+
+foreach prog : panthor_progs
+	test_executables += executable(prog, prog + '.c',
+				       dependencies : test_deps,
+				       install_dir : panthordir,
+				       install_rpath : panthor_rpathdir,
+				       install : true)
+	test_list += join_paths('panthor', prog)
+endforeach
-- 
2.50.1


  parent reply	other threads:[~2025-08-28 13:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-28 13:03 [PATCH i-g-t 0/4] Add initial Panthor tests Daniel Almeida
2025-08-28 13:03 ` [PATCH i-g-t 1/4] lib: add support for opening Panthor devices Daniel Almeida
2025-08-28 15:39   ` Steven Price
2025-08-29 11:35     ` Kamil Konieczny
2025-08-28 13:03 ` Daniel Almeida [this message]
2025-08-28 13:03 ` [PATCH i-g-t 3/4] lib: initial panthor infrastructure Daniel Almeida
2025-08-29 11:42   ` Kamil Konieczny
2025-08-28 13:04 ` [PATCH i-g-t 4/4] tests/panthor: add panthor tests Daniel Almeida
2025-08-28 15:39   ` Steven Price
2025-08-29 11:31   ` Kamil Konieczny
2025-08-28 14:01 ` [PATCH i-g-t 0/4] Add initial Panthor tests Boris Brezillon
2025-08-29 11:46 ` Juha-Pekka Heikkilä
2025-08-29 11:48 ` Kamil Konieczny

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=20250828130402.2549948-3-daniel.almeida@collabora.com \
    --to=daniel.almeida@collabora.com \
    --cc=adrinael@adrinael.net \
    --cc=arek@hiler.eu \
    --cc=ashutosh.dixit@intel.com \
    --cc=bhanuprakash.modem@gmail.com \
    --cc=boris.brezillon@collabora.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=juhapekka.heikkila@gmail.com \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=karthik.b.s@intel.com \
    --cc=liviu.dudau@arm.com \
    --cc=steven.price@arm.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;
as well as URLs for NNTP newsgroup(s).