From 17d63e49685ac51d62ba2dba80167de96e1b6c5f Mon Sep 17 00:00:00 2001 From: Sean V Kelley Date: Tue, 5 Aug 2014 13:53:49 -0700 Subject: lib/chv: CHV media pipeline command sequence Enable gem_media_fill test for CHV platform. In addition to differences in media IP blocks from Broadwell, the command sequence also differs for programming the media pipeline, e.g., should not send a MEDIA_STATE_FLUSH right before the MI_BATCH_BUFFER_END of batch buffers using MEDIA_OBJECT. Uses explicit IS_BROADWELL / IS_CHERRYVIEW to distinguish in gen8 media fill handling. Signed-off-by: Sean V Kelley Reviewed-by: Xiang, Haihao Signed-off-by: Daniel Vetter --- lib/intel_batchbuffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/intel_batchbuffer.c') diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c index e8689228..2c253d5a 100644 --- a/lib/intel_batchbuffer.c +++ b/lib/intel_batchbuffer.c @@ -460,10 +460,12 @@ igt_media_fillfunc_t igt_get_media_fillfunc(int devid) { igt_media_fillfunc_t fill = NULL; - if (IS_GEN8(devid)) + if (IS_BROADWELL(devid)) fill = gen8_media_fillfunc; else if (IS_GEN7(devid)) fill = gen7_media_fillfunc; + else if (IS_CHERRYVIEW(devid)) + fill = gen8lp_media_fillfunc; return fill; } -- cgit v1.2.3