From d547f9d3d291b495a022e1e3bfbb5f4af25c02b1 Mon Sep 17 00:00:00 2001 From: Stefan Werner Date: Tue, 27 Aug 2019 14:03:49 +0200 Subject: Fix T68944: Added check for SSE4.1 to denoising node. Since OpenImageDenoise requires a CPU with SSE 4.1 or newer, let the node act as passthrough on unsupported CPUs and display a message in the node itself. --- source/blender/editors/space_node/drawnode.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/editors/space_node') diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index a69eb254621..72a73f89227 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -2703,6 +2703,10 @@ static void node_composit_buts_denoise(uiLayout *layout, bContext *UNUSED(C), Po { #ifndef WITH_OPENIMAGEDENOISE uiItemL(layout, IFACE_("Disabled, built without OpenImageDenoise"), ICON_ERROR); +#else + if (!BLI_cpu_support_sse41()) { + uiItemL(layout, IFACE_("Disabled, CPU with SSE4.1 is required"), ICON_ERROR); + } #endif uiItemR(layout, ptr, "use_hdr", 0, NULL, ICON_NONE); -- cgit v1.2.3