diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2014-04-19 00:12:41 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-05-26 12:14:17 +0800 |
commit | cd9d671b88b6f999142a8a90a86c5b42021e6ee5 (patch) | |
tree | e23ce3ae58228e86d94aa03b566f7c0de53d5d15 /src/i965_device_info.c | |
parent | 69e26f5ca4cad4ac69d47fa0db50f037c197c079 (diff) |
posst_processing_context_init()/finalize() callback functions for each platform
It is to reduce the usage of IS_GENxxx() as well.
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 77b6a72504d917af9335ab94f6ecbefb8b087206)
Diffstat (limited to 'src/i965_device_info.c')
-rw-r--r-- | src/i965_device_info.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/i965_device_info.c b/src/i965_device_info.c index a15a31b..f040592 100644 --- a/src/i965_device_info.c +++ b/src/i965_device_info.c @@ -36,6 +36,7 @@ static const struct hw_codec_info g4x_hw_codec_info = { .enc_hw_context_init = NULL, .proc_hw_context_init = NULL, .render_init = genx_render_init, + .post_processing_context_init = NULL, .max_width = 2048, .max_height = 2048, @@ -46,11 +47,14 @@ static const struct hw_codec_info g4x_hw_codec_info = { }; extern struct hw_context *ironlake_dec_hw_context_init(VADriverContextP, struct object_config *); +extern void i965_post_processing_context_init(VADriverContextP, void *, struct intel_batchbuffer *); + static const struct hw_codec_info ilk_hw_codec_info = { .dec_hw_context_init = ironlake_dec_hw_context_init, .enc_hw_context_init = NULL, .proc_hw_context_init = i965_proc_context_init, .render_init = genx_render_init, + .post_processing_context_init = i965_post_processing_context_init, .max_width = 2048, .max_height = 2048, @@ -70,6 +74,7 @@ static const struct hw_codec_info snb_hw_codec_info = { .enc_hw_context_init = gen6_enc_hw_context_init, .proc_hw_context_init = i965_proc_context_init, .render_init = genx_render_init, + .post_processing_context_init = i965_post_processing_context_init, .max_width = 2048, .max_height = 2048, @@ -97,6 +102,7 @@ static const struct hw_codec_info ivb_hw_codec_info = { .enc_hw_context_init = gen7_enc_hw_context_init, .proc_hw_context_init = i965_proc_context_init, .render_init = genx_render_init, + .post_processing_context_init = i965_post_processing_context_init, .max_width = 4096, .max_height = 4096, @@ -128,6 +134,7 @@ static const struct hw_codec_info hsw_hw_codec_info = { .enc_hw_context_init = gen75_enc_hw_context_init, .proc_hw_context_init = gen75_proc_context_init, .render_init = genx_render_init, + .post_processing_context_init = i965_post_processing_context_init, .max_width = 4096, .max_height = 4096, @@ -157,11 +164,13 @@ static const struct hw_codec_info hsw_hw_codec_info = { extern struct hw_context *gen8_dec_hw_context_init(VADriverContextP, struct object_config *); extern struct hw_context *gen8_enc_hw_context_init(VADriverContextP, struct object_config *); +extern void gen8_post_processing_context_init(VADriverContextP, void *, struct intel_batchbuffer *); static const struct hw_codec_info bdw_hw_codec_info = { .dec_hw_context_init = gen8_dec_hw_context_init, .enc_hw_context_init = gen8_enc_hw_context_init, .proc_hw_context_init = gen75_proc_context_init, .render_init = gen8_render_init, + .post_processing_context_init = gen8_post_processing_context_init, .max_width = 4096, .max_height = 4096, |