From aca0cf27e31279a4c7c8a96bdc8de9ba8da8873b Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 24 Jan 2024 13:58:47 +0100 Subject: [PATCH] Fix cryptomatte GPU compositor node on NVidia Linux This commit fixes node_cryptomatte test in the matte category when using GPU compositor on Linux with NVidia GPU. Before this fix the result image was squished horizontally. The issue was caused by mismatch in the shader info and the actual allocation of the matte image. Pull Request: https://projects.blender.org/blender/blender/pulls/117475 --- .../shaders/infos/compositor_cryptomatte_info.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/compositor/realtime_compositor/shaders/infos/compositor_cryptomatte_info.hh b/source/blender/compositor/realtime_compositor/shaders/infos/compositor_cryptomatte_info.hh index 5eef93499b4..1b68a89843d 100644 --- a/source/blender/compositor/realtime_compositor/shaders/infos/compositor_cryptomatte_info.hh +++ b/source/blender/compositor/realtime_compositor/shaders/infos/compositor_cryptomatte_info.hh @@ -16,7 +16,7 @@ GPU_SHADER_CREATE_INFO(compositor_cryptomatte_matte) .push_constant(Type::INT, "identifiers_count") .push_constant(Type::FLOAT, "identifiers", 32) .sampler(0, ImageType::FLOAT_2D, "layer_tx") - .image(0, GPU_RGBA16F, Qualifier::READ_WRITE, ImageType::FLOAT_2D, "matte_img") + .image(0, GPU_R16F, Qualifier::READ_WRITE, ImageType::FLOAT_2D, "matte_img") .compute_source("compositor_cryptomatte_matte.glsl") .do_static_compilation(true);