From: "Lisovskiy, Stanislav" <stanislav.lisovskiy@intel.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 2/2] tests/i915_pipe_stress: Remove stack variables
Date: Wed, 13 Sep 2023 18:15:04 +0300 [thread overview]
Message-ID: <ZQHR+IwkP6dVqY1b@intel.com> (raw)
In-Reply-To: <20230913142417.584184-3-zbigniew.kempczynski@intel.com>
On Wed, Sep 13, 2023 at 04:24:17PM +0200, Zbigniew Kempczyński wrote:
> 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;
Thanks for spotting,
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
>
> /* Fill randomly sized and positioned rectangles */
> fill_gpu(context, context->blt_rect.x, context->blt_rect.y,
> --
> 2.34.1
>
next prev parent reply other threads:[~2023-09-13 15:15 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 ` [igt-dev] [PATCH i-g-t 2/2] tests/i915_pipe_stress: Remove stack variables Zbigniew Kempczyński
2023-09-13 15:15 ` Lisovskiy, Stanislav [this message]
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=ZQHR+IwkP6dVqY1b@intel.com \
--to=stanislav.lisovskiy@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=zbigniew.kempczynski@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.