[PATCH i-g-t 3/3] tests/xe_gpgpu_fill: Add offset-16x16 subtest
Grzegorzek, Dominik
dominik.grzegorzek at intel.com
Thu Nov 14 13:37:34 UTC 2024
On Thu, 2024-11-14 at 13:06 +0100, Zbigniew Kempczyński wrote:
> Add subtest which verifies rectangle filled by pattern starts at
> offset <x,y> == <16,16>.
>
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Cc: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
Reviewed-by: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
> ---
> tests/intel/xe_gpgpu_fill.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/tests/intel/xe_gpgpu_fill.c b/tests/intel/xe_gpgpu_fill.c
> index 82625bb7c0..e1ecff8233 100644
> --- a/tests/intel/xe_gpgpu_fill.c
> +++ b/tests/intel/xe_gpgpu_fill.c
> @@ -87,6 +87,10 @@ static void buf_check(uint8_t *ptr, int width, int x, int y, uint8_t color)
> /**
> * SUBTEST: basic
> * Description: run gpgpu fill
> + *
> + * SUBTEST: offset-16x16
> + * Description: run gpgpu fill with <x,y> start position == <16,16>
> + *
> */
>
> static void gpgpu_fill(data_t *data, igt_fillfunc_t fill, uint32_t region,
> @@ -189,6 +193,14 @@ igt_main_args("dW:H:X:Y:", NULL, help_str, opt_handler, NULL)
> surfheight / 2);
> }
>
> + igt_subtest("offset-16x16") {
> + gpgpu_fill(&data, fill_fn, 0,
> + surfwidth, surfheight,
> + 16, 16,
> + surfwidth / 2,
> + surfheight / 2);
> + }
> +
> igt_fixture {
> buf_ops_destroy(data.bops);
> drm_close_driver(data.drm_fd);
More information about the igt-dev
mailing list