From a2a7846d37012645975381263be27af4e31901ea Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 25 Sep 2017 18:46:16 +0100 Subject: anv/apply_pipeline_layout: Prepare for multi-planar images Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand --- src/intel/vulkan/genX_state.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/intel/vulkan/genX_state.c') diff --git a/src/intel/vulkan/genX_state.c b/src/intel/vulkan/genX_state.c index d016aff4a54..81570825a54 100644 --- a/src/intel/vulkan/genX_state.c +++ b/src/intel/vulkan/genX_state.c @@ -171,6 +171,8 @@ VkResult genX(CreateSampler)( if (!sampler) return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); + sampler->n_planes = 1; + uint32_t border_color_offset = device->border_colors.offset + pCreateInfo->borderColor * 64; -- cgit v1.2.3