summaryrefslogtreecommitdiff
path: root/lib/intel_batchbuffer.c
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2019-12-04 15:49:11 +0200
committerImre Deak <imre.deak@intel.com>2019-12-09 10:30:01 +0200
commit19052bb86bf158c80123974cc79eb53cba3ef500 (patch)
treea4c66b867bdc77c135e88cdcaadcd3eb2b913709 /lib/intel_batchbuffer.c
parentd999a7c546764cd6c84efd3e55583b69a4d82e9f (diff)
lib: Add vebox copy support
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 <mika.kahola@intel.com> Cc: Brian Welty <brian.welty@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Diffstat (limited to 'lib/intel_batchbuffer.c')
-rw-r--r--lib/intel_batchbuffer.c11
1 files changed, 11 insertions, 0 deletions
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