Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 2/2] tests/i915_pipe_stress: Remove stack variables
Date: Wed, 13 Sep 2023 16:24:17 +0200	[thread overview]
Message-ID: <20230913142417.584184-3-zbigniew.kempczynski@intel.com> (raw)
In-Reply-To: <20230913142417.584184-1-zbigniew.kempczynski@intel.com>

They are unused and what's worse unassigned. Get rid of them keeping
x/y_rand only.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
---
 tests/intel/i915_pipe_stress.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/intel/i915_pipe_stress.c b/tests/intel/i915_pipe_stress.c
index 9ceb056a09..f9da5f0232 100644
--- a/tests/intel/i915_pipe_stress.c
+++ b/tests/intel/i915_pipe_stress.c
@@ -241,7 +241,6 @@ static void *gpu_load(void *ptr)
 	int frame_height;
 	drmModeModeInfo *mode;
 	int frame = 0;
-	int x, y;
 	int rect = 0, total_rects = 0;
 	int pixels = 0;
 
@@ -273,8 +272,8 @@ static void *gpu_load(void *ptr)
 			x_rand = hars_petruska_f54_1_random_unsafe_max(frame_width - rect_width);
 			y_rand = hars_petruska_f54_1_random_unsafe_max(frame_height/2 - rect_height);
 
-			context->blt_rect.x = x + x_rand;
-			context->blt_rect.y = y + y_rand;
+			context->blt_rect.x = x_rand;
+			context->blt_rect.y = y_rand;
 
 			/* Fill randomly sized and positioned rectangles */
 			fill_gpu(context, context->blt_rect.x, context->blt_rect.y,
-- 
2.34.1

  parent reply	other threads:[~2023-09-13 14:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-13 14:24 [igt-dev] [PATCH i-g-t 0/2] Add missing Meteorlake gpgpu fill condition Zbigniew Kempczyński
2023-09-13 14:24 ` [igt-dev] [PATCH i-g-t 1/2] lib/intel_batchbuffer: Add Meteorlake gpgpu fill entry Zbigniew Kempczyński
2023-09-13 15:59   ` Kamil Konieczny
2023-09-14  6:00     ` Zbigniew Kempczyński
2023-09-13 14:24 ` Zbigniew Kempczyński [this message]
2023-09-13 15:15   ` [igt-dev] [PATCH i-g-t 2/2] tests/i915_pipe_stress: Remove stack variables Lisovskiy, Stanislav
2023-09-13 17:58 ` [igt-dev] ✓ CI.xeBAT: success for Add missing Meteorlake gpgpu fill condition Patchwork
2023-09-13 18:01 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
2023-09-13 21:31 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-09-14  6:03   ` Zbigniew Kempczyński
2023-09-14 12:14     ` Yedireswarapu, SaiX Nandan
2023-09-14 12:13 ` [igt-dev] ✓ Fi.CI.IGT: success " 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=20230913142417.584184-3-zbigniew.kempczynski@intel.com \
    --to=zbigniew.kempczynski@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