anv/lower_ycbcr: make sure to set 0s on all components
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 26 Oct 2018 14:02:06 +0000 (15:02 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 13 Nov 2018 18:56:21 +0000 (18:56 +0000)
commitfe3b7fe98295a26588053426feee01e8d2179061
tree346357cdcab39ab2280f9dcdbf3847bfceabc6d2
parentee8d65c25a3419b07e76816930a4f917064e0f6f
anv/lower_ycbcr: make sure to set 0s on all components

To play around with debugging, we might want to disable one or the
other component. Having 0s as default values makes this work.
Otherwise we might have NULL components, leading to crashes.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_nir_lower_ycbcr_textures.c