[Libva] [PATCH Intel-vaapi 3/3] BDW: Follow the spec to add the MEDIA_STATE_FLUSH before MEDIA_INTERFACE_LOAD
yakui.zhao at intel.com
yakui.zhao at intel.com
Fri Feb 28 00:09:35 PST 2014
From: Zhao Yakui <yakui.zhao at intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
---
src/i965_gpe_utils.c | 5 ++++-
src/i965_post_processing.c | 6 +++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/i965_gpe_utils.c b/src/i965_gpe_utils.c
index 6bbad2d..c97220a 100644
--- a/src/i965_gpe_utils.c
+++ b/src/i965_gpe_utils.c
@@ -1050,7 +1050,10 @@ gen8_gpe_idrt(VADriverContextP ctx,
struct i965_gpe_context *gpe_context,
struct intel_batchbuffer *batch)
{
- BEGIN_BATCH(batch, 4);
+ BEGIN_BATCH(batch, 6);
+
+ OUT_BATCH(batch, CMD_MEDIA_STATE_FLUSH);
+ OUT_BATCH(batch, 0);
OUT_BATCH(batch, CMD_MEDIA_INTERFACE_LOAD | (4 - 2));
OUT_BATCH(batch, 0);
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c
index 0c3d7f8..bbd1426 100755
--- a/src/i965_post_processing.c
+++ b/src/i965_post_processing.c
@@ -5565,7 +5565,11 @@ gen8_interface_descriptor_load(VADriverContextP ctx,
{
struct intel_batchbuffer *batch = pp_context->batch;
- BEGIN_BATCH(batch, 4);
+ BEGIN_BATCH(batch, 6);
+
+ OUT_BATCH(batch, CMD_MEDIA_STATE_FLUSH);
+ OUT_BATCH(batch, 0);
+
OUT_BATCH(batch, CMD_MEDIA_INTERFACE_DESCRIPTOR_LOAD | (4 - 2));
OUT_BATCH(batch, 0);
OUT_BATCH(batch,
--
1.7.12-rc1
More information about the Libva
mailing list