Vulkan: Move Wayland/HDR support out of experimental

This PR moves Wayland/HDR support out of experimental.
This allows more people to test and provide feedback. We
can always decide later to disable it for the release, but so
far we only got positive feedback.

Pull Request: https://projects.blender.org/blender/blender/pulls/141666
This commit is contained in:
Jeroen Bakker
2025-07-09 13:24:31 +02:00
parent 292dc37ced
commit 4d9c5ebd97
4 changed files with 2 additions and 17 deletions

View File

@@ -2880,13 +2880,6 @@ class USERPREF_PT_experimental_prototypes(ExperimentalPanel, Panel):
({"property": "write_legacy_blend_file_format"}, ("/blender/blender/issues/129309", "#129309")),
),
)
import sys
if sys.platform == "linux":
self._draw_items(
context, (
({"property": "use_vulkan_hdr"}, ("/blender/blender/issues/140277", "#140277")),
),
)
# Keep this as tweaks can be useful to restore.

View File

@@ -98,8 +98,7 @@ void VKContext::sync_backbuffer(bool cycle_resource_pool)
swap_chain_format_ = swap_chain_data.surface_format;
vk_extent_ = swap_chain_data.extent;
GCaps.hdr_viewport_support = U.experimental.use_vulkan_hdr &&
(swap_chain_format_.format == VK_FORMAT_R16G16B16A16_SFLOAT) &&
GCaps.hdr_viewport_support = (swap_chain_format_.format == VK_FORMAT_R16G16B16A16_SFLOAT) &&
ELEM(swap_chain_format_.colorSpace,
VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT,
VK_COLOR_SPACE_SRGB_NONLINEAR_KHR);

View File

@@ -227,8 +227,7 @@ typedef struct UserDef_Experimental {
char use_shader_node_previews;
char use_bundle_and_closure_nodes;
char use_socket_structure_type;
char use_vulkan_hdr;
char _pad[4];
char _pad[5];
} UserDef_Experimental;
#define USER_EXPERIMENTAL_TEST(userdef, member) \

View File

@@ -7610,12 +7610,6 @@ static void rna_def_userdef_experimental(BlenderRNA *brna)
"Recompute all ID usercounts before saving to a blendfile. Allows to "
"work around invalid usercount handling in code that may lead to loss "
"of data due to wrongly detected unused data-blocks");
prop = RNA_def_property(srna, "use_vulkan_hdr", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_ui_text(
prop,
"Vulkan HDR support Linux/Wayland",
"Enables HDR on Linux/Wayland on HDR capable setups. Requires a restart");
}
static void rna_def_userdef_addon_collection(BlenderRNA *brna, PropertyRNA *cprop)