From 83dd0cace6979ac5e597c2aa2e3dce51586df0af Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 13 Feb 2020 09:22:04 +0100 Subject: [PATCH] radv: enable VK_EXT_sampler_filter_minmax on GFX6 Works fine. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_device.c | 2 +- src/amd/vulkan/radv_extensions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 183f96c1698..348104a186c 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1238,7 +1238,7 @@ void radv_GetPhysicalDeviceFeatures2( features->descriptorBindingPartiallyBound = true; features->descriptorBindingVariableDescriptorCount = true; features->runtimeDescriptorArray = true; - features->samplerFilterMinmax = pdevice->rad_info.chip_class >= GFX7; + features->samplerFilterMinmax = true; features->scalarBlockLayout = pdevice->rad_info.chip_class >= GFX7; features->imagelessFramebuffer = true; features->uniformBufferStandardLayout = true; diff --git a/src/amd/vulkan/radv_extensions.py b/src/amd/vulkan/radv_extensions.py index 32e14a640e2..1cb0a75ad07 100644 --- a/src/amd/vulkan/radv_extensions.py +++ b/src/amd/vulkan/radv_extensions.py @@ -138,7 +138,7 @@ EXTENSIONS = [ Extension('VK_EXT_queue_family_foreign', 1, True), # Disable sample locations on GFX10 until the CTS failures have been resolved. Extension('VK_EXT_sample_locations', 1, 'device->rad_info.chip_class < GFX10'), - Extension('VK_EXT_sampler_filter_minmax', 1, 'device->rad_info.chip_class >= GFX7'), + Extension('VK_EXT_sampler_filter_minmax', 1, True), Extension('VK_EXT_scalar_block_layout', 1, 'device->rad_info.chip_class >= GFX7'), Extension('VK_EXT_shader_demote_to_helper_invocation',1, 'device->use_aco'), Extension('VK_EXT_shader_viewport_index_layer', 1, True), -- 2.30.2