Re: [Mesa-dev] vlVaQueryImageFormats and vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities also return unsupported formats

2015-08-24 Thread Christian König
On 24.08.2015 15:34, Julien Isorce wrote: Hi, Thx for your answers. Actually I also realized that "vaQueryImageFormats" is maybe more related to what formats "vaCreateImage" supports. And actually in mesa, vlVaCreateImage can create image for all formats NV12, YV12, YUYV, UYVY, BGRA. So wha

Re: [Mesa-dev] vlVaQueryImageFormats and vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities also return unsupported formats

2015-08-24 Thread Julien Isorce
Hi, Thx for your answers. Actually I also realized that "vaQueryImageFormats" is maybe more related to what formats "vaCreateImage" supports. And actually in mesa, vlVaCreateImage can create image for all formats NV12, YV12, YUYV, UYVY, BGRA. So what I am looking for is a way to retrieve what fo

Re: [Mesa-dev] vlVaQueryImageFormats and vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities also return unsupported formats

2015-08-21 Thread Christian König
On 21.08.2015 18:30, Ilia Mirkin wrote: On Fri, Aug 21, 2015 at 12:22 PM, Julien Isorce wrote: What is the purpose of checking PIPE_VIDEO_PROFILE_UNKNOWN : http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/nouveau_vp3_video.c#n486 and http://cgit.freedesktop.org/mesa/mesa/t

Re: [Mesa-dev] vlVaQueryImageFormats and vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities also return unsupported formats

2015-08-21 Thread Ilia Mirkin
On Fri, Aug 21, 2015 at 12:22 PM, Julien Isorce wrote: > What is the purpose of checking PIPE_VIDEO_PROFILE_UNKNOWN : > http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/nouveau_vp3_video.c#n486 > and > http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/radeon/rade

[Mesa-dev] vlVaQueryImageFormats and vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities also return unsupported formats

2015-08-21 Thread Julien Isorce
Hi, vlVaQueryImageFormats (or vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities) implementation call pscreen->is_video_format_supported with input profile equal to PIPE_VIDEO_PROFILE_UNKNOWN. Problem is that "nouveau_vp3_screen_video_supported" or "rvid_is_format_supported" will returns several f