[Libva] [PATCH Libva-intel-driver 04/18] Encoding: Enlarge VME command buffer to pass more parameter for VME MEDIA_OBJECT command on Ivy
Zhao, Yakui
yakui.zhao at intel.com
Mon Jan 12 05:01:27 PST 2015
From: Zhao Yakui <yakui.zhao at intel.com>
Currently the length of VME MEDIA_OBJECT command on Ivy can't exceed 8 dwords.
If more parameter needs to be passed, the buffer length should be enlarged.
Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
---
src/gen7_vme.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gen7_vme.c b/src/gen7_vme.c
index e66acb1..8f57e01 100644
--- a/src/gen7_vme.c
+++ b/src/gen7_vme.c
@@ -227,7 +227,7 @@ gen7_vme_output_vme_batchbuffer_setup(VADriverContextP ctx,
int height_in_mbs = pSequenceParameter->picture_height_in_mbs;
vme_context->vme_batchbuffer.num_blocks = width_in_mbs * height_in_mbs + 1;
- vme_context->vme_batchbuffer.size_block = 32; /* 2 OWORDs */
+ vme_context->vme_batchbuffer.size_block = 64; /* 4 OWORDs */
vme_context->vme_batchbuffer.pitch = 16;
vme_context->vme_batchbuffer.bo = dri_bo_alloc(i965->intel.bufmgr,
"VME batchbuffer",
--
1.7.10.1
More information about the Libva
mailing list