[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_capture: Add support for local memory
Dixit, Ashutosh
ashutosh.dixit at intel.com
Wed Dec 1 22:00:42 UTC 2021
On Sun, 21 Nov 2021 23:35:33 -0800, <sai.gowtham.ch at intel.com> wrote:
>
> From: Ch Sai Gowtham <sai.gowtham.ch at intel.com>
>
> Add support for local memory region (Device memory)
>
> Signed-off-by: Ch Sai Gowtham <sai.gowtham.ch at intel.com>
> Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> ---
> tests/i915/gem_exec_capture.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/i915/gem_exec_capture.c b/tests/i915/gem_exec_capture.c
> index b80f597f..a0614ad3 100644
> --- a/tests/i915/gem_exec_capture.c
> +++ b/tests/i915/gem_exec_capture.c
> @@ -380,7 +380,7 @@ static void capture(int fd, int dir, const intel_ctx_t *ctx,
> uint64_t ahnd;
> int obj_size = 4096;
>
> - handle = gem_create(fd, obj_size);
> + handle = gem_create_in_memory_regions(fd, obj_size, REGION_LMEM(0));
Note we already have an lmem() test, so we should be doing something there too...
> ahnd = get_reloc_ahnd(fd, ctx->id);
>
> __capture1(fd, dir, ahnd, ctx, e, handle, obj_size);
> --
> 2.32.0
>
More information about the igt-dev
mailing list