Re: [Mesa-dev] [PATCH 11/15] anv: add new formats KHR_sampler_ycbcr_conversion

2017-09-25 Thread Lionel Landwerlin
On 18/09/17 20:27, Jason Ekstrand wrote: On Sun, Sep 17, 2017 at 3:31 AM, Lionel Landwerlin mailto:lionel.g.landwer...@intel.com>> wrote: On 15/09/17 23:36, Jason Ekstrand wrote:  struct anv_format_plane {     enum isl_format isl_format:16;     struct isl_swizzle

Re: [Mesa-dev] [PATCH 11/15] anv: add new formats KHR_sampler_ycbcr_conversion

2017-09-18 Thread Jason Ekstrand
On Sun, Sep 17, 2017 at 3:31 AM, Lionel Landwerlin < lionel.g.landwer...@intel.com> wrote: > On 15/09/17 23:36, Jason Ekstrand wrote: > > struct anv_format_plane { >> enum isl_format isl_format:16; >> struct isl_swizzle swizzle; >> + >> + /* Whether this plane contains chroma channels *

Re: [Mesa-dev] [PATCH 11/15] anv: add new formats KHR_sampler_ycbcr_conversion

2017-09-17 Thread Emil Velikov
On 15 September 2017 at 23:36, Jason Ekstrand wrote: >> --- a/src/intel/vulkan/anv_private.h >> +++ b/src/intel/vulkan/anv_private.h >> @@ -2162,12 +2162,22 @@ anv_pipeline_compile_cs(struct anv_pipeline >> *pipeline, >> struct anv_format_plane { >> enum isl_format isl_format:16; >> stru

Re: [Mesa-dev] [PATCH 11/15] anv: add new formats KHR_sampler_ycbcr_conversion

2017-09-17 Thread Lionel Landwerlin
On 15/09/17 23:36, Jason Ekstrand wrote:  struct anv_format_plane {     enum isl_format isl_format:16;     struct isl_swizzle swizzle; + +   /* Whether this plane contains chroma channels */ +   bool has_chroma; + +   /* For downscaling of YUV planes */ +   ui

Re: [Mesa-dev] [PATCH 11/15] anv: add new formats KHR_sampler_ycbcr_conversion

2017-09-15 Thread Jason Ekstrand
On Fri, Sep 15, 2017 at 7:11 AM, Lionel Landwerlin < lionel.g.landwer...@intel.com> wrote: > Adding new downsampling factors for each planes. > > Signed-off-by: Lionel Landwerlin > --- > src/intel/vulkan/anv_formats.c| 158 ++ > ++-- > src/intel/vulkan/anv_pri

[Mesa-dev] [PATCH 11/15] anv: add new formats KHR_sampler_ycbcr_conversion

2017-09-15 Thread Lionel Landwerlin
Adding new downsampling factors for each planes. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_formats.c| 158 -- src/intel/vulkan/anv_private.h| 10 +++ src/intel/vulkan/vk_format_info.h | 27 +++ 3 files changed, 189 insertions(+),