Browse Source

[vk] Adjustments to Sample Locations

pull/3115/head
CamilleLaVey 4 weeks ago
parent
commit
e49f4daabd
  1. 5
      src/video_core/vulkan_common/vulkan_device.cpp
  2. 12
      src/video_core/vulkan_common/vulkan_device.h

5
src/video_core/vulkan_common/vulkan_device.cpp

@ -1420,8 +1420,9 @@ void Device::RemoveUnsuitableExtensions() {
VK_EXT_TRANSFORM_FEEDBACK_EXTENSION_NAME); VK_EXT_TRANSFORM_FEEDBACK_EXTENSION_NAME);
// VK_EXT_sample_locations // VK_EXT_sample_locations
extensions.sample_locations = features.sample_locations.sampleLocations;
RemoveExtensionFeatureIfUnsuitable(extensions.sample_locations, features.sample_locations,
extensions.sample_locations =
loaded_extensions.contains(VK_EXT_SAMPLE_LOCATIONS_EXTENSION_NAME);
RemoveExtensionIfUnsuitable(extensions.sample_locations,
VK_EXT_SAMPLE_LOCATIONS_EXTENSION_NAME); VK_EXT_SAMPLE_LOCATIONS_EXTENSION_NAME);
// VK_EXT_vertex_input_dynamic_state // VK_EXT_vertex_input_dynamic_state

12
src/video_core/vulkan_common/vulkan_device.h

@ -21,16 +21,6 @@
VK_DEFINE_HANDLE(VmaAllocator) VK_DEFINE_HANDLE(VmaAllocator)
#ifndef VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLE_LOCATIONS_FEATURES_EXT
#define VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLE_LOCATIONS_FEATURES_EXT \
static_cast<VkStructureType>(1000143001)
typedef struct VkPhysicalDeviceSampleLocationsFeaturesEXT {
VkStructureType sType;
void* pNext;
VkBool32 sampleLocations;
} VkPhysicalDeviceSampleLocationsFeaturesEXT;
#endif // VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLE_LOCATIONS_FEATURES_EXT
// Define all features which may be used by the implementation here. // Define all features which may be used by the implementation here.
// Vulkan version in the macro describes the minimum version required for feature availability. // Vulkan version in the macro describes the minimum version required for feature availability.
// If the Vulkan version is lower than the required version, the named extension is required. // If the Vulkan version is lower than the required version, the named extension is required.
@ -74,7 +64,6 @@ typedef struct VkPhysicalDeviceSampleLocationsFeaturesEXT {
FEATURE(EXT, ProvokingVertex, PROVOKING_VERTEX, provoking_vertex) \ FEATURE(EXT, ProvokingVertex, PROVOKING_VERTEX, provoking_vertex) \
FEATURE(EXT, Robustness2, ROBUSTNESS_2, robustness2) \ FEATURE(EXT, Robustness2, ROBUSTNESS_2, robustness2) \
FEATURE(EXT, TransformFeedback, TRANSFORM_FEEDBACK, transform_feedback) \ FEATURE(EXT, TransformFeedback, TRANSFORM_FEEDBACK, transform_feedback) \
FEATURE(EXT, SampleLocations, SAMPLE_LOCATIONS, sample_locations) \
FEATURE(EXT, VertexInputDynamicState, VERTEX_INPUT_DYNAMIC_STATE, vertex_input_dynamic_state) \ FEATURE(EXT, VertexInputDynamicState, VERTEX_INPUT_DYNAMIC_STATE, vertex_input_dynamic_state) \
FEATURE(EXT, SwapchainMaintenance1, SWAPCHAIN_MAINTENANCE_1, swapchain_maintenance1) \ FEATURE(EXT, SwapchainMaintenance1, SWAPCHAIN_MAINTENANCE_1, swapchain_maintenance1) \
FEATURE(KHR, Maintenance5, MAINTENANCE_5, maintenance5) \ FEATURE(KHR, Maintenance5, MAINTENANCE_5, maintenance5) \
@ -91,6 +80,7 @@ typedef struct VkPhysicalDeviceSampleLocationsFeaturesEXT {
EXTENSION(EXT, DEPTH_RANGE_UNRESTRICTED, depth_range_unrestricted) \ EXTENSION(EXT, DEPTH_RANGE_UNRESTRICTED, depth_range_unrestricted) \
EXTENSION(EXT, MEMORY_BUDGET, memory_budget) \ EXTENSION(EXT, MEMORY_BUDGET, memory_budget) \
EXTENSION(EXT, ROBUSTNESS_2, robustness_2) \ EXTENSION(EXT, ROBUSTNESS_2, robustness_2) \
EXTENSION(EXT, SAMPLE_LOCATIONS, sample_locations) \
EXTENSION(EXT, SAMPLER_FILTER_MINMAX, sampler_filter_minmax) \ EXTENSION(EXT, SAMPLER_FILTER_MINMAX, sampler_filter_minmax) \
EXTENSION(EXT, SHADER_STENCIL_EXPORT, shader_stencil_export) \ EXTENSION(EXT, SHADER_STENCIL_EXPORT, shader_stencil_export) \
EXTENSION(EXT, SHADER_VIEWPORT_INDEX_LAYER, shader_viewport_index_layer) \ EXTENSION(EXT, SHADER_VIEWPORT_INDEX_LAYER, shader_viewport_index_layer) \

Loading…
Cancel
Save