Vulkan: Tweaks to improve HDR display on Windows
* Improve accuracy of warning when HDR display is not supported, taking into account HDR mode on/off on Windows. * When HDR mode is disabled on Windows, don't create a HDR swapchain. This saves memory, and avoids a color difference on NVIDIA. That's because NVIDIA is the only GPU we've tested that allows a HDR swapchain when HDR mode is off, and we don't currently know the expected transforms for that case. * Recreate swapchain when HDR mode on/off switch is detected. * Update HDR info when window gains focus. Note this means there is no wide gamut when Windows HDR is off, but it was already not working. For that we may need to add support for something like 10bit VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT, or whatever is commonly available outside of HDR mode. Pull Request: https://projects.blender.org/blender/blender/pulls/144959
This commit is contained in:
committed by
Brecht Van Lommel
parent
f77881a795
commit
20a19c7aa4
@@ -76,12 +76,10 @@ class RENDER_PT_color_management(RenderButtonsPanel, Panel):
|
||||
col.prop(view, "view_transform")
|
||||
col.prop(view, "look")
|
||||
|
||||
if view.is_hdr:
|
||||
import gpu
|
||||
if not gpu.capabilities.hdr_support_get():
|
||||
row = col.split(factor=0.4)
|
||||
row.label()
|
||||
row.label(text="HDR display not supported", icon="INFO")
|
||||
if view.is_hdr and not context.window.support_hdr_color:
|
||||
row = col.split(factor=0.4)
|
||||
row.label()
|
||||
row.label(text="HDR display not supported", icon="INFO")
|
||||
|
||||
col = flow.column()
|
||||
col.prop(view, "exposure")
|
||||
|
||||
Reference in New Issue
Block a user