Thread (61 messages) 61 messages, 4 authors, 2021-03-09

Re: [igt-dev] [PATCH i-g-t v21 15/35] lib/intel_batchbuffer: Use relocations in intel-bb up to gen12

From: Chris Wilson <hidden>
Date: 2021-03-05 14:27:11

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
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help