[igt-dev] [PATCH i-g-t 2/2] lib/intel_allocator: Fix invalid strategy on allocator helper code
Dixit, Ashutosh
ashutosh.dixit at intel.com
Wed Dec 29 21:05:22 UTC 2021
On Wed, 29 Dec 2021 03:48:06 -0800, Zbigniew Kempczyński wrote:
>
> During write likely it was copy-pasted and was never changed to
> valid HIGH_TO_LOW strategy. Fix this overlook.
Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Cc: Petri Latvala <petri.latvala at intel.com>
> Cc: Ashutosh Dixit <ashutosh.dixit at intel.com>
> ---
> lib/intel_allocator.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/intel_allocator.h b/lib/intel_allocator.h
> index e8d807f9a..068985637 100644
> --- a/lib/intel_allocator.h
> +++ b/lib/intel_allocator.h
> @@ -251,7 +251,7 @@ static inline uint64_t get_simple_h2l_ahnd(int fd, uint32_t ctx)
>
> return do_relocs ? 0 : intel_allocator_open_full(fd, ctx, 0, 0,
> INTEL_ALLOCATOR_SIMPLE,
> - ALLOC_STRATEGY_LOW_TO_HIGH);
> + ALLOC_STRATEGY_HIGH_TO_LOW);
> }
>
> static inline uint64_t get_reloc_ahnd(int fd, uint32_t ctx)
> --
> 2.32.0
>
More information about the igt-dev
mailing list