anv: Enable Vulkan 1.2 support

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Iván Briano
2019-09-16 15:41:45 -07:00
committed by Jason Ekstrand
parent c616627f63
commit 4ef3f7e3d3
7 changed files with 20 additions and 19 deletions

View File

@@ -446,9 +446,9 @@ VkResult genX(CreateSampler)(
break;
}
#if GEN_GEN >= 9
case VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO_EXT: {
VkSamplerReductionModeCreateInfoEXT *sampler_reduction =
(VkSamplerReductionModeCreateInfoEXT *) ext;
case VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO: {
VkSamplerReductionModeCreateInfo *sampler_reduction =
(VkSamplerReductionModeCreateInfo *) ext;
sampler_reduction_mode =
vk_to_gen_sampler_reduction_mode[sampler_reduction->reductionMode];
enable_sampler_reduction = true;