[igt-dev] [PATCH i-g-t 35/77] tests/i915/gem_exec_params: Convert to intel_ctx_t
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Mon Jun 14 19:24:40 UTC 2021
On Mon, Jun 14, 2021 at 11:36:50AM -0500, Jason Ekstrand wrote:
> Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
> ---
> tests/i915/gem_exec_params.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/tests/i915/gem_exec_params.c b/tests/i915/gem_exec_params.c
> index 6ab1ab110..729d38a43 100644
> --- a/tests/i915/gem_exec_params.c
> +++ b/tests/i915/gem_exec_params.c
> @@ -299,8 +299,10 @@ static void test_larger_than_life_batch(int fd)
> {
> const struct intel_execution_engine2 *e;
> uint64_t size = 1ULL << 32; /* batch_len is __u32 as per the ABI */
> + const intel_ctx_t *ctx = intel_ctx_create_all_physical(fd);
> struct drm_i915_gem_exec_object2 exec = {
> .handle = batch_create_size(fd, size),
> + .rsvd1 = ctx->id,
> };
> struct drm_i915_gem_execbuffer2 execbuf = {
> .buffers_ptr = to_user_pointer(&exec),
> @@ -316,7 +318,7 @@ static void test_larger_than_life_batch(int fd)
> igt_require(size < gem_aperture_size(fd));
> intel_require_memory(2, size, CHECK_RAM); /* batch + shadow */
>
> - __for_each_physical_engine(fd, e) {
> + for_each_ctx_engine(fd, ctx, e) {
> /* Keep the batch_len implicit [0] */
> execbuf.flags = e->flags;
>
Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
--
Zbigniew
> --
> 2.31.1
>
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
More information about the igt-dev
mailing list