diff options
author | Samuel Pitoiset <[email protected]> | 2019-10-15 08:58:55 +0200 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2020-01-15 08:42:25 -0600 |
commit | efdf9d8969a88341660e609744d18061b289c7d3 (patch) | |
tree | 03fedfaa30979bb12745e43daa5889d2f3edad43 /src/amd/vulkan/radv_device.c | |
parent | 65e215e6f3aa1478318750365c82e993f78c0c97 (diff) |
radv: update VK_EXT_sampler_filter_minmax for Vulkan 1.2
Promoted to Vulkan 1.2 with the EXT suffix omitted.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index d39ff6c3c4d..ff13daf9851 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1437,9 +1437,9 @@ void radv_GetPhysicalDeviceProperties2( properties->maxMemoryAllocationSize = RADV_MAX_MEMORY_ALLOCATION_SIZE; break; } - case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES_EXT: { - VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT *properties = - (VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT *)ext; + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES: { + VkPhysicalDeviceSamplerFilterMinmaxProperties *properties = + (VkPhysicalDeviceSamplerFilterMinmaxProperties *)ext; /* GFX6-8 only support single channel min/max filter. */ properties->filterMinmaxImageComponentMapping = pdevice->rad_info.chip_class >= GFX9; properties->filterMinmaxSingleComponentFormats = true; @@ -6661,7 +6661,7 @@ radv_tex_aniso_filter(unsigned filter) } static unsigned -radv_tex_filter_mode(VkSamplerReductionModeEXT mode) +radv_tex_filter_mode(VkSamplerReductionMode mode) { switch (mode) { case VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT: @@ -6702,9 +6702,9 @@ radv_init_sampler(struct radv_device *device, unsigned filter_mode = V_008F30_SQ_IMG_FILTER_MODE_BLEND; unsigned depth_compare_func = V_008F30_SQ_TEX_DEPTH_COMPARE_NEVER; - const struct VkSamplerReductionModeCreateInfoEXT *sampler_reduction = + const struct VkSamplerReductionModeCreateInfo *sampler_reduction = vk_find_struct_const(pCreateInfo->pNext, - SAMPLER_REDUCTION_MODE_CREATE_INFO_EXT); + SAMPLER_REDUCTION_MODE_CREATE_INFO); if (sampler_reduction) filter_mode = radv_tex_filter_mode(sampler_reduction->reductionMode); |