diff options
Diffstat (limited to 'src/gallium/state_trackers/va/context.c')
-rw-r--r-- | src/gallium/state_trackers/va/context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c index 2cb3a6c9268..70d4bac63a7 100644 --- a/src/gallium/state_trackers/va/context.c +++ b/src/gallium/state_trackers/va/context.c @@ -302,11 +302,11 @@ vlVaCreateContext(VADriverContextP ctx, VAConfigID config_id, int picture_width, switch (u_reduce_video_profile(context->templat.profile)) { case PIPE_VIDEO_FORMAT_MPEG4_AVC: context->desc.h264enc.rate_ctrl.rate_ctrl_method = config->rc; - context->desc.h264enc.frame_idx = util_hash_table_create(handle_hash, handle_compare); + context->desc.h264enc.frame_idx = util_hash_table_create_ptr_keys(); break; case PIPE_VIDEO_FORMAT_HEVC: context->desc.h265enc.rc.rate_ctrl_method = config->rc; - context->desc.h265enc.frame_idx = util_hash_table_create(handle_hash, handle_compare); + context->desc.h265enc.frame_idx = util_hash_table_create_ptr_keys(); break; default: break; |