2014-09-15 2:24 GMT+02:00 Zhao, Yakui <yakui.z...@intel.com>: > On Thu, 2014-09-11 at 20:20 -0600, Zhao, Yakui wrote: >> V1->V2: Refine the call back function name from hw_codec_hook to >> preinit_hw_codec >> And it is called after VADriverContext is fully initialized. This is based >> on the comment >> from Gwenole Beauchesne. >> > > This patch set will be pushed.
That still contains issues, but I guess I won't waste my time commenting on then. Regards, Gwenole. >> Signed-off-by: Zhao Yakui <yakui.z...@intel.com> >> --- >> src/i965_drv_video.c | 3 +++ >> src/i965_drv_video.h | 1 + >> 2 files changed, 4 insertions(+) >> >> diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c >> index 3aeb77a..13e73b8 100644 >> --- a/src/i965_drv_video.c >> +++ b/src/i965_drv_video.c >> @@ -5680,6 +5680,9 @@ i965_Init(VADriverContextP ctx) >> break; >> } >> >> + if (i965->codec_info->preinit_hw_codec) >> + i965->codec_info->preinit_hw_codec(ctx, i965->codec_info); >> + >> if (i == ARRAY_ELEMS(i965_sub_ops)) { >> switch (i965->intel.device_id) { >> #undef CHIPSET >> diff --git a/src/i965_drv_video.h b/src/i965_drv_video.h >> index 97181db..b5d87c7 100644 >> --- a/src/i965_drv_video.h >> +++ b/src/i965_drv_video.h >> @@ -337,6 +337,7 @@ struct hw_codec_info >> struct hw_context *(*proc_hw_context_init)(VADriverContextP, struct >> object_config *); >> bool (*render_init)(VADriverContextP); >> void (*post_processing_context_init)(VADriverContextP, void *, struct >> intel_batchbuffer *); >> + void (*preinit_hw_codec)(VADriverContextP, struct hw_codec_info *); >> >> int max_width; >> int max_height; > > > _______________________________________________ > Libva mailing list > Libva@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/libva _______________________________________________ Libva mailing list Libva@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libva