Skip to content
Snippets Groups Projects
Commit 1737c980 authored by Simon McVittie's avatar Simon McVittie
Browse files

Merge branch 'wip/mesa9751' into 'main'

check-va-api: Don't claim to have provided a reference frame

Closes #117

See merge request !587
parents 58c01a62 88d67714
No related branches found
No related tags found
1 merge request!587check-va-api: Don't claim to have provided a reference frame
......@@ -123,7 +123,7 @@ static VAPictureParameterBufferH264 pic_param_h264 =
/* The size has been arbitrarily chosen */
.picture_width_in_mbs_minus1 = 10,
.picture_height_in_mbs_minus1 = 10,
.num_ref_frames = 1,
.num_ref_frames = 0,
};
static VAIQMatrixBufferH264 iq_matrix_h264 =
......@@ -262,6 +262,10 @@ test_decode_capability (VADisplay va_display,
do_vaapi_or_exit (vaCreateConfig (va_display, profile, VAEntrypointVLD,
NULL, 0, &config));
do_vaapi_or_exit (vaCreateContext (va_display, config, width, height,
VA_PROGRESSIVE, surfaces,
surfaces_count, &context));
do_vaapi_or_exit (vaCreateBuffer (va_display, context,
VAPictureParameterBufferType,
in_pic_param_size, 1, in_pic_param,
......@@ -282,10 +286,6 @@ test_decode_capability (VADisplay va_display,
in_clip_size, 1, in_clip,
&slice_data_buf));
do_vaapi_or_exit (vaCreateContext (va_display, config, width, height,
VA_PROGRESSIVE, surfaces,
surfaces_count, &context));
do_vaapi_or_exit (vaBeginPicture (va_display, context, surfaces[1]));
/* Send the buffers to the server */
do_vaapi_or_exit (vaRenderPicture (va_display, context, &pic_param_buf, 1));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment