diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2014-10-08 08:23:30 +0800 |
---|---|---|
committer | Zhao, Yakui <yakui.zhao@intel.com> | 2014-10-08 08:23:30 +0800 |
commit | 54a1067672991bc7004d3496a486ede0feef61bf (patch) | |
tree | 746c74eb7224dca4eda04f8bace028f4edc2f9bb /src | |
parent | 80cc8a908a3cbef57e3fb25528a1474bd14a2817 (diff) | |
download | libva-intel-driver-54a1067672991bc7004d3496a486ede0feef61bf.tar.gz libva-intel-driver-54a1067672991bc7004d3496a486ede0feef61bf.tar.bz2 libva-intel-driver-54a1067672991bc7004d3496a486ede0feef61bf.zip |
change the attribute of hw_codec_info so that it can be updated dynamically
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/i965_device_info.c | 16 | ||||
-rw-r--r-- | src/i965_drv_video.c | 2 | ||||
-rw-r--r-- | src/i965_drv_video.h | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/i965_device_info.c b/src/i965_device_info.c index 0e97794..3abc137 100644 --- a/src/i965_device_info.c +++ b/src/i965_device_info.c @@ -44,7 +44,7 @@ extern struct hw_context *i965_proc_context_init(VADriverContextP, struct object extern struct hw_context *g4x_dec_hw_context_init(VADriverContextP, struct object_config *); extern bool genx_render_init(VADriverContextP); -static const struct hw_codec_info g4x_hw_codec_info = { +static struct hw_codec_info g4x_hw_codec_info = { .dec_hw_context_init = g4x_dec_hw_context_init, .enc_hw_context_init = NULL, .proc_hw_context_init = NULL, @@ -64,7 +64,7 @@ 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 = { +static 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, @@ -86,7 +86,7 @@ static const struct hw_codec_info ilk_hw_codec_info = { extern struct hw_context *gen6_dec_hw_context_init(VADriverContextP, struct object_config *); extern struct hw_context *gen6_enc_hw_context_init(VADriverContextP, struct object_config *); -static const struct hw_codec_info snb_hw_codec_info = { +static struct hw_codec_info snb_hw_codec_info = { .dec_hw_context_init = gen6_dec_hw_context_init, .enc_hw_context_init = gen6_enc_hw_context_init, .proc_hw_context_init = i965_proc_context_init, @@ -120,7 +120,7 @@ static const struct hw_codec_info snb_hw_codec_info = { extern struct hw_context *gen7_dec_hw_context_init(VADriverContextP, struct object_config *); extern struct hw_context *gen7_enc_hw_context_init(VADriverContextP, struct object_config *); -static const struct hw_codec_info ivb_hw_codec_info = { +static struct hw_codec_info ivb_hw_codec_info = { .dec_hw_context_init = gen7_dec_hw_context_init, .enc_hw_context_init = gen7_enc_hw_context_init, .proc_hw_context_init = i965_proc_context_init, @@ -158,7 +158,7 @@ static const struct hw_codec_info ivb_hw_codec_info = { extern struct hw_context *gen75_dec_hw_context_init(VADriverContextP, struct object_config *); extern struct hw_context *gen75_enc_hw_context_init(VADriverContextP, struct object_config *); extern struct hw_context *gen75_proc_context_init(VADriverContextP, struct object_config *); -static const struct hw_codec_info hsw_hw_codec_info = { +static struct hw_codec_info hsw_hw_codec_info = { .dec_hw_context_init = gen75_dec_hw_context_init, .enc_hw_context_init = gen75_enc_hw_context_init, .proc_hw_context_init = gen75_proc_context_init, @@ -202,7 +202,7 @@ 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 = { +static 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, @@ -244,7 +244,7 @@ static const struct hw_codec_info bdw_hw_codec_info = { }, }; -static const struct hw_codec_info chv_hw_codec_info = { +static struct hw_codec_info chv_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, @@ -286,7 +286,7 @@ static const struct hw_codec_info chv_hw_codec_info = { }, }; -const struct hw_codec_info * +struct hw_codec_info * i965_get_codec_info(int devid) { switch (devid) { diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index 3e479be..ba7c7be 100644 --- a/src/i965_drv_video.c +++ b/src/i965_drv_video.c @@ -5521,7 +5521,7 @@ VAStatus i965_QueryVideoProcPipelineCaps( return VA_STATUS_SUCCESS; } -extern const struct hw_codec_info *i965_get_codec_info(int devid); +extern struct hw_codec_info *i965_get_codec_info(int devid); static bool i965_driver_data_init(VADriverContextP ctx) diff --git a/src/i965_drv_video.h b/src/i965_drv_video.h index 025bef1..3478165 100644 --- a/src/i965_drv_video.h +++ b/src/i965_drv_video.h @@ -381,7 +381,7 @@ struct i965_driver_data struct object_heap buffer_heap; struct object_heap image_heap; struct object_heap subpic_heap; - const struct hw_codec_info *codec_info; + struct hw_codec_info *codec_info; _I965Mutex render_mutex; _I965Mutex pp_mutex; |