Re: [Mesa-dev] [PATCH] st/omx/enc: fix blit setup for YUV LoadImage

2018-04-28 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Fri, Apr 27, 2018 at 8:32 AM, Leo Liu wrote: > The blit here involves scaling since it's copying from I8 format to R8G8 > format. > Half of source will be filtered out with PIPE_TEX_FILTER_NEAREST > instruction, it >

[Mesa-dev] [PATCH] st/omx/enc: fix blit setup for YUV LoadImage

2018-04-27 Thread Leo Liu
The blit here involves scaling since it's copying from I8 format to R8G8 format. Half of source will be filtered out with PIPE_TEX_FILTER_NEAREST instruction, it looks that GPU always uses the second half as source. Currently we use "1" as the start point of x for R, then causing 1 source pixel of