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: kamil.konieczny@intel.com,
	Mohammed Thasleem <mohammed.thasleem@intel.com>
Subject: [PATCH i-g-t] tests/kms_histogram: Add check for ghe api call
Date: Wed,  8 Jan 2025 18:16:37 +0530	[thread overview]
Message-ID: <20250108124637.291978-1-mohammed.thasleem@intel.com> (raw)

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

v2: Update version check and remove warning message. (Lucas)
    Print messae at api else check. (Kamil)

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

diff --git a/meson.build b/meson.build
index 8b2a2a64a..6370887d6 100644
--- a/meson.build
+++ b/meson.build
@@ -199,7 +199,17 @@ endif
 
 libghe = dependency('libghe', required : false)
 if libghe.found()
+  if libghe.version().version_compare('>=0.2.0')
+
+    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
+      message ('libghe API changed')
+    endif
+  endif
 endif
 
 build_info += 'Build Chamelium test: @0@'.format(chamelium.found())
-- 
2.43.0


             reply	other threads:[~2025-01-08 12:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-08 12:46 Mohammed Thasleem [this message]
2025-01-08 14:17 ` [PATCH i-g-t] tests/kms_histogram: Add check for ghe api call Lucas De Marchi
2025-01-08 15:04 ` Mohammed Thasleem
2025-01-08 15:16   ` [PATCH i-g-t] tests/kms_histogram: Add check for libghe version Mohammed Thasleem
2025-01-08 15:20     ` Lucas De Marchi
2025-01-08 18:22 ` ✓ i915.CI.BAT: success for tests/kms_histogram: Add check for ghe api call (rev4) Patchwork
2025-01-08 19:10 ` ✓ Xe.CI.BAT: " Patchwork
2025-01-10  5:11 ` ✓ i915.CI.Full: " Patchwork
2025-01-10 20:05 ` ✗ Xe.CI.Full: failure " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2025-01-06  9:51 [PATCH i-g-t] tests/kms_histogram: Add check for ghe api call Mohammed Thasleem
2025-01-06 17:13 ` 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

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