diff --git a/flake.nix b/flake.nix index a7099f2d..0318cdbd 100644 --- a/flake.nix +++ b/flake.nix @@ -58,7 +58,7 @@ # Keep in sync with CMakeLists.txt monado rev rev = lib.strings.trim (builtins.readFile ./monado-rev); # Nix will output the correct hash when it doesn't match - hash = "sha256-OCQmmnHw5TsEq1LAqG8WwJvRFh1K7gcFIM7MUL+I4Zw="; + hash = "sha256-8Nw743DvjUkrV3iGyQQoPMm5rx6rPKaAxl5I0iJKBdM="; }; }; diff --git a/monado-rev b/monado-rev index 00b98a4a..0c2a030c 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -4b00cbbba8f5675ceb31edad2a04bc2aca48b8e8 +e2af28aed583cddd1aae7492ab32be9db20a9e3a diff --git a/server/compositor/layer_squasher.cpp b/server/compositor/layer_squasher.cpp index eab1360b..b461d2ad 100644 --- a/server/compositor/layer_squasher.cpp +++ b/server/compositor/layer_squasher.cpp @@ -679,6 +679,21 @@ xrt_fov layer_squasher::do_projection_layer( ubo.layers[cur_layer].image_info.depth_image_index = cur_image++; } + // Chroma key - per layer settings + const xrt_layer_chroma_key_data & ck = (layer_data.type == XRT_LAYER_PROJECTION_DEPTH) + ? layer_data.depth.chroma_key + : layer_data.proj.chroma_key; + ubo.layers[cur_layer].chroma_key = { + .hsv_min_h = ck.hsv_min.h, + .hsv_min_s = ck.hsv_min.s, + .hsv_min_v = ck.hsv_min.v, + .hsv_max_h = ck.hsv_max.h, + .hsv_max_s = ck.hsv_max.s, + .hsv_max_v = ck.hsv_max.v, + .curve = ck.curve, + .despill = ck.despill, + }; + set_post_transform_rect( &layer_data, &vd.sub.norm_rect,