anv: fix apply_pipeline_layout pass for arrays of YCbCr descriptors
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 24 May 2019 12:17:43 +0000 (13:17 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 27 May 2019 21:47:53 +0000 (22:47 +0100)
commit2042f22e28b3a16ea137ac2083beaedd855b2c5f
tree1f6cf8e6c78b270c1e23b54454164f083ebad016
parentfccced57cf484c6836e6637c0f9df90f09b344b6
anv: fix apply_pipeline_layout pass for arrays of YCbCr descriptors

When using the binding tables to access arrays of YCbCr descriptors we
did not consider the offset of the accessed element. We can't do a
simple multiple because the binding table entries are tightly packed.

For example element 0 of the array could use 2 entries/planes and
element 1 could use 2 entries/planes.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 3bb8768b9d62 ("anv: toggle on support for VK_EXT_ycbcr_image_arrays")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/intel/vulkan/anv_nir_apply_pipeline_layout.c