[igt-dev] [PATCH i-g-t v21 15/35] lib/intel_batchbuffer: Use relocations in intel-bb up to gen12
Chris Wilson
chris at chris-wilson.co.uk
Fri Mar 5 14:27:08 UTC 2021
Quoting Zbigniew Kempczyński (2021-03-01 16:13:43)
> We want to use relocations as long as we can so change intel-bb
> strategy to use it as default up to gen12. For gen12 we have
> to use softpinning in ccs aux tables so there we enforce using
> allocator instead of relocations.
The use something like
static bool aux_needs_softpin(int i915)
{
return intel_gen(intel_get_drm_devid(i915)) >= 12;
}
gem_has_relocs(i915) && !aux_needs_softpin(i915)
so that the reason for the gen check is described at the point of use.
-Chris
More information about the igt-dev
mailing list