diff options
author | Samuel Pitoiset <[email protected]> | 2019-05-20 11:46:33 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-06-21 14:50:38 +0200 |
commit | 9bf47fefe0c3f9ac33dfeb6af2a90986b9fa8145 (patch) | |
tree | 733d3b640ed06ad947fbffaa97ed2c6cf200cecc /src/amd/vulkan/radv_device.c | |
parent | e67fc11c26111ae7aa8d140a5f62074b5e0b43c3 (diff) |
radv: add support for VK_KHR_depth_stencil_resolve
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 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 4d43f25aee0..26b31cff9f1 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1383,6 +1383,27 @@ void radv_GetPhysicalDeviceProperties2( properties->variableSampleLocations = VK_FALSE; break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES_KHR: { + VkPhysicalDeviceDepthStencilResolvePropertiesKHR *properties = + (VkPhysicalDeviceDepthStencilResolvePropertiesKHR *)ext; + + /* We support all of the depth resolve modes */ + properties->supportedDepthResolveModes = + VK_RESOLVE_MODE_SAMPLE_ZERO_BIT_KHR | + VK_RESOLVE_MODE_AVERAGE_BIT_KHR | + VK_RESOLVE_MODE_MIN_BIT_KHR | + VK_RESOLVE_MODE_MAX_BIT_KHR; + + /* Average doesn't make sense for stencil so we don't support that */ + properties->supportedStencilResolveModes = + VK_RESOLVE_MODE_SAMPLE_ZERO_BIT_KHR | + VK_RESOLVE_MODE_MIN_BIT_KHR | + VK_RESOLVE_MODE_MAX_BIT_KHR; + + properties->independentResolveNone = VK_TRUE; + properties->independentResolve = VK_TRUE; + break; + } default: break; } |