diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2012-10-31 16:47:57 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2012-10-31 22:04:07 +0800 |
commit | fb0bef337776499a1ab1926f27fd25ecd5971c5e (patch) | |
tree | 98594fcd7488f5efde37e3a0410cab5a973bda5c /src/gen75_mfd.c | |
parent | 264c88a77f5794ae0b4bd886468cc7aa695c6f6b (diff) | |
download | libva-intel-driver-fb0bef337776499a1ab1926f27fd25ecd5971c5e.tar.gz libva-intel-driver-fb0bef337776499a1ab1926f27fd25ecd5971c5e.tar.bz2 libva-intel-driver-fb0bef337776499a1ab1926f27fd25ecd5971c5e.zip |
Allow to create batchbuffer based on the expected buffer size
This is to support the 4Kx4K encoding on Haswell. Otherwise the default batch
buffer size can't hold the encoding command for 4Kx4K encoding.
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'src/gen75_mfd.c')
-rw-r--r-- | src/gen75_mfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gen75_mfd.c b/src/gen75_mfd.c index 4d63c83..a0aa960 100644 --- a/src/gen75_mfd.c +++ b/src/gen75_mfd.c @@ -3399,7 +3399,7 @@ gen75_dec_hw_context_init(VADriverContextP ctx, struct object_config *obj_config gen7_mfd_context->base.destroy = gen75_mfd_context_destroy; gen7_mfd_context->base.run = gen75_mfd_decode_picture; - gen7_mfd_context->base.batch = intel_batchbuffer_new(intel, I915_EXEC_RENDER); + gen7_mfd_context->base.batch = intel_batchbuffer_new(intel, I915_EXEC_RENDER, 0); for (i = 0; i < ARRAY_ELEMS(gen7_mfd_context->reference_surface); i++) { gen7_mfd_context->reference_surface[i].surface_id = VA_INVALID_ID; |