mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
vulkan: Remove VK_KHR_maintenance5 as it is no longer needed for buffer views.
This commit is contained in:
parent
4f8a6ea81a
commit
10a528f3ec
@ -95,8 +95,7 @@ Buffer::Buffer(const Vulkan::Instance& instance_, Vulkan::Scheduler& scheduler_,
|
|||||||
// Create buffer object.
|
// Create buffer object.
|
||||||
const vk::BufferCreateInfo buffer_ci = {
|
const vk::BufferCreateInfo buffer_ci = {
|
||||||
.size = size_bytes,
|
.size = size_bytes,
|
||||||
// When maintenance5 is not supported, use all flags since we can't add flags to views.
|
.usage = flags,
|
||||||
.usage = instance->IsMaintenance5Supported() ? flags : AllFlags,
|
|
||||||
};
|
};
|
||||||
VmaAllocationInfo alloc_info{};
|
VmaAllocationInfo alloc_info{};
|
||||||
buffer.Create(buffer_ci, usage, &alloc_info);
|
buffer.Create(buffer_ci, usage, &alloc_info);
|
||||||
|
@ -268,7 +268,6 @@ bool Instance::CreateDevice() {
|
|||||||
null_descriptor =
|
null_descriptor =
|
||||||
feature_chain.get<vk::PhysicalDeviceRobustness2FeaturesEXT>().nullDescriptor;
|
feature_chain.get<vk::PhysicalDeviceRobustness2FeaturesEXT>().nullDescriptor;
|
||||||
}
|
}
|
||||||
maintenance5 = add_extension(VK_KHR_MAINTENANCE_5_EXTENSION_NAME);
|
|
||||||
custom_border_color = add_extension(VK_EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME);
|
custom_border_color = add_extension(VK_EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME);
|
||||||
depth_clip_control = add_extension(VK_EXT_DEPTH_CLIP_CONTROL_EXTENSION_NAME);
|
depth_clip_control = add_extension(VK_EXT_DEPTH_CLIP_CONTROL_EXTENSION_NAME);
|
||||||
vertex_input_dynamic_state = add_extension(VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME);
|
vertex_input_dynamic_state = add_extension(VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME);
|
||||||
@ -376,9 +375,6 @@ bool Instance::CreateDevice() {
|
|||||||
.maintenance4 = true,
|
.maintenance4 = true,
|
||||||
},
|
},
|
||||||
// Other extensions
|
// Other extensions
|
||||||
vk::PhysicalDeviceMaintenance5FeaturesKHR{
|
|
||||||
.maintenance5 = true,
|
|
||||||
},
|
|
||||||
vk::PhysicalDeviceCustomBorderColorFeaturesEXT{
|
vk::PhysicalDeviceCustomBorderColorFeaturesEXT{
|
||||||
.customBorderColors = true,
|
.customBorderColors = true,
|
||||||
.customBorderColorWithoutFormat = true,
|
.customBorderColorWithoutFormat = true,
|
||||||
@ -414,9 +410,6 @@ bool Instance::CreateDevice() {
|
|||||||
if (!maintenance4) {
|
if (!maintenance4) {
|
||||||
device_chain.unlink<vk::PhysicalDeviceMaintenance4FeaturesKHR>();
|
device_chain.unlink<vk::PhysicalDeviceMaintenance4FeaturesKHR>();
|
||||||
}
|
}
|
||||||
if (!maintenance5) {
|
|
||||||
device_chain.unlink<vk::PhysicalDeviceMaintenance5FeaturesKHR>();
|
|
||||||
}
|
|
||||||
if (!custom_border_color) {
|
if (!custom_border_color) {
|
||||||
device_chain.unlink<vk::PhysicalDeviceCustomBorderColorFeaturesEXT>();
|
device_chain.unlink<vk::PhysicalDeviceCustomBorderColorFeaturesEXT>();
|
||||||
}
|
}
|
||||||
|
@ -114,11 +114,6 @@ public:
|
|||||||
return null_descriptor;
|
return null_descriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns true when VK_KHR_maintenance5 is supported.
|
|
||||||
bool IsMaintenance5Supported() const {
|
|
||||||
return maintenance5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns true when VK_KHR_fragment_shader_barycentric is supported.
|
/// Returns true when VK_KHR_fragment_shader_barycentric is supported.
|
||||||
bool IsFragmentShaderBarycentricSupported() const {
|
bool IsFragmentShaderBarycentricSupported() const {
|
||||||
return fragment_shader_barycentric;
|
return fragment_shader_barycentric;
|
||||||
@ -307,7 +302,6 @@ private:
|
|||||||
bool dynamic_color_write_mask{};
|
bool dynamic_color_write_mask{};
|
||||||
bool vertex_input_dynamic_state{};
|
bool vertex_input_dynamic_state{};
|
||||||
bool null_descriptor{};
|
bool null_descriptor{};
|
||||||
bool maintenance5{};
|
|
||||||
bool list_restart{};
|
bool list_restart{};
|
||||||
bool legacy_vertex_attributes{};
|
bool legacy_vertex_attributes{};
|
||||||
bool shader_stencil_export{};
|
bool shader_stencil_export{};
|
||||||
|
Loading…
Reference in New Issue
Block a user