anv/lower_ycbcr: Use the binding array size for bounds checks
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Aug 2018 22:11:57 +0000 (15:11 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 17 Aug 2018 15:50:28 +0000 (10:50 -0500)
commit320dacb0a051cd1736e0976f70467b68281edfbf
treeb2cb1a0a9e38c9509e98297272b35e705c24fbcb
parent459ec5265c18d1aa3623e1a21e31cf46c6a942e1
anv/lower_ycbcr: Use the binding array size for bounds checks

Because lower_ycbcr gets called before apply_pipeline_layout, the
indices are all logical and the binding layout HW size is actually too
big for the bounds check.  We should just use the regular logical array
size instead.

Fixes: f3e91e78a33 "anv: add nir lowering pass for ycbcr textures"
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_nir_lower_ycbcr_textures.c