mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
frontends/va: Don't require exact match for packed headers
Apparently it's valid to create config with any combination of supported packed headers. Fixes libva-utils tests: GetCreateConfig/VAAPIGetCreateConfig.CreateConfigWithAttributes/235, where GetParam() = (32:VAProfileAV1Profile0, 6:VAEntrypointEncSlice) GetCreateConfig/VAAPIGetCreateConfig.CreateConfigPackedHeaders/235, where GetParam() = (32:VAProfileAV1Profile0, 6:VAEntrypointEncSlice) QuerySurfaces/VAAPIQuerySurfaces.QuerySurfacesWithConfigAttribs/235, where GetParam() = (32:VAProfileAV1Profile0, 6:VAEntrypointEncSlice) CreateSurfaces/VAAPICreateSurfaces.CreateSurfacesWithConfigAttribs/3995, where GetParam() = (32:VAProfileAV1Profile0, 6:VAEntrypointEncSlice, 16x16) Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29934>
This commit is contained in:
parent
a3f35964ba
commit
49eda4d742
1 changed files with 1 additions and 1 deletions
|
|
@ -722,7 +722,7 @@ vlVaCreateConfig(VADriverContextP ctx, VAProfile profile, VAEntrypoint entrypoin
|
|||
!= PIPE_VIDEO_FORMAT_MPEG4_AVC) &&
|
||||
((attrib_list[i].value != 1) || u_reduce_video_profile(ProfileToPipe(profile))
|
||||
!= PIPE_VIDEO_FORMAT_HEVC) &&
|
||||
((attrib_list[i].value != 3) || u_reduce_video_profile(ProfileToPipe(profile))
|
||||
((attrib_list[i].value > 3) || u_reduce_video_profile(ProfileToPipe(profile))
|
||||
!= PIPE_VIDEO_FORMAT_AV1))) {
|
||||
FREE(config);
|
||||
return VA_STATUS_ERROR_INVALID_VALUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue