From 39af3901b389f792a55176041dec9211c82ed1c9 Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Fri, 8 May 2026 00:28:34 +0300 Subject: renderer: more FP16 fixes (#14070) * fix fp16 blur with invalidation * restore tonemap code * fix fade outs * add sdr compat for unaware surfaces * use a better work space, not linear, only for sdr * fix hl tf -> wp tf * cache workbuffer descriptions * linear not normalised WIP * clear offload fb * CM math * fix includes * use precalculated cm for shadows * inner glow cm * quad cm * fix unmodified copy * codegen * cache color CM * mark blur dirty when CM/DS changes * avoid icc workbuffer * fp16 blur finish hack * fix output hdr luminances * use srgb for mirroring/sharing with fp16 * defaults people --------- Co-authored-by: Vaxry --- src/config/values/ConfigValues.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/config/values/ConfigValues.cpp') diff --git a/src/config/values/ConfigValues.cpp b/src/config/values/ConfigValues.cpp index 49fdda02..73f2e9db 100644 --- a/src/config/values/ConfigValues.cpp +++ b/src/config/values/ConfigValues.cpp @@ -540,6 +540,7 @@ std::vector> Values::getConfigValues() { {.min = 0, .max = 2, .map = OptionMap{{"disable", 0}, {"enable", 1}, {"auto", 2}}}), MS("render:non_shader_cm_interop", "non_shader_cm interaction with ctm proto (hyprsunset and similar).", 2, {.min = 0, .max = 2, .map = OptionMap{{"disable", 0}, {"enable", 1}, {"auto", 2}}}), + MS("render:fp16_sdr_tf", "Internal workbuffer transfer function for fp16 in SDR mode", 0, {.min = 0, .max = 1, .map = OptionMap{{"monitor", 0}, {"linear", 1}}}), /* * cursor: @@ -604,7 +605,7 @@ std::vector> Values::getConfigValues() { MS("debug:fifo_pending_workaround", "Fifo workaround for empty pending list", false), MS("debug:render_solitary_wo_damage", "Render solitary window with empty damage", false), MS("debug:vfr", "controls the VFR status of Hyprland. Do not turn off unless debugging", true), - MS("debug:invalidate_fp16", "allow fp16 buffer invalidation.", 2, {.min = 0, .max = 2, .map = OptionMap{{"disable", 0}, {"enable", 1}, {"auto", 2}}}), + MS("debug:invalidate_fp16", "allow fp16 buffer invalidation.", 1, {.min = 0, .max = 2, .map = OptionMap{{"disable", 0}, {"enable", 1}, {"auto", 2}}}), /* * layout: -- cgit v1.2.3