diff options
| author | 2021-03-23 20:27:17 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:24 -0400 | |
| commit | 3d07cef009cf9e287744c7771c67166ef5761ce8 (patch) | |
| tree | 78f4fea18d9facb72850b4c2fe115e96b7af8f26 /src/video_core/vulkan_common | |
| parent | vk_pipeline_cache: Fix ReleaseContents order (diff) | |
| download | yuzu-3d07cef009cf9e287744c7771c67166ef5761ce8.tar.gz yuzu-3d07cef009cf9e287744c7771c67166ef5761ce8.tar.xz yuzu-3d07cef009cf9e287744c7771c67166ef5761ce8.zip | |
shader: Implement VOTE
Diffstat (limited to 'src/video_core/vulkan_common')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 1 | ||||
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index f0e5b098c..009b74f12 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp | |||
| @@ -737,6 +737,7 @@ std::vector<const char*> Device::LoadExtensions(bool requires_surface) { | |||
| 737 | subgroup_properties.maxSubgroupSize >= GuestWarpSize) { | 737 | subgroup_properties.maxSubgroupSize >= GuestWarpSize) { |
| 738 | extensions.push_back(VK_EXT_SUBGROUP_SIZE_CONTROL_EXTENSION_NAME); | 738 | extensions.push_back(VK_EXT_SUBGROUP_SIZE_CONTROL_EXTENSION_NAME); |
| 739 | guest_warp_stages = subgroup_properties.requiredSubgroupSizeStages; | 739 | guest_warp_stages = subgroup_properties.requiredSubgroupSizeStages; |
| 740 | ext_subgroup_size_control = true; | ||
| 740 | } | 741 | } |
| 741 | } else { | 742 | } else { |
| 742 | is_warp_potentially_bigger = true; | 743 | is_warp_potentially_bigger = true; |
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h index 82bccc8f0..c268a4f8d 100644 --- a/src/video_core/vulkan_common/vulkan_device.h +++ b/src/video_core/vulkan_common/vulkan_device.h | |||
| @@ -193,6 +193,11 @@ public: | |||
| 193 | return ext_shader_viewport_index_layer; | 193 | return ext_shader_viewport_index_layer; |
| 194 | } | 194 | } |
| 195 | 195 | ||
| 196 | /// Returns true if the device supports VK_EXT_subgroup_size_control. | ||
| 197 | bool IsExtSubgroupSizeControlSupported() const { | ||
| 198 | return ext_subgroup_size_control; | ||
| 199 | } | ||
| 200 | |||
| 196 | /// Returns true if the device supports VK_EXT_transform_feedback. | 201 | /// Returns true if the device supports VK_EXT_transform_feedback. |
| 197 | bool IsExtTransformFeedbackSupported() const { | 202 | bool IsExtTransformFeedbackSupported() const { |
| 198 | return ext_transform_feedback; | 203 | return ext_transform_feedback; |
| @@ -297,6 +302,7 @@ private: | |||
| 297 | bool ext_depth_range_unrestricted{}; ///< Support for VK_EXT_depth_range_unrestricted. | 302 | bool ext_depth_range_unrestricted{}; ///< Support for VK_EXT_depth_range_unrestricted. |
| 298 | bool ext_shader_viewport_index_layer{}; ///< Support for VK_EXT_shader_viewport_index_layer. | 303 | bool ext_shader_viewport_index_layer{}; ///< Support for VK_EXT_shader_viewport_index_layer. |
| 299 | bool ext_tooling_info{}; ///< Support for VK_EXT_tooling_info. | 304 | bool ext_tooling_info{}; ///< Support for VK_EXT_tooling_info. |
| 305 | bool ext_subgroup_size_control{}; ///< Support for VK_EXT_subgroup_size_control. | ||
| 300 | bool ext_transform_feedback{}; ///< Support for VK_EXT_transform_feedback. | 306 | bool ext_transform_feedback{}; ///< Support for VK_EXT_transform_feedback. |
| 301 | bool ext_custom_border_color{}; ///< Support for VK_EXT_custom_border_color. | 307 | bool ext_custom_border_color{}; ///< Support for VK_EXT_custom_border_color. |
| 302 | bool ext_extended_dynamic_state{}; ///< Support for VK_EXT_extended_dynamic_state. | 308 | bool ext_extended_dynamic_state{}; ///< Support for VK_EXT_extended_dynamic_state. |