Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mohammed Thasleem <mohammed.thasleem@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Mohammed Thasleem <mohammed.thasleem@intel.com>
Subject: [PATCH i-g-t] tests/kms_histogram: Add check for ghe api call
Date: Mon,  6 Jan 2025 15:21:54 +0530	[thread overview]
Message-ID: <20250106095154.243459-1-mohammed.thasleem@intel.com> (raw)

Check ghe algo for the function called by ghe igt while compiling.

Signed-off-by: Mohammed Thasleem <mohammed.thasleem@intel.com>
---
 meson.build | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 8b2a2a64a..96f010fe2 100644
--- a/meson.build
+++ b/meson.build
@@ -198,8 +198,19 @@ else
 endif
 
 libghe = dependency('libghe', required : false)
+
 if libghe.found()
-      config.set('HAVE_LIBGHE', 1)
+
+	cc = meson.get_compiler('c')
+
+	if cc.has_function('histogram_compute_generate_data_bin', dependencies: libghe)
+		message('libghe provides the required function')
+		config.set('HAVE_LIBGHE', 1)
+	else
+	warning('libghe does not provide the required function')
+	endif
+else
+	warning('libghe not found')
 endif
 
 build_info += 'Build Chamelium test: @0@'.format(chamelium.found())
-- 
2.25.1


             reply	other threads:[~2025-01-06  9:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-06  9:51 Mohammed Thasleem [this message]
2025-01-06 12:01 ` ✓ i915.CI.BAT: success for tests/kms_histogram: Add check for ghe api call Patchwork
2025-01-06 13:05 ` ✓ Xe.CI.BAT: " Patchwork
2025-01-06 16:47 ` ✓ i915.CI.Full: " Patchwork
2025-01-06 17:13 ` [PATCH i-g-t] " Lucas De Marchi
2025-01-07  7:53   ` Thasleem, Mohammed
2025-01-07  9:15     ` Garg, Nemesa
2025-01-07 14:28       ` Lucas De Marchi
2025-01-08 12:50         ` Thasleem, Mohammed
2025-01-07  2:47 ` ✗ Xe.CI.Full: failure for " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2025-01-08 12:46 [PATCH i-g-t] " Mohammed Thasleem
2025-01-08 14:17 ` Lucas De Marchi
2025-01-08 15:04 ` Mohammed Thasleem

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=20250106095154.243459-1-mohammed.thasleem@intel.com \
    --to=mohammed.thasleem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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