<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - gallium/st/va: change va max_profiles when using Radeon VCN Hardware"
href="https://bugs.freedesktop.org/show_bug.cgi?id=109107#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - gallium/st/va: change va max_profiles when using Radeon VCN Hardware"
href="https://bugs.freedesktop.org/show_bug.cgi?id=109107">bug 109107</a>
from <span class="vcard"><a class="email" href="mailto:mfk530@gmail.com" title="zhoulei <mfk530@gmail.com>"> <span class="fn">zhoulei</span></a>
</span></b>
<pre>More details:
In function VASupportedProfiles::GetSupportedVAProfiles,
<a href="https://github.com/chromium/chromium/blob/master/media/gpu/vaapi/vaapi_wrapper.cc#L571">https://github.com/chromium/chromium/blob/master/media/gpu/vaapi/vaapi_wrapper.cc#L571</a>
const int max_profiles = vaMaxNumProfiles(va_display_);
vaMaxNumProfiles will return (PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH -
PIPE_VIDEO_PROFILE_UNKNOWN) in mesa.
int num_supported_profiles;
VAStatus va_res = vaQueryConfigProfiles(va_display_, &supported_profiles[0],
&num_supported_profiles);
VA_SUCCESS_OR_RETURN(va_res, "vaQueryConfigProfiles failed", false);
if (num_supported_profiles < 0 || num_supported_profiles > max_profiles) {
LOG(ERROR) << "vaQueryConfigProfiles returned: " << num_supported_profiles;
return false;
}
(num_supported_profiles > max_profiles) is true when using RAVEN APU, so
hardware decoder is failed.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>