[igt-dev] [PATCH i-g-t 06/14] benchmarks/gem_wsim: fix conflicting SSEU #define and enum

Marcin Bernatowicz marcin.bernatowicz at linux.intel.com
Tue Sep 26 08:44:21 UTC 2023


One SSEU is in enum w_step and then as #define SSEU (1 << 3).
Fix this.

Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz at linux.intel.com>
---
 benchmarks/gem_wsim.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c
index aeb959364..3b01340bf 100644
--- a/benchmarks/gem_wsim.c
+++ b/benchmarks/gem_wsim.c
@@ -238,7 +238,7 @@ static struct drm_i915_gem_context_param_sseu device_sseu = {
 
 #define SYNCEDCLIENTS	(1<<1)
 #define DEPSYNC		(1<<2)
-#define SSEU		(1<<3)
+#define FLAG_SSEU	(1<<3)
 
 static const char *ring_str_map[NUM_ENGINES] = {
 	[DEFAULT] = "DEFAULT",
@@ -2597,7 +2597,7 @@ int main(int argc, char **argv)
 			/* Fall through */
 		case 'w':
 			w_args = add_workload_arg(w_args, ++nr_w_args, optarg,
-						  prio, flags & SSEU);
+						  prio, flags & FLAG_SSEU);
 			break;
 		case 'p':
 			prio = atoi(optarg);
@@ -2626,7 +2626,7 @@ int main(int argc, char **argv)
 			flags |= SYNCEDCLIENTS;
 			break;
 		case 's':
-			flags ^= SSEU;
+			flags ^= FLAG_SSEU;
 			break;
 		case 'd':
 			flags |= DEPSYNC;
-- 
2.42.0



More information about the igt-dev mailing list