From 19052bb86bf158c80123974cc79eb53cba3ef500 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Wed, 4 Dec 2019 15:49:11 +0200 Subject: lib: Add vebox copy support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To produce surfaces that are compressed using the media compression format we need to use one of the media engines. The simplest way for this is to use the vebox engine's tiling convert command, so add support for this. v2: - Rebase on latest igt. (Mika) Cc: Mika Kahola Cc: Brian Welty Cc: Chris Wilson Cc: Ville Syrjälä Signed-off-by: Imre Deak Reviewed-by: Mika Kahola --- lib/intel_batchbuffer.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/intel_batchbuffer.c') diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c index 3828ba75..51aae4dc 100644 --- a/lib/intel_batchbuffer.c +++ b/lib/intel_batchbuffer.c @@ -37,6 +37,7 @@ #include "intel_bufmgr.h" #include "intel_chipset.h" #include "intel_reg.h" +#include "veboxcopy.h" #include "rendercopy.h" #include "media_fill.h" #include "ioctl_wrappers.h" @@ -850,6 +851,16 @@ igt_render_copyfunc_t igt_get_render_copyfunc(int devid) return copy; } +igt_vebox_copyfunc_t igt_get_vebox_copyfunc(int devid) +{ + igt_vebox_copyfunc_t copy = NULL; + + if (IS_GEN12(devid)) + copy = gen12_vebox_copyfunc; + + return copy; +} + /** * igt_get_media_fillfunc: * @devid: pci device id -- cgit v1.2.3