[Mesa-dev] [PATCH] radeon/video: Return false explicitly for HEVC if not the case

Leo Liu leo.liu at amd.com
Wed Aug 23 14:44:09 UTC 2017


Hi Nicolai,

Thanks for pointing out the issue. Appreciated.

Leo


On 08/23/2017 10:38 AM, Nicolai Hähnle wrote:
> On 23.08.2017 15:55, Leo Liu wrote:
>> Signed-off-by: Leo Liu <leo.liu at amd.com>
>
> Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
>
>
>> ---
>>   src/gallium/drivers/radeon/radeon_video.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/src/gallium/drivers/radeon/radeon_video.c 
>> b/src/gallium/drivers/radeon/radeon_video.c
>> index 7c2553364e..99b6676fee 100644
>> --- a/src/gallium/drivers/radeon/radeon_video.c
>> +++ b/src/gallium/drivers/radeon/radeon_video.c
>> @@ -280,6 +280,7 @@ int rvid_get_video_param(struct pipe_screen *screen,
>>                       profile == PIPE_VIDEO_PROFILE_HEVC_MAIN_10);
>>               else if (rscreen->family >= CHIP_CARRIZO)
>>                   return profile == PIPE_VIDEO_PROFILE_HEVC_MAIN;
>> +            return false;
>>           case PIPE_VIDEO_FORMAT_JPEG:
>>               if (rscreen->family < CHIP_CARRIZO || rscreen->family 
>> >= CHIP_VEGA10)
>>                   return false;
>>
>
>



More information about the mesa-dev mailing list