summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_state.c
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2017-09-25 18:46:16 +0100
committerLionel Landwerlin <[email protected]>2017-10-06 16:32:19 +0100
commita2a7846d37012645975381263be27af4e31901ea (patch)
treefce1b9e61799ce09932e3d1ae7494824a7e8a5b5 /src/intel/vulkan/genX_state.c
parent72aec2060fb47f0423770891ac64e927b8f92790 (diff)
anv/apply_pipeline_layout: Prepare for multi-planar images
Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_state.c')
-rw-r--r--src/intel/vulkan/genX_state.c2
1 files changed, 2 insertions, 0 deletions
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;